LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

queues across multiple executables

can named queues operate across multiple executables?

if so I imagine that i can send a queue name via command line switch?
- James

Using LV 2012 on Windows 7 64 bit
0 Kudos
Message 1 of 3
(3,144 Views)
Executables are operating in seperate memory spaces and you cannot open two queues with the same name and pass data between the 2 EXEs in that manner.

One alternative that I used is to use VI server.  I used ActiveX because it was much faster in my case due to heavey network traffic, but you should be fine with the TCP/IP VI server.  Create a VI in your EXE which does nothing but throw an item onto the queue.  In the other EXE, create a similar VI, except you initialize it by connecting to the first EXE using VI Server (or ActiveX) and opening a reference to the queue VI.  You run that VI using a Call by Reference and pass the data from one EXE to the other.
Message 2 of 3
(3,133 Views)
That's a pretty good idea.  One other thing I would do would be to add some other communication mechanism where the 2nd .exe let's the first know when to put stuff in the queue.
 
I could see where if one .exe is running (the producer), but the 2nd isn't running (the consumer to take stuff out of the queue), you'd eventually flood the memory.
 
Maybe it would just be a matter of limiting the queue size as well.
Message 3 of 3
(3,118 Views)