LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

global variable requirement?

I am having a problem using two separate case structures to independantly
write to the same numeric control. This causes an error of a wire having
multiple sources. Do I need to use a global variable to fix this problem?
Please cc elbruner@princeton.edu
Thanks for your help
0 Kudos
Message 1 of 2
(2,239 Views)
If you are using two separate case structures to write to the same numeric control, you can use a local variable write (instead of a global variable, though a global write will work) to update the numeric control. In LabVIEW, a wire can only have one source, so you would not be able to wire the two outputs from the independent case structure together without some logic to determine one unique output at any given time. Using local variables in your situation will resolve your multiple source error.

Regards,
Wilbur Shen
0 Kudos
Message 2 of 2
(2,239 Views)