labsocket - an application enabled by html5 websocket
DESCRIPTION
The LabSocket system enables remote access to LabVIEW applications via desktop or mobile web browsers without the need for browser plugins or a client-side run time engine. A key technology used in the system is the HTML5 WebSocket interface which enables continuous, bi-directional communication with a web browser. This technology also contributes to the name of the system: "LabSocket = LabVIEW + WebSocket". This lightning talk presentation provides an introduction to the LabVIEW development environment, an overview of the LabSocket system theory of operation, and an example application. More information about LabSocket is available at http://labsocket.com.TRANSCRIPT
LabSocketAn Application Enabled by
HTML5 WebSocket
John Bergmans
Bergmans Mechatronics LLC
San Francisco HTML5 Meetup - Lightning Talk
Nov 14, 2013
B e r g m a n s M e c h a t r o n i c s L L C
1616 Bedford Lane, Unit A twitter: @jbergmansNewport Beach, CA 92660 web:bergmans.com
Bergmans Mechatronics LLC
LabVIEW Development Environment• Developed by National Instruments (http://ni.com)• Uses graphical data flow language• Each program or subroutine known as a “Virtual Instrument” or VI
User Interface (“Front Panel”) Interface)
Program Logic (“Block Diagram”)
Bergmans Mechatronics LLC
LabSocket System• Remote viewer client for LabVIEW applications• Browser-based clients, no special client side requirements• Data transmission to/from browser via HTML5 WebSocket
Browser
LabSocket Server
Platform
HTTP Server
ActiveMQ
Message Broker
“Target VI”
LabSocket
Support VIs
LabVIEW Host Platform
Browser
Browser
WebSocket
Interface
(Over TCP-IP)
TCP-IP
Socket
Interface
LabSocket Support VIs
Startup- LabVIEW Front Panel screenscrape, send HTML and JavaScript code to HTTP server
Continous Operation- Transmit updates of LabVIEW front panel to browser- Update LabVIEW front panel when user generates events in browser
Bergmans Mechatronics LLC
Element Test VI
LabVIEW Front Panel Browser Representation
Bergmans Mechatronics LLC
Remote Cascade Lab - KTH Royal Institute of Technology (Sweden)
GUI Main View Live Traverse Results
• Objective: to perform tests on turbine airfoils• LabVIEW software used to control test rig• LabSocket system enables lab testing to be performed
remotely using browser• Remote control of rig aided by use of web cam• 70 students have operated rig remotely with LabSocket
system to date (60 in groups of 3-6 and 10 individually)• Lab part of EU funded Virtual Campus Hub project
Additional information at: http://www.energy.kth.se/proj/projects/Remote_labs/RL/RL_website/RCL/RCL.html
Bergmans Mechatronics LLC
Thoughts
• LabVIEW / LabSocket as dynamic web authoring system
• LabSocket is an example of an application enabled by HTML5 WebSocket
• What other new type of applications can be enabled by WebSockets?
More Informationhttp://labsocket.com@jbergmans