LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open another program through LabVIEW

Hello,

 

I have a programming question. I am trying to pragmatically open a program through LabVIEW. That is all. I am using the system exec.vi, sending the name of the program to be opened in the command line, and the working directory. However, I get an error message saying

 

"Error 2 occurred at System Exec.vi. Command was "USDLCDServer_multiple"

Possible reason(s): LabVIEW: Memory is full NI-488: Write detected no listeners.

 

Please help. Thank you in advance. I attached the simple program I wrote.

 

0 Kudos
Message 1 of 7
(10,391 Views)
You should take a look at the "Calling System Exec.vi" in the LabVIEW examples.  This should get you going.
Message 2 of 7
(10,381 Views)

Gerardo09 wrote:

...

 

"Error 2 occurred at System Exec.vi. Command was "USDLCDServer_multiple"

Possible reason(s): LabVIEW: Memory is full NI-488: Write detected no listeners.

...


You will get that message if you do not pass a properly formed command line.

 

I suggest you first determine the proper syntax required to invoke your program from a DOS prompt and then try it with the sysyexec.

 

Note: File specs that include a space should be enclosed in quotes since the space is seen as a delimiter.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 7
(10,376 Views)

Hi,

 

Try it out, like the one which i have attached.

 

 

Rgds,

Venky

0 Kudos
Message 4 of 7
(10,365 Views)

Venky,

 

can you please save that vi u wrote for LV 8.0. I cannot open it in 8.6 as you wrote. THANK YOU VERY MUCH.

 

Gerardo.

0 Kudos
Message 5 of 7
(10,338 Views)

Hi,

 

 

check out this vi.

 

 

 

Rgds,

Venky

Message 6 of 7
(10,333 Views)

Hello Gerardo,

 

Were you able to get your VI working? Ben was right, it is an issue of passing commands with the correct syntax. Please let us know if you are still seeing the error.

 

Regards,

Anna K.

National Instruments
0 Kudos
Message 7 of 7
(10,266 Views)