LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can labview 2012 ServicePack 1 communicate over websockets?

Solved!
Go to solution

Hello,

 

 

I am wondering that if we can read packets sent over webSockets (as described in: .Net WebScoekts)? The way we would like to use it currently is that the c++ software reads sensor data, packs them and sends them over websockets (on the local machine) and a client software will pick them up and display them on a GUI which we prefer to be LabView.

 

I know LabView supports data communication over Tcp/Ip but I am wondering that if this is posible or not with WebSockets as well.

 

Thanks and have a great day,

Hatef

0 Kudos
Message 1 of 11
(3,875 Views)

WebSockets is a .NET 4.5 feature.  LabVIEW 2014 ships with .NET 4.0

 

With 2012SP1 I imagine you may have difficulties but, it might be possible.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 11
(3,867 Views)

So LabView does not have a built-in vi's and features that read data from WebSockets? (Kind of similar to what it has for Tcp/Ip)

0 Kudos
Message 3 of 11
(3,861 Views)

You will have to implement the WebSocket negotiation yourself per the relevant RFC.

There are few projects around that use WebSocket for various functions (SVG based remote panels etc) which are not limited to LV2014.

 

0 Kudos
Message 4 of 11
(3,854 Views)

Thanks Gribo,

 

yes, I will implement the negotiations myself, but can you please point me towards the projects that you mentioned?

 

Thanks.

0 Kudos
Message 5 of 11
(3,813 Views)

Actually, I recently posted a native LabVIEW WebSockets implementation to the NI Community.

 

You can check it out here: https://decibel.ni.com/content/docs/DOC-40572

 

Unfortunately I can only build the package in LV2013 but when I get to work tomorrow I can save the VIs for previous version and zip them up for you.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 6 of 11
(3,800 Views)
Solution
Accepted by topic author Hatefk

As promised, here is my library saved for LV2012.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 8 of 11
(3,775 Views)

Thank you Sam_Sharp, but there are some VIs missing. Could upload them in LV2012?

WS.jpg

0 Kudos
Message 9 of 11
(3,466 Views)

I have since packaged my library into a VI Package - please try the attached package (built in LV2012). You'll need the latest version of VI Package Manager.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 10 of 11
(3,452 Views)