LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running a headless VI in Linux through web server

I need to "embed" a VI in a headless Linux device running labview. Once the VI is running on the headless device I need to be able to connect to the VI through LabVIEW's web server.

 

I have the web server and page all configured correctly on the device (meaning, I've been able to connect to the VI through a browser and operate it as desired). The trick is, how do I launch labview and the VI on a headless linux device? Ideally, I'd SSH into the device and launch the VI and labview through a shell script, logout of the SSH session; then I'd connect to the VI through the a browser...

 

Advice?

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

Figured out a way to do this remotely using SSH. Create a shell script with the following contents

 

export XAUTHORITY=/home/<your username>/.Xauthority

export DISPLAY=':0'

nohup labview <path>/<your.vi> &

 

Log in with SSH and run the above script. This launches LabVIEW in the background and allows you to exit the session without killing the VI. Once running, you can connect to the VI throught the web server using the standard method.

 

0 Kudos
Message 2 of 2
(2,640 Views)