LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tpc-2006 shared varaibles don't work PDA module, helpy

Hi Everyone
 
I have been programming my cFP 2120 with no problems using shared varaibles with it and the pc software
 
My problem is with the TPC-2006 that wont talka cross the network with shared variables to a PC application running on the PC.
 
I have followed the setting up the Shared variables on a PDA module to the letter with no avail.
 
Previously I used the open TCP connection Vi's with no problems with the TPC-2006 and the PC,  but now IVe upgraded to PDA module 8.2, realtime 8.2 and labview 8.2, and tried the shared variables.  Nothing happens, no errors, jsut the signal is not getting through.
 
could it be a network problem? i have the screen connected toa switch thats on a domain network, i can ftp into it no problems, i could try my cross over cable, also i am connection active sync using a com cable, becuase USB doesnt work.  I installed the shared variable support on the tpc2006, everything seems there just no talking,
 
any suggestions would be greatly appriciated. 
 
Chris
0 Kudos
Message 1 of 4
(6,297 Views)
Still at a loss...
0 Kudos
Message 2 of 4
(6,297 Views)

Hi Chris,

There are a few things that could cause this issue. Firstly the support for the shared variables needs to be installed from the LabVIEW project, however once you re-boot the TPC you will need to re-install this support, as the TPC boots from an image each time it loads, meaning that anything you have installed will not necessarily still be available. Check out the following kb article which gives some more information about how you can work around this:

http://digital.ni.com/public.nsf/websearch/4B3034AE0478B1C68625721F002EF1F1?OpenDocument

Another issue I have seen before, is that the TPC doesn't keep the IP address settings correctly, so when the shared variables are running they are unable to find the variable engine - I'm can't remember the exact issue, and I don't have one here right now to have a play with, but I think it was something to do with the subnet settings - let me know if you want me to dig into this further?

The error code itself translates to: Unable to locate variable in the Shared Variable Engine. Deployment of this variable may have failed. This could occur if the library with the variable in has only just been deployed - meaning that you need to wait a little longer before accessing this (most relevant if you are deploying the variables programmatically on the TPC, or if you are hosting them on another target - and you haven't run the corresponding vi yet that deploys it). It could also mean that the engine is just not running at all, so it may be worth checking this out on the Variable Manager on the PC and checking that the variables are there and don't show any errors.

Another thing to look at is the following tutorial :

http://zone.ni.com/devzone/cda/tut/p/id/4375

Which has the following paragraph in the 'Deploying and Running the PDA Application' section

It is important that in the Machine Aliases section of the Build Specifications Properties, that you enable the option to Deploy aliases file. This aliases file contains the IP addresses of the targets in your project and allows them to communicate through network-published shared variables.

Take a look at these things, and let me know if you still have problems.

Hope this helps

Hannah
NIUK & Ireland

0 Kudos
Message 3 of 4
(6,274 Views)

i had to let 2 .exe's have persmission.  in the help fine using shared vairables  with firewalls theres a tiny note at the bottom telling u to allow these priograms, all sorted

 

0 Kudos
Message 4 of 4
(6,262 Views)