From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-13-2010 08:53 AM
09-13-2010 09:24 AM
This should be possible, but there are some things to consider.
The one thing I don't think is possible is for your Custom Device to deploy the variables programmatically. So there are two possibilities I see:
1. Deploy the variables on the host and have the Custom Device on the target just connect to them. This, however, requires the host computer to always be running, or at least it requires the target to handle communication errors if the host computer isn't.
2. Use the LabVIEW Project to deploy the variables to your target. At this point, I believe you can reinstall NI VeriStand support from MAX and the variables will still be deployed. Then your Custom Device can connect to them.
09-13-2010 10:01 AM
09-14-2010 03:34 PM - edited 09-14-2010 03:34 PM
In the LV Project Explorer, right click your RT target and select Disable Autodeploy Variables. This should prevent the shared variables from deploying each time you run your VI.
09-14-2010 03:37 PM
06-05-2017 03:57 AM
Hi Jarrod,
Are Shared Variables only used in Custom Devices ?
I try using them on a lvmodel but it doesn't work.
With the (almost) same code in LV I face no probs.
Thanks, BR,
Erwan LP
Alstom France
06-06-2017 11:45 AM
Hi Alstom,
I would not expect Shared Variables to work inside of LabVIEW Models. Generally, I would only expect Inports, Outports, and Parameters to be updated and pass information to NI VeriStand. Perhaps, the help documentation below will be helpful.
Using LabVIEW VIs as Models: http://zone.ni.com/reference/en-XX/help/372846F-01/veristandmerge/model_from_lv/#prep
In the future, I would recommend posting a new thread instead of replying on a thread that is 7 years old. This will get more visibility to the community.
Thanks,
Andy
Applications Engineer
National Instruments