05-17-2010 03:45 AM
Hi,
I have this problem and appreciate if anyone can give me a heads up to the right direction.
I am trying to writing a program for controlling and data acquisition from two instruments simultaneously.
One instruments is a rotary stage which I control the motion and read data using activex commands. I do this in a vi which I have two separate while loops, one for updating the rotary stage data continuously and other while loop for event structure handles.
The second instrument is a detector that follows rotary stage motion. For this I have another vi again with two for loops, one for data acquisition trough rs232 and other while loop is for event structure.
I use globals to pass data between vi's and this works fine in a labview project environment. However when I try to build these to exe files. I can no longer pass data.
Is there a programming method when communicating with more than one instrument. What I mean to ask is, say I have a function generator, oscilloscope motor drive etc. How could I control them in separate windows (as separate programs) and pass data to each other?
I'd appreciate for any help.
Solved! Go to Solution.
05-18-2010
09:48 AM
- last edited on
10-14-2025
11:12 AM
by
Content Cleaner
Hello,
Global variables cannot be accessed from separate executables because their memory spaces are not shared. This is listed in the following document: Can I Use a Global Variable to Share Data between Two LabVIEW Executables? The only way to have this work would be to use a Main VI that launches your two separate applications as subVIs. This would allow you to share a global variable between the two. Your other option would be to use the method outlined in the article or to use Shared Variables: How do I Communicate Between Multiple LabVIEW EXecutables Using Shared Variables?
-Zach
05-20-2010 02:39 PM