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.
LabSocket - An Application Enabled by HTML5 WebSocket
1. Bergmans Mechatronics LLC
LabSocket
An Application Enabled by
HTML5 WebSocket
John Bergmans
Bergmans Mechatronics LLC
San Francisco HTML5 Meetup - Lightning Talk
Nov 14, 2013
1616 Bedford Lane, Unit A
Newport Beach, CA 92660
twitter: @jbergmans
web:bergmans.com
2. 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”)
3. 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
WebSocket
Interface
(Over TCP-IP)
Browser
“Target VI”
HTTP Server
Browser
ActiveMQ
Message Broker
Browser
LabSocket Server
Platform
TCP-IP
Socket
Interface
LabSocket
Support VIs
LabVIEW Host Platform
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
5. Bergmans Mechatronics LLC
Remote Cascade Lab - KTH Royal Institute of Technology (Sweden)
• 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
GUI Main View
Additional information at: http://www.energy.kth.se/proj/projects/Remote_labs/RL/RL_website/RCL/RCL.html
Live Traverse Results
6. 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 Information
http://labsocket.com
@jbergmans