LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

web service startup vi

Hi,

 

When using a vi web server it seems that a vi only starts after calling (via browser).

Is there a way to auto start a vi as soon as the web server service gets active?

 

I need to have a vi running without logging in to windows. And since the vi web server runs as a service I’d like to use the web server instead of registering the vi as a windows service...

 

Kind regards,

 

Jonas Van Otterdijk

0 Kudos
Message 1 of 4
(3,243 Views)

What version of LabVIEW are you using?

 

In LabVIEW 2013 the VI in the startup folder will begin running as soon as the web service starts.

 

Startup VI

I build web apps for LabVIEW
http://chrislarson.me
0 Kudos
Message 2 of 4
(3,218 Views)

Thanks Chris.

 

I've installed 2013 and found the startup function but it does not work as i intended.

The main vi of the example i've modified only starts right after deployment.... not after rebooting the pc where the service is build on.

 

startup.png

 

when calling http://172.22.5.74:8080/startuptest/graph from a second pc after reboot of the "services host pc" i get a stable response until calling http://172.22.5.74:8080/startuptest/main.

 

(172.22.5.74, depends off course on your pc configuration..)

 

Kind regards,

 

Jonas Van Otterdijk

0 Kudos
Message 3 of 4
(3,190 Views)

Hello Jonas,

 

Why do you need to explicitely call the Startup VI?

It seems kind of unusual (and not the purpose of the Startup VI)  to use the Startup VI as a "web resource".

As far as I have understood here (based on the previous explanations) the main VI shoudl be  a background VI that you don't directly interact with.
The Web resources (Frequency, Graph and Stop VI) will be the ones you directly interact with as "Web Resources".

 

Or did I understand this incorrectly?

Please let me know if I have mixed up what you are trying to accomplish.

 

Thanks in advance for any further elaboration!

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 4
(3,134 Views)