Showing results 1 to 1 of 1

Thread: Idea to display zenon network status on WebServer start page

  1. #1
    Join Date

    Idee Idea to display zenon network status on WebServer start page

    starting the webclient is usually done via accessing the WebServer startpage (index.htm).
    when the WebServer startpage is then shown on the client computer (where the WebClient should be started) there is no information (yet) i.e.
    - if the Runtime Server is running (resp. on which computer)
    - if the WebServer is running
    - how many clients are already connected (maybe no more client licenses are free?)

    a possible way to forward this information to the WebServer startpage is to simply bind a textfile to this startpage. the content of textfile itself is written i.e. via VBA / VSTA from the zenon RuntimeServer.

    In the attachment you can find a screenshot how such a modified zenon WebServer startpage could look like (see zenWebSrv_zenSytemInfo.jpg)

    using following html code it is possible to display the content of a given textfile

    PHP Code:

    <p>zenon Runtime status:</p>
    object data="MyTextFile.TXT" type="text/plain" width="800" height="100" border="1">
    Your browser can not display this object!
    the textfile itself must be located then in the same folder as the index.html file

    at the zenon runtime server (only) a small VBA / VSTA code reads out i.e. the systemvariables
    Current primary server
    Names of connected clients

    and writes the value of those variables into the textfile

    to check if the zenon WebServer is running or not the process zenWebSrv.exe can be evaluated i.e. via WMI coding (there are several examples on this in the internet).

    also it might be necessary that the html page should be refreshed cyclic (to display the current content of the text file). this can be done via the method "refresh" within the header html page:

    PHP Code:
    meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
    meta http-equiv="refresh" content="30" />
    link rel="stylesheet" type="text/css" href="ressources/style.css" />
    title>COPA-DATA :: zenon web server demo</title>
    Attached Thumbnails Attached Thumbnails zenWebSrv_zenSytemInfo.jpg  

Similar Threads

  1. Has WebServer in Demo mode WebServer or WebServer Pro functionality?
    By stolyarov_as in forum Webserver/Webclient
    Replies: 1
    Last Post: 2nd April 2014, 13:54
  2. Network Status
    By sidramsatyal in forum zenon Network
    Replies: 1
    Last Post: 16th December 2013, 12:56
  3. Replies: 1
    Last Post: 11th April 2010, 23:30
  4. Simple Project, no idea
    By matholton in forum zenon Supervisor
    Replies: 1
    Last Post: 24th September 2008, 12:01
  5. Replies: 0
    Last Post: 25th August 2008, 15:20

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts