LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control global variable used in sub vi

Hi,

 

I've created a vi to read an instrument and to initiate its calibration with labview. This VI stores data in a global variable containing measurments and status of the instrument.

 

Now what I'm trying to do is create a sub vi with this to read&write 2 exactly identical instruments so I can finally create a VI that read all 3 instruments simultaneously.

 

How could I create a control on the global variable used by the sub VIs since it is the only thing that will change along with its COM port ?

 

I included a screetshot of the current VI.

 

Thanks,

 

0 Kudos
Message 1 of 2
(2,549 Views)

I would make an array of values and then you just pass in which value to update.  I would actually take it a step further and make an Action Engine that can update the data and return the data.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,532 Views)