![how to install labview websocket how to install labview websocket](https://i0.wp.com/www.mediamongrels.com/wp-content/uploads/2019/11/LabVIEW-Sockets-API.png)
So all you folks with iOS and Android who feel left out by the WebUI Builder, or those of us who are infurated by it's $1500/yr price tag (after spending $ on LabVIEW RT/FPGA), Cheer Up! The very best thing about this is that it is all FREE, and runs on any platform that has an HTML5/SVG/WebSockets supporting browser (I'm keeping my fingers crossed for the next firmware revision of the Nintendo DSi), and requires NO PLUGINS. Now that we can all design our own GUI objects using Inkscape (free), I suggest a concerted effor to develop a standard SVG format, streaming protocol (based on WebSockets) and open-source script library. You can use the DOM to set the transform attributes of SVG elements using the streamed info (rotate, scale, set heigh, width, line points, etc.). Once the connection is made, you can stream bidirectional data between your LabVIEW application and any bleeding edge browser (Firefox 4, Chrome 9, Safari, IE9?). The browser connects to the socket server and sends a handshake when you create the WebSocket object in script.Īll you need do is put a TCP/IP listerner in your diagram and return this handshake as described in the wikipedia article on WebSockets.
![how to install labview websocket how to install labview websocket](https://i0.wp.com/www.mediamongrels.com/wp-content/uploads/2019/11/2019-11-07_20-16-51.jpg)
The WebSocket protocol has a built in message event handler that allows you to create your own script function which executes when messages are received. All you have to do is create a script to change the attributes of the SVG elements using the Document Object Model. I normally don't post on LAVA, but lately I have been experimenting with the WebSocket protocol, ecmascript, and the SVG DOM for creating animated browser displays with data streamed from LabVIEW.