LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Methods of displaying an indicator in one labview program in a different labview program.

If I have two programs, how many different methods do I have of displaying one programs indicators in the other program? Same with controls.
thanks
0 Kudos
Message 1 of 6
(3,080 Views)
I'm not sure if I understand correctly..

Do you mean sharing information when they are both running?

If so, then "References" are useful for this. I think there are examples available of vi's using references.

For instance, you have one vi running. Your other vi wants to know the progress of the first one or obtain certain values, etc. Using reference allows the second vi to get the desired data from the first vi. The vi's are not wired onto each other, both run in parallel.

If this is not what you meant, can you provide more details? I'm not sure what you meant about controls.

Regards,

JLV
Message 2 of 6
(3,071 Views)
You can

1. Set up a global variable that both vis can access.

2. You can open up a reference to the first vi from the second and read the value.


I have attached a llb that has both as examples.
Randall Pursley
Message 3 of 6
(3,070 Views)
Run First.vi and then Second.vi or Third.vi to see the effects.
Randall Pursley
Message 4 of 6
(3,070 Views)
Thanks - I'll try them out.
0 Kudos
Message 5 of 6
(3,047 Views)
Scott,

You could also use datasocket to accomplish this. If your two applications are compiled executables, then references or globals will not be an option.

Good luck, and happy holidays!

Robert Mortensen
Applications Engineer
National Instruments
Robert Mortensen
Software Engineer
National Instruments
0 Kudos
Message 6 of 6
(2,996 Views)