04-23-2013 02:02 AM - edited 04-23-2013 02:09 AM
All,
I have a Real-Time target (SBRIO, shared variable engine, etc installed) on which I am running a VI which updates Network Shared Variables which are subsequently read by Main Panel.vi running in a LabView dev environment. It all works fine.
When I run Main Panel as an exe on a desktop PC within a run time environment, the shared variables hosted on the SBRIO RT are not deployed. After reading many posts and white papers on the subject, I have discovered that the only way to deploy the variables is to do so programmatically using an Invoke Method within a say a desktop hosted VI. This method requires 2 inputs, I/P address of the RT machine (in my case the SBRIO) and the path to the library location.
I have searched my development environment and have been unable to locate the physical location of the "User-Defined Variables" library.
Does anyone know where this library is located or am I completely off-base?
Thanks in advance
04-23-2013 04:17 AM
Hi,
In your project you will create a new Library, and inside it you will create shared variables as you want.
Use the shared variables created in this library in your vis and automatically the library will be deployed
04-23-2013 10:43 AM
Thanks for your reply.
Yes as I indicated in my first paragraph, it works just fine in a LabView development environment. The library was created, appears in the project explorer, deployed automatically and works just fine.
The issue arises when an image of the RT target code is loaded into flash memory of the SBRIO (which also hosts the shared variable engine) and runs automatically, without the need for LabView. In this case it is well known that the variables are NOT DEPLOYED automatically and the only way to do so is to programmatically deploy using an Invoke method on the target executed from a vi on say, a desktop PC.
Invoke method requires that you supply the path to the shared variable library. I understand that the library appears in the project window, but where is it physically so I can get the path? Do I need to export it?
Incidentally, the Distributed Systems Manager shows that the variables are indeed present on the RT target, just not deployed.
Thanks again