07-13-2020 05:55 PM
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.
07-14-2020 01:31 PM
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.
07-31-2020 11:55 AM
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.