LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Are there issues with running two LabVIEW applications (built .exes) at the same time ?

Solved!
Go to solution

If I compile two different LabVIEW applications and connect two USB DAQ devices, is it possible to run both applications that the same?

 

Thanks,

 

Dave

0 Kudos
Message 1 of 12
(4,245 Views)
Solution
Accepted by topic author davey31415
If each application is talking to a separate device then there should be no issues as far as I know. If the two applications are trying to talk to the same device then you need to be aware that you can only execute one task at a time on a device.
Message 2 of 12
(4,210 Views)
You also  need to make sure you have enough CPU resources and USB bandwidth to handle the two applications running concurrently.
Message 3 of 12
(4,206 Views)
If you plan on connecting to the VIs on another computer via Remote Panels, I've found that you can only connect to the first one that was launched.  There is probably a work around for this issue, however.
Message 4 of 12
(4,197 Views)

Thanks all.  Useful information. 

 

When working in an application to begin with, is the"one task per DAQ device" still requirement still valid? 

 

I was running a VI several months ago which was leaking memory because a new task was being created over and over but did not know more than one task caused a problem in general.  I thought the problem resulted from thousands of tasks being created without being closed. 

 

 

0 Kudos
Message 5 of 12
(4,165 Views)
No, the issue is that only one task can have access to certain hardware resources at a time.  Think of trying to open an Excel file on the network while another person tries to open the same file.  Same sort of situation.
0 Kudos
Message 6 of 12
(4,159 Views)
When working with any DAQmx device in any environment (built application , development, LabWindows/CVI, VB, .Net, etc), you can only have one task for a specific hardware resource (analog input/analog output) with the majority of DAQ boards.
0 Kudos
Message 7 of 12
(4,152 Views)

Okay.  One device may have several resources though?  (analog input, analog output, digital input, digital output would all be separate?) 

 

 

0 Kudos
Message 8 of 12
(4,140 Views)
Maybe. But it depends on the type of acquisition you are doing.  If they were all doing a timed acquisition (as opposed to a 1 sample acquisition), you'd have a problem because each task would require a hardware clock which is a resource, but there is only one hardware clock on the DAQ board.
0 Kudos
Message 9 of 12
(4,134 Views)
Rather than guessing, why don't you tell us what the DAQ devices are, what you want to be running on the devices, and what each LabVIEW program is supposed to do, and then we can tell you whether it's possible. Smiley Wink
0 Kudos
Message 10 of 12
(4,125 Views)