Sam Dexter Posted March 11, 2021 Report Share Posted March 11, 2021 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? Quote Link to comment
JKSH Posted March 12, 2021 Report Share Posted March 12, 2021 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: Only 1 rtexe can be active at a time. If you simply kill lvrt (as opposed to triggering a proper shutdown from within your .rtexe), LabVIEW thinks that it crashed. By default, LabVIEW will enter Safe Mode after 2 crashes: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kFQ6SAM 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.