ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variables

Very basic question, but can you pass a numerical value from a main vi to a subvi using a global variable or do I have to use the call by reference node?  I seem to get errors when to passing an integer to the void global variable.

0 Kudos
Message 1 of 4
(2,996 Views)

Hi HereWeGo,

what do you mean with a void global variable? Your global has to have the same type as the data you want to write to it. If you use a "normal" subvi call, than use a control in your subvi, and connect the value directly to it. Can you explain what you need? Run your vi´s in parallel?

Mike

0 Kudos
Message 2 of 4
(2,995 Views)
What I am trying to do is take the channel name and attach {delimiter} after each channel name except for the last channel name.  Would a case structure be the best way to go.  My code is attached
0 Kudos
Message 3 of 4
(2,988 Views)
This is one way. I don't quite understand the use of your {delimiter}. That's just text and not an actual delimiter.
Message 4 of 4
(2,985 Views)