LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Starting/Stopping Web Server

I am using WebSrvr.Active in my vi to start the web server but when I stop the web server the browser continues to display the front panel. It seems that the setting WebSrvr.Active to false does not stop the server.

 Is there a way to check if the server has stopped? Is there a way to disconnect or stop the remote monitoring pragmatically?

 

0 Kudos
Message 1 of 5
(3,063 Views)
According to this KB, the Websrvr.active should stop the server. It also metnoins that only the local machine can access this. I am curious though, does the computer you are accessing the web server with still show updating data even after you have called this property?  If so, if you try and refresh the page, does it still stay loaded?
Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 2 of 5
(3,036 Views)
The web page continues to update, but refreshing it disconnects it from the server.  I added a  server close connection after stopping the web server and it disconnects the remote connection right away.
0 Kudos
Message 3 of 5
(3,025 Views)

What is Server Close Connection? I can't find it in functions pallete.

0 Kudos
Message 4 of 5
(2,751 Views)

Hey Fabioalmeidaa,

 

It depends on what kind of connection you're trying to close.  If it's a reference then try this: Right click on block diagram > Application control > Close reference

 

 

Bobby Breyer
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(2,733 Views)