08-27-2015 08:04 PM
My sub vi executes commands over a Modbus connection, staying in the sub vi for about 15 seconds and sending 5 differrent Modbus commands. I need the user to see the progress of that communication and have two staus LED on the main panel. In the sub vi, (Calibration_Stack_01.vi) I set up a global variable vi (Cal-1.vi) with two references, one for low calibration and one for high calibration. In the main program, (OxiFTE V6002.vi) the global variables go through a property node to convert the reference to an ordinary Boolean for the pront panel LED property node. The code executes just fine, except that the value between property nodes in the main program never changes from False to True. (see probe image that was caught while the LED should have been ON)
Is there something simple that I have missed, or am I way off base?
08-27-2015 08:58 PM
08-28-2015 11:47 AM
When I set up the references like this, the property node in the main vi does not update until the sub vi is finished.
08-28-2015 12:14 PM
08-28-2015 12:25 PM
If I understood references, I wouldn't be here. Thanks for telling me I'm an idiot.
08-28-2015 12:26 PM
And BTW, your explanations are nowhere near helpful.
08-28-2015 12:36 PM
08-28-2015 12:39 PM
Running this VI lets the sub VI do whatever it wants with the boolean indicators.
This VI is the sub of the first one. It blinks the indicators on the FP.
08-28-2015 12:55 PM
Thank you, Jim.