11-20-2008 01:02 PM
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?
11-20-2008 01:38 PM
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. 🙂
11-20-2008 01:54 PM
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?
11-20-2008 02:05 PM
11-20-2008 02:08 PM
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.
11-20-2008 02:26 PM - edited 11-20-2008 02:28 PM
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. ????
11-20-2008 02:29 PM
If the VI is reentrant then remote panel clients will get their own, not running, instance.
Nathan
11-20-2008 02:44 PM
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.)
11-20-2008 04:30 PM
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....
11-20-2008 04:42 PM
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.