PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading data from datasocket using vc

Hello to all,
I want to read data from ni datasocket server using
VC++ and plot on 2dgraph control of ni.
Has any one tried this.
i get error while i try to read Data.Value.

Looking forward for response.
thanks

,
0 Kudos
Message 1 of 2
(3,300 Views)
Hello

Are you using the activex wrappers generated by the classwizard in Visual Studio or are you using the custom made CNi wrappers for datasocket.

The custom made CNI wrappers are provided with a seperate software package called Measurement Studio Controls for Visual C++. These wrappers are alot easier to use than the classwizard wrappers and have been optimized for use with Visual C++. It provides several examples to show how to use the controls.

If you are using the classwizard wrappers,You can find examples for datasocket at the following link:
ftp://ftp.ni.com/support/compworks/samples/
There is a zip file called CW3VC.zip that has a datasocket example folder that will show you how t
o start using the datasocket control correctly.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,300 Views)