LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Network Published Variables with Lab Windows

I have a Labview 2011 program, running on a PXI system with Labview RT, that uses Network Published variables. I want a Lab Windows program to be able to access these same network variables. What has to be done?

 

I have already created the variables and can communicate with a PC that runs a labview program, But I want a Lab Windows program to be able to read these same network variables.

 

I understand that on the Labview RT side the Network Variable engine is used. The person writing the Lab windows code uses the NI Distributed System Manager. Are these two compatible? Or do I have to choose which one to use. And since it is so easy to set up network published variables that use the Variable engine I would stick with that. What would have to be done on the Lab Windows side to access the network variables.

 

 

Dave

 

0 Kudos
Message 1 of 5
(2,372 Views)

Dave,

 

I also found a great article which should help with the network variables as well:

 

https://www.ni.com/docs/en-US/bundle/labwindows-cvi/page/cvi/libref/cvinetworkvariables.htm

Regards,

Renée M
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(2,350 Views)

Thank you for the reply. The resources you mentioned only apply to LabWindows. I have used network variables from within Labview for years. But I have never communicated with a LabWindows program, which is what I am trying to do now.

 

The Labview program already exists and runs on a PXI real time system. I would like the Lab Windows program to access the same variables that reside on the RT system.

 

The Lab windows programmer has already modified his code and can communicate between Lab Windows programs using network variables. Just as I can using Labview. But we can not communicate between the Labview program and the Lab Windows program. Is it even possible to communicate between Labview and Labwindows using network variables?

 

I know for the Labview network variables to work the NI Variable engine needs to be running on the real time system. And I am assuming there is a version running on the PC as well. Do I have to make sure the PC running the Lab Windows program is also running the NI Variable engine?

 

Thanks again,

 

Dave

 

0 Kudos
Message 3 of 5
(2,335 Views)

dcwill,

 

If you take a look at this article that I sent you, you will see that it mentions the function CNVCreateSubscriber for creating the Network Variable Subscriber. I've located the documentation for this for you, and pasted it below:

https://www.ni.com/docs/en-US/bundle/labwindows-cvi/page/cvi/libref/cvicnvcreatesubscriber.htm

Regards,

Renée M
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(2,322 Views)

Thanks again, As of my last post I wasn't even up to the point of being able to read the network variable from within CVI. I had to figure out that the NI Variable Engine had to be installed on the non Lbaview computer and the Network variables had to be included in my excecutable. Now the variables can be seen, using the Distributed Ssytem Manage. And those links you posted should be usefull. Thanks!.

0 Kudos
Message 5 of 5
(2,317 Views)