From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically calling EXEs in an RT Target

Greetings fellow LabVIEW developers,

I was recently assigned a task to develop an application which could dynamically call multiple EXEs inside a cRIO target. The EXEs would be FTP'd into the cRIO along with this "startup" application. The application, then, would dynamically start multiple programs inside the cRIO.

When I built this application, I was under the INCORRECT assumption that we could directly call the top level VI of an executable using VI server. I have searched all over the literature, but the solutions that have been proposed (packed libraries and source distributions) are not possible for this project's requirements.  

Does anybody know what the new procedure to this in LabVIEW is as of LabVIEW 2011?

**The application MUST be written in LV2011. 

0 Kudos
Message 1 of 2
(1,997 Views)

I'm facing a similar sort of problem/question, but involving a PXI running LabVIEW RT.  I believe that when you use VI Server, you are basically running, not an .EXE, but rather a LabVIEW .vi file.  As I understand it, the way to get an .EXE running is to (at least on the PXI) make it part of the "Startup" procedure for the remote device (I believe this means calling it "Startup.Exe", and putting it in the "right place").  The main point is that this is not something that you "start", but rather something that you "build in" to the system.

 

Note that once you have an "executive" running on the RT system, whether you "build it in" to start up with the machine or get it running some other way, it should be possible to have it dynamically load in other routines that you FTP down.  Will this work for you?

 

An alternative is to have the "executive" be an ordinary vi that you first download to your target.  You can then start it running with VI Server (this is, in essense, what we're doing with the PXI).

0 Kudos
Message 2 of 2
(1,989 Views)