Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent!! shared variable does not work all the time

Hi
 
I have some problem with shared variables. Not sure if shared variables are not stable.
 
I used my PC and a cFP for temperature monitoring application. I used shared variables in the vis in my project. However, these vis does not work on all computers. For example, this whole project may work fine in computer A but does not work in computer B and C.
 
Could you tell me what are the things that I need to install when I am using shared variables?? What kind of settings do I need to set for my computer (eg firewall, etc)??
 
Thank you & Regards
Lee
0 Kudos
Message 1 of 6
(4,002 Views)
Hey Lee,
The first thing that crosses my mind is the Windows Firewall. Try turnning it completely off and see if that helps. If it does then all you need to do is create an exception in your firewall for LabVIEW. Post to let us know what you find.
 
Chris C
0 Kudos
Message 2 of 6
(3,999 Views)

Hi Chris,

I had tried that before but this is not the reason all the time. As I have tried many times on many different computers, turning off the firewall does not solve the problem all the times. There are occassions that I turned off the firewall and it still could not work.

It would be very much appreciated if someone could tell me what are all the steps that I need to do to make sure that shared variables work all the time. (Steps can be what software to install, what to turn off and what to turn on, etc)

Thank you & Regards

Lee (LabVIEW 8.0 & 8.20)

0 Kudos
Message 3 of 6
(3,996 Views)

Itok,
Where did you host your variables? In other words, in your project, do they appear under "my computer" or your cFP target? Also what controller are you using?

If you are hosting on your target, you have to install the variable engine and variable client support. If you're aren't hosting on the cFP, you only need cilent support. There really isn't much memory on the cFP so you're probably hosting on your PC.

When you say "they don't work" what do you mean? Are you getting an error?

 

Chris C

0 Kudos
Message 4 of 6
(3,975 Views)
Hi Chris,
 
I host the shared variables in cFP and the one that I used is 2020.
 
The cFP system has a thermocouple and 1 of the variables is used to get the value of the thermocouple. When I run the vi, this temperature variable is not updated. It shows a constant zero value. This is what I meant by "they don't work" Smiley Happy
 
Where can I download the variable engine and variable client support?? Could you attach the links??
 
Thank you & Regards
Lee
0 Kudos
Message 5 of 6
(3,970 Views)
Lee,
These are installed from MAX by exapnding your target and then right clicking on "software". You'll see "add\remove software". This will pull up the list of software to install. Variable client support is installed to your host when you install RT.
 
However, you may be fighting another problem. See
 
 
Also, can you tell us more about the circumstances under which your program does work? Is it only on the development computer?
 
Chris C
0 Kudos
Message 6 of 6
(3,959 Views)