LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting A C++ data Socket using CWDSS.exe to a LabView application

I have been communicating between 2 LV applications using CWDSS.exe . Now I have a Microsoft C++ application that wants to connect to my LV application using the same interface.  How do I connect to my LV application from C++ through the CWDSS.exe server?

0 Kudos
Message 1 of 7
(814 Views)
0 Kudos
Message 2 of 7
(761 Views)

wiebe@CARYA wrote:

What's CWDSS.exe?


CWDSS ist the NI Datasocket server.

0 Kudos
Message 3 of 7
(737 Views)

Isn't datasocket deprecated technology?

 

I know you can access shared variables over TCPIP (though REST IIRC). I'd have to look up the protocol...

 

I'd assume you can get a datasocket's data though it's URL (as you can actually get HTML from a URL with datasocket), but there might be a few string you'd have to pull.

 

DSTP - NI DataSocket Server Documentation

DataSocket Transfer Protocol (dstp) Overview - NI

How Do TCP and DataSocket in LabVIEW and CVI Access a Port on Another Computer? - NI

How Is the URL Built in DataSocket and How Is It Used in LabVIEW - NI

0 Kudos
Message 4 of 7
(726 Views)

Datasocket isn't exactly depreciated, it is an older version of what got later network shared variables. And they both build on the Logos infrastructure that was coming from the Lookout software that NI acquired long ago (and since abandoned).

 

The documents you mention seem to indicate that it should be indeed possible to access shared variables (and by extension datasocket variables) through REST calls to the NI WebServer interface on the computer they are hosted on. However according to an answer I got in a thread (which I can't seem to find now) there is more to it than just the URLs as documented in some help files and NI is not able or willing to document more about that.

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 7
(685 Views)

I did read\write shared variables with REST (on an Arduino 😎).

 

The 'documentation' was quite hard to find. I think I stored some links somewhere.

 

Not datasockets though. I don't know where their similarities begin or end.

0 Kudos
Message 6 of 7
(679 Views)

wiebe@CARYA wrote:

 

Not datasockets though. I don't know where their similarities begin or end.


I believe it is in the URL. Datasocket uses dstp:// as scheme or protocol component. Also the syntax of the variable hierarchy is somewhat different.

Rolf Kalbermatter
My Blog
0 Kudos
Message 7 of 7
(670 Views)