LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

one indicator for several different parts of multiple vi

I have multiple sub VI's that all go into one higher level VI. The sub VI's occur in a sequence and they all read the same voltage off a device. I want to have only one indicator on the upper level that shows the voltage in each sequence. I tried using global variables but it is not working, I think it might have something to do with the while loops. I have attached one of the subVI's

 

Thanks

0 Kudos
Message 1 of 6
(3,169 Views)

Pass a reference to the main vi control to the subVI and use the value property node to update it.

 

Ben64

Download All
0 Kudos
Message 2 of 6
(3,166 Views)

You may want to consider using a state machine to implement your code. It can make updates to the same controls/indicators easier since your data would flow through the state machine. All of your updates can occur after the case structure for the state machine. In addition, a state machine will make it much easier to add new functionality.

 

I generally do not like passing references to items on the UI to processing subVIs. Doing so couples your processing code with the UI code and makes reuse more difficult. If I do pass references it is to subVIs specifically used for the user interface.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 3 of 6
(3,162 Views)

anyway I would be able to get this in labview 2011?

0 Kudos
Message 4 of 6
(3,148 Views)

@lvuser333 wrote:

anyway I would be able to get this in labview 2011?


What is "this"?

0 Kudos
Message 5 of 6
(3,146 Views)

sorry this was meant for the files that ben64 uploaded, I thought my reply would be directed to him

0 Kudos
Message 6 of 6
(3,140 Views)