LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically running VIs in Linux

I would like to automatically start up a LabVIEW VI when my Linux computer reboots.

Since I typically won't be there to log in, I have placed the command line to invoke LabVIEW and the appropriate VI in the /etc/rc.local file.  This does not work during bootup since LabVIEW seems to be looking for an X-display.  It does work if I execute the /etc/rc.local file again after I have logged in (thus I know the syntax of the command is correct).

I am working from information found on
http://zone.ni.com/reference/en-XX/help/371361A-01/lvhowto/launchingvifromcommandline/

Should I
1) Try a different way of invoking LabVIEW, such as a cron job?
2) Redirect the display using the -display command line option to some virtual display?  What would it be?

I'm still a Linux newbie so step by step instructions would be appreciated.
0 Kudos
Message 1 of 3
(3,047 Views)
Hi Wid Did,
 
Thanks for contacting National Instruments.  I have been looking into your question a little bit and the information that I can give you relates to some of the VI settings in LabVIEW.  I am not exactly a Linux expert either, but I can tell you how you should configure your VI.  Basically, what you should do is set up your LabVIEW VI to run whenever it is opened.  The first link below goes through some of this setup along with how you can set up the VI to run when you are logged in.  As far as the Linux section is concerned, the basic idea that you will need to implement is to make a Linux script shell that will execute on startup and will call LabVIEW from there.  I did some quick searches on the internet and found some ideas for you to use that may help you to log on automatically to your computer and maybe the command you were using earlier will work.  I hope some of this helps and good luck with your application!
 
Regards

Noah R
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(2,986 Views)
Hi,


the cron did not work for me; Mandriva 2006, kde

one way to do it to link  you application to /.kde/Autostart if your are using kde as display manager; it should be similar for gnome

try this command as "user"

ln -s path_ to_ your_aplication/your_aplication /home/"user"/.kde/Autostart

regards

Cristian M
0 Kudos
Message 3 of 3
(2,897 Views)