LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two instances of same app

I have a LabView exe file that is used to control one of our devices on a com port.
 
We use an FTDI device that makes a USB port appear as a com port.  There are no problems with this.
 
Our devices output data approximately every ten seconds and I keep the com port open and check for data approximately once per second.
 
The PC that runs the app has four USB ports, each connected to one of our devices.
 
I thought that I could open four instances of the app, one for each port.
 
However, I could not get multiple instances of the app to execute.
 
After searching what few old threads I could find related to this (2005 and earlier), it appears that I cannot open multiple instances.
 
There are also comments that multiple VISA resources cannot be open simultaneously.
 
So now my questions...
 
Can I have multiple VISA resources open simultaneously (say one for COM4 and one for COM5)?
 
Can I open multiple instances of an app?
 
Can I open different apps that use different VISA resources at the same time?
 
All help is appreciated.
 
0 Kudos
Message 1 of 4
(2,956 Views)

Yes you can!

Either rename to the level VI for each instance or use a template which will acheive the same effect.

Make sure all of the sub-VI-s are re-entrant.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(2,941 Views)
For an exe, a search turned up this thread for the same question. You have always had the ability to have multiple VISA resources open.
Message 3 of 4
(2,937 Views)

Thanks Ben and Dennis.

 

Dennis, your solution is exactly what I had hoped for.

Don't know why i didn't find that thread with my search.

 

 

0 Kudos
Message 4 of 4
(2,898 Views)