02-18-2014 01:58 PM
I have a Shared Variables.lvlib on a cRIO target, and want to test some algorithms when I don't have access to the cRIO hardware. Figured I could make a new project, add the same library to the windows target (My Computer). I needed to add a few extra variables, which I did in the original project (i.e. while the library was under the realtime target). Then create a new project and added the lvlib to the project (under My Computer), then wrote a VI to write to these SVs. When I drop a Shared Variable Refnum constant on the block diagram and browse to the Variable Objects, under "Variable Engines" > ni.var.psp > localhost > Shared Variables the list of variables shows everything except the 6 new variables. When I switch the view to "Current Project" I get the same list WITH THE 6 new variables. However if I select the variables from this list and run the VI I get an error -1950679035 unable to locate the variable in the Shared Variable Engine. Obviously I overlooked something, anyone out there set me straight?
Thanks for your time - lmd2
Solved! Go to Solution.
02-18-2014 02:02 PM
Hello Lawrence,
It sounds like you may just need to deploy the new variables- refer to this document:
LabVIEW Help: Making Shared Variables Available on a Network
http://zone.ni.com/reference/en-XX/help/371361K-01/lvconcepts/sv_deploying/
Hope that helps!
02-18-2014 02:12 PM
Thanks Tom (or Outlaw, if you prefer)
figured it was something simple I was overlooking.
Thanks for the quick solution.
- lmd2