From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

digital controls

Does anyone know of a way to force an initial value into a digital control
that is contained in a subvi? The initial value can be passed by the calling
vi but will not be the same each time the subvi is called. I've tried programming
around this but haven't found a satisfactory solution.
0 Kudos
Message 1 of 3
(2,336 Views)
Not 100% sure I understand what you want to do here but here goes...
On the sub-vi in question set the digital control to the value you want and
then 'make current value default'.
Then...
On the fist call of this subvi in the main panel do not wire a value to this
control (it will use the default value).Then after you can wire an updated
value to the icon in the main panel.

Richard

"Brian Beard" wrote in message
news:38bfae11@newsgroups.ni.com...
>
> Does anyone know of a way to force an initial value into a digital control
> that is contained in a subvi? The initial value can be passed by the
calling
> vi but will not be the same each time the subvi is called. I've tried
programming
> around this but haven't found a satisfactory solution.
0 Kudos
Message 2 of 3
(2,336 Views)
Hello Brian Beard,

I do not know, if my answer relate exactly to your problem.
I wanted to RESET a contol on the frontpanel.
So I tried it with a sequenz and the local variable of this control.
With the first step of the sequenz I set the control to the desired value.
In the second step I went on with the actual VI-code.

I hope that I was able to help you.
CHZ

> Does anyone know of a way to force an initial value into a digital control
> that is contained in a subvi? The initial value can be passed by the calling
> vi but will not be the same each time the subvi is called. I've tried programming
> around this but haven't found a satisfactory solution.
0 Kudos
Message 3 of 3
(2,336 Views)