NationalInstrunments.Net.DataSocket Unlicensed in Measurement Studio 2019

Updated Jun 6, 2023

Reported In

Software

  • LabWindows/CVI

Issue Details

  • I am migrating my project to Measurement Studio 2019 and it is not able to compile, I am receiving a NationalInstrunments.Net.DataSocket is Unlicensed error
  • Why are the DataSocket functions not available in Measurement Studio 2019?

Solution

The DataSocket class library has been deprecated for Measurement Studio 2019, and is no longer supported. If you are moving from an old version of Measurement Studio you can migrate your DataSocket application to use Network Variables instead. See the process in the Measurement Studio Help Files. To access this section of the help files go to Extensions>>Measurement Studio>>Measurement Studio Help, in the Measurement Studio Help go to Contents>>Measurement Studio Help>>Class Libraries and User Interface Controls>>Network Variable .NET Class Libraries>>Network Variable Feature Overview>>DataSocket Migration.

If using Data Socket is a must, the workaround is to install Measurement Studio 2015 which installs the NationalInstruments.Net.dll and the NI Measurement Studio DataSocket .NET Language Runtime 2015 for .NET 4.5. This way you should be able to use the DataSocket API in .NET to communicate with a DataSocket server.

Additional Information

You use the Network Variable class library to transfer live measurement data between applications over a network. You can use network variables to exchange different types of data between Measurement Studio, LabVIEW, LabWindows/CVI, and other applications that support NI-Publish Subscribe Protocol (PSP) and OLE for Process Control (OPC) servers. Exchanging data between Measurement Studio applications and OPC servers requires LabVIEW DSC Run-Time System.