Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Reading From DataSocket server Using DSReader Microsoft Visual C# .NET

I want to run the example program 'dsreader' from http://zone.ni.com/devzone/cda/epd/p/id/1139.

 

This example demonstrates how to use the Measurement Studio 6.0 CWDataSocket ActiveX control to create a DataSocket Reader/Writer in Visual C#. With this application, you can write a numeric value to a target source with the DataSocket Writer and read that value with the DataSocket Reader.

 

When I run dsreader in Visual C# .NET I get the following error:

 

Error    1    'AxCWDSLib.AxCWDataSocket' does not contain a definition for 'CtlUpdate'    C:\........\DataSocket Reader\Form1.cs    301    13    DSReader

Any ideas would be welcome.

Ken35

 

 

0 Kudos
Message 1 of 2
(5,585 Views)

Dear Ken;

 

By default the examples in Measurement Studio use the Enterprise library instead of the Professional library, this is why an error occurs when trying to compile the examples when using the Professional Edition. In order to rectify that follow the procedures below:

 

1.In the Solution Explorer under References first delete the NationalInstruments.Analysis.Enterprise.

2.Right-click the References folder to add the NationalInstruments.Analysis.Professional reference.

3.Compile the example and it should run as expected.

 

Please let me know if this helps,

 

Kind Regards,

Robert Ward
Applications Engineer, NI
0 Kudos
Message 2 of 2
(5,561 Views)