How to get a variable of a sub - VI all the way to the top level vi (GUI)

Hi all

I am currently working on controlling the movement of the six axes with labview through RS232 communication. These axes are controlled in order so not more than one axis moves at a certain point in time. To do this, I need to query the axis status bit to see whether or not the move is done. Basically a while loop to stop "asking" for the State when the statusbit is '1 '. This is done by a somewhat deep nested vi in software architecture (low level vi). The behavior of this vi is necessary because it blocks the execution of the remaining vi until the movement is finished. Therefore, I am sure that no command is sent to move a second axis during the movement of the axis of another.

I want to do is to bring the traffic all the way to the front of the user interface so that the operator can see if the axis is in motion or not. But the problem is that the vi that handles these requests status only publishes the output data when the while loop stops, in this case when the movement is completed. And I would like to know the status on a regular basis, for example every 100ms or so?

How can I get the value of the bit on the status in the GUI? I have to place another vi on the upper level which requires also that the status?

Any help is much appreciated,

Best regards.

You can pass a reference to what ever VI main control/indicator panel you want to display it on.  Then in your Subvi loop, use this reference with a knot of property value for updating control/indicator light panel.

Tags: NI Software

Similar Questions

Maybe you are looking for