LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically run VI in web browser

When you open a front panel that has been web published, why doesn't it automatically start running?  How can you make it start running automatically. Seems silly, but the user does not want to press the "run" arrow.  They want to open the web page and have the information displayed without having to start the VI.

 

Any suggestions?

0 Kudos
Message 1 of 14
(4,521 Views)

Just run the VI on the server in advance or make the VI run when opened. That way it will be running whenever a remote panel client connects.

 

If for some reason it is unacceptable to have the VI running all the time you would have to get more creative. If you are running in 8.6 you could write a web service that could start the VI running and then serve to the client the web page that contains the remote panel. Pre-8.6 you could accomplish the same thing with the Internet Toolkit. This solution would be severe overkill but they would be pretty cool. 🙂

0 Kudos
Message 2 of 14
(4,515 Views)

I wish all of my questions would be that easy to solve...... 

 

 

Executable is running (has to otherwise it couldn't publish the web panel).  The VI is set to run as mentioned.

 

Any other suggestions?

0 Kudos
Message 3 of 14
(4,508 Views)
Sorry, but that does not make sense. If the VI is running, the start button does not need to be clicked. A running VI should not even have the taskbar visible. If you have made the taskbar visible, someone may have clicked the abort button and this would require clicking the run button. Do you have a Boolean button on the front panel that would stop the VI? If that's the case, remove it.
0 Kudos
Message 4 of 14
(4,500 Views)

 

You are correct. It doesn't make sense.   This is just another example of a LV FU that I can't get help with becasue it's not normal... 😞

 

 

There is no stop button for the user to push.  The only way to stop the instance of the VI running is to close the web browser page.

0 Kudos
Message 5 of 14
(4,495 Views)

As you can see from the attached picture, the VI is running but the webpage in the background has the run arrow and menu items shown.  ????

 

 

 

Message Edited by dbtestcon on 11-20-2008 02:28 PM
0 Kudos
Message 6 of 14
(4,487 Views)

If the VI is reentrant then remote panel clients will get their own, not running, instance.

 

Nathan

0 Kudos
Message 7 of 14
(4,483 Views)

If the VI is not reentrant, the only other way that I can think of this happening is if you are not actually connecting to the server you think you are connecting to. For example if you had your application running and LabVIEW was also running and it was the LV server you connected to not your application's.

 

(By the way- I was not trying to be condescending with my first suggestion. You didn't mention that the remote panel was being served from a built executable.)

Message 8 of 14
(4,472 Views)

It is reentrant.  Can I have multiple connections with everyone having control of their own copy without doing it that way?

 

Sounds like they're stuck pressing run buttons....

0 Kudos
Message 9 of 14
(4,447 Views)

Hmmm- that sounds like a bug to me. Reentrant VIs didn't use to run when opened because you could only get a reentrant instance when you called a reentrant subVI. Only recently have reentrant VIs cloned new instances for remote panel clients. It seems like it should, in that case, honor the 'run when opened' setting.

 

Let me look into this.

0 Kudos
Message 10 of 14
(4,443 Views)