12-01-2005 04:44 PM
12-01-2005 10:31 PM
Hi Michael,
Global Variables should solve your problem.
Looks like you have to pass values from Sub VI that will execute continously inside a main vi.
Look at attached VI
Hope you can implement this type of logic in your program.
regards
Dev
12-14-2005 12:59 PM
Or else you could put indicators on your main VI's front panel to hold the data you want to monitor. Pass indicator references to the subVI, and have the subVI update the main VI's indicators through those reference inputs (use a reference to make a "Value" property node and write to the node). That way the indicators are updated in real time, i.e. as fast as the subVI updates them.
I think that's a cleaner solution than to use globals. Of course, for a small, one-time-only type of application, it might be faster just to create a few globals. No biggie in that case.
::Marty