01-24-2007 05:46 AM
01-24-2007 06:00 AM
01-25-2007 04:58 AM
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
01-25-2007 07:49 AM
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