LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

loading new labview exe files from a running vi

Hi! Me again 🙂
 
I've been thinking about another way to reset my running application (some data doesn't get reset due to it being in a case structure...(see   http://forums.ni.com/ni/board/message?board.id=170&message.id=145525&requireLogin=False    for details   ).
 
What I would like to do is to be able to open a simple menu labview exe file, while closing the main file.  This would enable the user to quit labview at the click of a button, or reload the main exe, freshened up 🙂 , and then the menu closes.  I can get vi's to open and close but an exe file would be supurb, as it can be used from the start, without needing a run button.
 
I've been fiddling with invoke method : open fp and loading a vi rather than an exe file.  I'm sure it can be done.  Bear in mind I'm a chemist, not a programmer, so some terminology may be lost on me, but examples are not 🙂
 
 
 
 
0 Kudos
Message 1 of 2
(2,521 Views)
Hi Fios,

Why don't you just use the system exec.vi, found at All Functions >> communications >> system exec.vi

then you just put the full path to the executable in "command line" and set "Wait until completion?" to False

This will open your LV exe and then you can use VI server as you described in your post.

Regards
JamesC
NIUK
0 Kudos
Message 2 of 2
(2,451 Views)