01-29-2013 12:48 PM
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
01-29-2013 01:05 PM
01-29-2013 01:14 PM
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.
01-29-2013 02:29 PM
anyway I would be able to get this in labview 2011?
01-29-2013 02:31 PM
@lvuser333 wrote:
anyway I would be able to get this in labview 2011?
What is "this"?
01-29-2013 02:40 PM
sorry this was meant for the files that ben64 uploaded, I thought my reply would be directed to him