LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Shared variables with main VI and VI running on CVS 1456

Hi,

 

I'm trying to develop a program that shares information between a VI running on a host computer and a VI running on the CVS 1456 Real time system. I'm trying to use shared variables but for some reason the they are not communicating right. The connection system between the host computer and the CVS is the Ethernet cable running through a hub connected to a larger network. I have no admin rights in the network but the CVS does work and I have been running programs of the CVS.

 

Thank you for your help,

 

Rene 

0 Kudos
Message 1 of 6
(2,882 Views)
So, you are able to deploy programs to the CVS from the host but are not able to communicate between shared variables? Where are the shared variables deployed? On the target (CVS) or on the host? Are you able to ping the CVS from the host? Also, do we need to worry about firewalls on the host itself? Let us know if you have checked the general network issues that come up before concentrating on the communication between shared variables.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 6
(2,878 Views)

I do not think the network is an issue because i can load program and run them onto the CVS. I had originally created "network-published" shared variables on the host computer. When they were referenced on the CVS, it was not affecting the variables. Is there any specific procedure to set up variables to communicate across the host and the CVS?

 

-Rene 

0 Kudos
Message 3 of 6
(2,861 Views)

renesillo wrote:

When they were referenced on the CVS, it was not affecting the variables.


What do you mean by this statement? Is it possible for you to create a simple project that has the CVS target and a library on the host with one variable? Add that variable to a VI on the CVS and to a VI on the host and run the application. Does that work? If possible, zip the project with all the files and post over here.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 4 of 6
(2,851 Views)

I was able to get shared variables working on the CVS but only when hosting the variables on the CVS, not my PC.  My project for this is attached.

 

I am not sure if this is expected behavior and will look into that, but please let me know if you can get the shared variable working when hosting it on the CVS.

Alex Person
NI-RIO Product Support Engineer
National Instruments
0 Kudos
Message 5 of 6
(2,836 Views)

Hey,

 

I just got it to work. It seems I needed to change the variable to be on the CVS, like you specified. Also, since the computer only reads from the variable, I set up the variable as single writer and as absolute instead of target relative. FIFO was also enabled. This gave me almost no delay in the transmission of the variable from the CVS to the host computer.

 

thanks again,

 

Rene 

0 Kudos
Message 6 of 6
(2,831 Views)