There are two options here, Global variables and VI server.
Using global variables, the values of interest are written to a global variable in the sub-vi during every loop. this way, the values can be read "simultaneously" in the main program. Try keeping this "one vi Read" and "one vi-Write" approach to avoid race conditions.
Using the VI server is more complicated and involves getting a reference to the sub-vi within the main VI. This reference can then be used to get the value of certain controls and indicators from the front panel of the running sub-vi. You need to know the name of the indicators and controls you wish to read (or write).
I reckon the global variable is easier, but can anyone say which is "better"?
Shane
Ps there are of c
ourse other ways of doing this but I don`t even want to start discussing writing files or looping IP packets.....
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)