LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run startup.rtexe in linux from terminal

Solved!
Go to solution

Experimenting - I changed the rtexe to run at start-up.  Tehn rebooted, and stopped the program.

 

Then ran the script file to launch the rtexe again - this time the VI appeared on the gui, but then quit.

 

"Startup Application:/home/lvuser/natinst/bin/startup.rtexe

 

Welcome to LabVIEW 19.0.1f1 

 

LabVIEW caught fatal signal

19.0.1f1 - Recerived SIGSEGV

Reason: Address not mapped to object

Attempt to reference address: 0x0x7f07c8005104

 

./lvrt-manuallaunch: line 6: 11673 Segmentation Fault    /usr/local/natinst/etc/init.d/lvrt-wrapper $STARTUP_PARAM $PID_LVRT_WRAPPER SUI_ENABLED"

"

 

When I don't set it to Run as Startup and run the bash file to launch lvrt-wrapper - it simply stops at 

 

"Welcome to LabVIEW Real-Time 19.0.1f1"

 

And doesnt open the VI front panel....odd.

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 11 of 13
(1,570 Views)

OOPS - removed the Invoke FP.Open

 

No more Segment faults.

 

The RTEXE has to be set to Run as Startup for the lvrt-wrapper call to launch the VI - which is kind of annoying.  I'll have to see if I can avoid having to use that setting.

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 12 of 13
(1,557 Views)

I'm told it can't be avoided using Run as Start-up.

 

I will create some start-up script that will run before the LVRT start-up process and set a flag in an INI file for RUN = FALSE that my code will use.  It will shut itself down if not started by the program I want to use to launch it on event detection.

 

Then my xinetd port monitor will be able to leverage the script I have created to run the LV RTEXE, by first setting the RUN = TRUE.

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 13 of 13
(1,530 Views)