Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Read LabVIEW shared variables ( network variables?) with VB6

Hi, i need to read some LabVIEW shared variables (network variables?) using a VB6 program.

Is it possible?

 

I think that yes, using Measurement Studio for VB6 but I don't know how and I haven't found information in the  Measurement Studio for VB6 help file

 

Could some one send me a program example or explain me how it is possible to read LabVIEW shared variables fromVB6?

0 Kudos
Message 1 of 6
(8,405 Views)

 

Hello quintella,

 

To be able to interface with LabVIEW Shared Variables with Visual Basic 6 you will need to use NI Measurement Studio, which ships with examples on how to use VB6 with DataSocketing. Apart from Data Sockets, if you are using Measurement Studio 8.1 or higer, with the Network Variable Library introducted in NI Measurement Studio 8.1, you can read and write to shared variables in ANSI C, Visual Basic .NET or Visual C#. (https://www.ni.com/en/support/documentation/supplemental/06/using-the-labview-shared-variable.html)

 

Here you have two links where you can find more information about how to use the datasocket option. In addition, there are several examples included in Measurement Studio with Network Variables and Datasocket.

 

https://forums.ni.com/t5/Measurement-Studio-for-VB6/compactrio/m-p/335626?requireLogin=False

https://forums.ni.com/t5/Measurement-Studio-for-VB6/Visual-Basic-and-a-cRIO/m-p/457079?requireLogin=...

 

 

Regards,

0 Kudos
Message 2 of 6
(8,362 Views)

Hello sendia,

 

thanks for the information, I will try the  DataSocketing.

 

Do you have information about the different protocols (dstp, psp,file, opc, etc)?

 

In the help file there are not too much information about its and I am not sure what I need to use.

 

Thanks again.

 

Regards

0 Kudos
Message 3 of 6
(8,356 Views)

Hello quintella,

 

Do you mean information about how to use Datasockets with these protocols? Or just information about these protocols?

 

Regards,

0 Kudos
Message 4 of 6
(8,340 Views)

Hello sendia,

 

I need information about how to use Datasockets with these protocols.

 

I want to know  what I need to use for read the labview shared variables?

 

What are the main differences beteween the differents protocols when are use with datasockets for read labview shared variables?.

 

Thanks

 

Regards

0 Kudos
Message 5 of 6
(8,338 Views)

 

Hello quintella,

 

To Access Shared Variables using Datasockets, you have just to specify the URL

 

You can find Datasockets examples for VB6 id the Measurement Studio installation (Start>>All Programs>>National Instruments>>Measurement Studio...>>Examples

 

Regards,

 

0 Kudos
Message 6 of 6
(8,315 Views)