08-19-2013 11:07 AM
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
08-22-2013 04:38 AM
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,