I'm trying to publish data live data from a LabView vi to a file that will be viewed from the web with my machine as the server. What is the simplist way to do this? Basically I'm lost on both ends of the process. I don't have any background in scripting and creating web pages that would continually pull data from a source, but would love suggestions of where to start. Thank you!
You are going to want to use DataSocket, which should come with LabView, at least it came with my LabView 5.1 Just look at all the help files and examples on DataSocket in the LabView help files and you will understand more. Hope this helps.
You can do this, although with Datasocket, you're forced to not only have Windows platform on the client machine, you must also have LabVIEW on the client machine.
Actually, the easiest way is to use the LabVIEW Web Server. By enabling the Web Server and allowing users access to the vi, a user can use the .monitor? command in a URL on a web browser to view the front panel of the VI every 3 seconds.
You can also use the .snap? command to take a snapshot of the VI on a web browser. Check the Help on LabVIEW for the Web Server; it will explain it further.
If you would like more updates than 3 seconds, there is another way to publish, albeit more complicated.
I did what you said regarding the webserver option. But my browser doesn't refresh at all. I am seeing only the snapshot, but not a refreshed screen of my live data. What am I doing wrong? any help is appreciated. thanks
According to the on-line help, "Currently, only Netscape supports the Monitor option. Internet Explorer 5.0 or later does not support monitoring, but it does periodically refresh the screen. In all other browsers, the image appears static."
Instead of using monitor, use the embedded option of the web publishing tool.
Another way is to just make a simple webpage using the meta refresh tag. ( in the head section will refresh the page every 15 minutes)
If you have the image toolkit you can create snapshots of the frontpanel and overwrite them at set intervals. This is how i did the page at http://www.mech.uwa.edu.au/AIGO/
THank you for the prompt response. Can you elaborate more or direct me to some sort of documentation on the embedded option? This is my first attempt to create a live monitoring system on the web. I am interested in continously monitoring my data over the web with periodic updates (say every 30 secs or minute). Thanks.