LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

system exec

Hello, how to use the system Exec to run the VI?
0 Kudos
Message 1 of 8
(4,781 Views)
Hi haijun,

SystemExec is used to call other programs (or DOS commands) in the command shell. It's not used to call other vis!
To call other vis you simply put them in your main vi or use the VI server capabilities...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(4,768 Views)

Gerd explained it well. 🙂

Curious:  why did you want to use SysExec to run a VI?  Can you explain what you wanted to do?

0 Kudos
Message 3 of 8
(4,758 Views)
Now i want to write the Test Api.i don't want to alway add the all sub vi in the main program.it's slow for program and also difficult for other user.i want to user only give the vi path to test Api.let Api load the subvi run and get the result.after run finished also can release the memory .it's good for test program running.
by the way,for vi server today i wll try ........ thanks for you help.
0 Kudos
Message 4 of 8
(4,727 Views)
I can use the below attachment system Exec to open and run the vi.but it's always open the labview program.it's not good for and not my purpose,
0 Kudos
Message 5 of 8
(4,726 Views)
What you've got there makes no sense. Eliminate the system exec.
Message 6 of 8
(4,720 Views)
yes,i just got it.Smiley Happy,but i am very strange for that before i use the "open vi referance" to load the Vi it's alway caution me the vi not in momery, now it's ok.. would you tell me why?
0 Kudos
Message 7 of 8
(4,717 Views)
If you wire a string to 'open VI reference' it will only succeed if the VI is in memory. If you wire a path it will load the VI from that location (doesn't have to be in memory yet).
So probably you wired a string when it didn't work?

0 Kudos
Message 8 of 8
(4,700 Views)