LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasocket in VB.net

Hello,
this is the code to use Datasocket in vb6:

Dim v As Variant
v = CWDataSocket1.Data.Value

'Value is default property in VB, so you don't have to explicitly state
it:
v = CWDataSocket1.Data

'Set the value held by a DataSocket to a number
CWDataSocket1.Data.Value = 10

how is the code in vb.net please!

0 Kudos
Message 1 of 3
(3,169 Views)
This is a LabVIEW board. You should post this to the Measurement Studio board.

___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(3,158 Views)
Hi,

If you are looking for an example using DataSockets in VB .NET you should have example code located under C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\DataSocket\.  Under this folder is an example project for using DataSockets.  You might or might not have this depending on your version of Measurement Studio.  You will need version 7.1 or greater.  Hope this helps!
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 3 of 3
(3,140 Views)