Using Secure Websockets Toolkit in LabVIEW

Updated Dec 6, 2023

Reported In

Programming Language

  • LabVIEW G

Issue Details

  • Does NI provide toolkit for using secure websockets function in LabVIEW?
  • When I tried to use basic TLS function, I am unable to establish a secure connection with my websocket server. Is there a method to test whether I can connect to a secure websocket server?

Solution

This toolkit is provided by third party for free and can be obtained at this link. Please download the zip file from the GitHub page.

After unzipping the file, please run the VI Package Configuration file to install via VIPM. Please refer the picture below.
Add on installation

The WebSockets Secure Addon.lvproj example project is located in Source folder. Instruction on how to run and use the example is included in each VI. You can use the Secure Client Example.vi to check if your client is able to connect to a secure websocket server.

Additional Information

This toolkit was built using Transport Layer Security (TLS) API and NI provides one example which also can be used to check if client is able to connect to a secure websocket server. This example is called Connect to TLS Server.vi and is available at C:\Program Files (x86)\National Instruments\<LabVIEW version>\examples\Data Communication\Protocols\TLS directory.

NI did not build any toolkit for websocket and does not provide support third party toolkit. Any toolkit related to websocket is developed by one of NI's alliance partner, MediaMongrels. Basic support is provided on each of their GitHub product's repository or through their MediaMongrel website.

There are many other available method and external toolkit available to establish data communication for Internet of Things (IoT) and one of them is via websocket. Please ensure you are using the right toolkit for your application.