10-23-2023 04:36 PM
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?
10-24-2023 03:40 AM
What's CWDSS.exe?
10-24-2023 09:23 AM
wiebe@CARYA wrote:
What's CWDSS.exe?
CWDSS ist the NI Datasocket server.
10-24-2023 10:27 AM - edited 10-24-2023 10:29 AM
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
10-25-2023 05:15 AM
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.
10-25-2023 05:35 AM
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.
10-25-2023 06:12 AM
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.