11-16-2009 05:25 AM
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?
11-23-2009
10:01 AM
- last edited on
04-02-2025
04:12 PM
by
Content Cleaner
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
Regards,
11-23-2009 11:37 AM
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
11-24-2009 02:18 AM
Hello quintella,
Do you mean information about how to use Datasockets with these protocols? Or just information about these protocols?
Regards,
11-24-2009 02:50 AM
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
11-25-2009
07:42 AM
- last edited on
04-02-2025
04:13 PM
by
Content Cleaner
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,