LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared Variables

Hello,
 
I am using Labview 8.0 and Real-Time to read a serial device on my RT-system. I want to transfer the results using a shared variable. To do this, I have created a project using "New Real-Time Project". However, when I run the VI's, the serial port is read perfectly but the variables are not sent over the network.
Also, the secondary loop which also reads the shared variable doesn't get any data from the shared variable.
Message 1 of 6
(4,504 Views)
I have the same problem, if you're talking about getting data to the host.
I still haven't solved it, but I was able to continue using plan B. Using
the project window, I dragged variables-network-RT.lvlib to the RT target.
Then, using MAX, I loaded the Network Variable Engine software onto the
target. (I loaded Variable Client Support first, but that didn't fix the
problem.) It works, but supposedly it takes more of the target's resources.

> I am using Labview 8.0 and Real-Time to read a serial device on my
> RT-system. I want to transfer the results using a shared variable. To do
> this, I have created a project using "New Real-Time Project". However,
> when I run the VI's, the serial port is read perfectly but the variables
> are not sent over the network.
> Also, the secondary loop which also reads the shared variable doesn't get
> any data from the shared variable.


0 Kudos
Message 2 of 6
(4,489 Views)

Hello,

I am starting to use network-published shared variables and I think I have the same problem, I atach an image with two VIs:

Writer.vi runs in a PXI target.

Reader.vi runs in a host PC.

It is the implementation of the simplest network-published shared variables, one boolean changing every 1 second in the target. The host read it and shows it in a LED.

 

If I put the library with the variable in the targe it works, If I put it in the host it does not. I need to free the target from extra CPU load, so I need to resolve this.

I have already checked that the SVE is running.

 

Labview 8.0

target: PXI-8187

 

Is there someone who could help on this topic.

 

Regards

Miguel

0 Kudos
Message 3 of 6
(4,471 Views)
Hey boys,
 
After reading twice
 
 
I found this sentence:

My Windows XP Professional comes with Service Pack 2 and as default the Firewall (Control Panel) is enable. After having disable the Firewall, I have been able to create and use the shared varaible in both, the host and the target without any problem.

I have tried it I it works, it was not Labview but Windows XP firewall which was disturbing.

Hope this help

Best regards

Miguel

0 Kudos
Message 4 of 6
(4,462 Views)
This KB entry seems to have the solution:

http://digital.ni.com/public.nsf/websearch/0D7B86F4B4D19A5E86256F9A006EECB1?OpenDocument


>
> My Windows XP Professional comes with Service Pack 2 and as
> default the Firewall (Control Panel) is enable. After having disable
> the Firewall, I have been able to create and use the shared varaible
> in both, the host and the target without any problem.
> I have tried it I it works, it was not Labview but Windows XP firewall
> which was disturbing.


0 Kudos
Message 5 of 6
(4,447 Views)
Ok, I've got my shared variables to work by disabling the firewall. Another issue is the unability to access the keyboard and mouse. Are there VI's available to resolve this issue?
0 Kudos
Message 6 of 6
(4,426 Views)