Jump to content

Executing .rtexe from CLI... is it possible?


Sam Dexter

Recommended Posts

Hi guys,

 

A newbie question - say, I have a compactRIO running Linux Real-Time system and it runs my .rtexe set as startup

at the boot. I wonder if there is a way to execute this .rtexe arbitrarily from CLI or by any other means, so you can

actually have a few .rtexe on the system and pick and choose which ones to run at will?

 

 

Link to comment

The .rtexe is actually not an executable file. Rather, it is a "bundle" that contains your compiled VIs.

The real executable is /usr/local/natinst/labview/lvrt -- This executable loads your .rtexe bundle and runs the top-level VI(s) from the bundle. The lvrt program checks a config file -- /etc/natinst/share/lvrt.conf -- to find out which .rtexe it should load.

So, in theory, you could edit this file and then shut down the VIs that are currently running. This causes lvrt to re-launch, and it will read your updated config file and load your new .rtexe.

Notes:

  • Like 2
Link to comment
  • 1 year later...
On 3/11/2021 at 1:21 PM, Sam Dexter said:

Hi guys,

 

A newbie question - say, I have a compactRIO running Linux Real-Time system and it runs my .rtexe set as startup

at the boot. I wonder if there is a way to execute this .rtexe arbitrarily from CLI or by any other means, so you can

actually have a few .rtexe on the system and pick and choose which ones to run at will?

 

 

Hi Sam, 

After the startup.rtexe is deployed into your cRIO, and reboot it, with the Run As Startup option selected from the LabVIEW Project Explorer, you can use these commands from the terminal:

/etc/init.d/nilvrt stop ==> to stop the RT App.

/etc/init.d/nilvrt start ==> to run the RT App. 

Hope this helps.

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.