LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

No option to deploy network shared variables to RT target

I am unable to deploy network shared variables to an RT target.

 

I am using LabVIEW 2020 SP1 32-bit, and RT module

My target is an IC-3120.

 

I am able to successfully run my software in LabVIEW dev env.  You can see the below screenshot of the Distributed System Manager, with the shared variables:

Ozfarmboy_2-1623902737038.png

 

 

But when I create an exe, my application does not run.

 

I am confident this is because the Network shared variables have not been deployed.

 

This article Deploying Network Shared Variables from a Compiled Executable - National Instruments (ni.com) recommends to do the following:

To deploy shared variable libraries in executables built in LabVIEW 2009, follow these steps (and refer to the image below):

  1. In Build Specifications, select Shared Variable Deployment.
  2. To deploy the libraries at application execution time, check the box titled Deploy shared variable libraries at application execution.
  3. To undeploy libraries when the application finishes, check the box titled Undeploy shared variable libraries at application exit.

 

I don't get the Shared Variable Deployment option in the list when I open the properties of my build specification, so I suspect this is why.  But why don't I get this option?  Is this no longer an option in LabVIEW 2020?

Ozfarmboy_0-1623902509450.png

 

I also tried right clicking on the shared variable library, and selecting "Deploy" OR "Deploy all" - but this doesn't seem to persist after a reboot.

 

I have the following installed on the IC-3120:

Ozfarmboy_1-1623902621467.png

 

Remember that it works fine when running in LabVIEW dev env.  Just not as an exe.

 

Thanks in advance!

Christopher Farmer

Certified LabVIEW Architect and LabVIEW Champion
DQMH Trusted Advisor
https://wiredinsoftware.com.au

0 Kudos
Message 1 of 3
(1,692 Views)

Some additional notes:

 - The IC-3120 is running the RT application.

 - We have another Windows application that will communicate with the RT application via the shared variables

 - We need to have the shared variables deployed to the IC-3120

Christopher Farmer

Certified LabVIEW Architect and LabVIEW Champion
DQMH Trusted Advisor
https://wiredinsoftware.com.au

0 Kudos
Message 2 of 3
(1,622 Views)

You might try putting the SV library in the "Always Included" category. It might help, I thought I had some evidence of that but now less sure.

 

This is different in a few ways, so probably not all that helpful, but I just tried the following and appeared to be successful, despite also not seeing a "Shared Variable Deployment" entry in the Build Spec window.

  • LabVIEW 2019, not 2020
  • Similar packages installed on a cRIO-9045 virtual machine, running in VirtualBox
  •  Real-Time Application running as startup
  • A NPSV with double datatype in a library at the top of the cRIO, only one VI, writing random numbers to that SV. An indicator in the same VI displaying the most recent value for comparison (but I had the wait time too short, it was difficult to check the same values. I suspect some latency, probably expected).
  • When the library was in the "Always Included" part of the "Source Files" tab, it worked fine.
  • When I removed it from there (no changes to other code), rebuilt and used the Run as Startup -> restart -> wait setup, the RT application didn't seem to start (I can see the front panels usually in VirtualBox, here I just get the desktop) and the desktop PC's VI failed with error -1950679035 (LabVIEW: (Hex 0x8BBB0005) Unable to locate the shared variable in the Shared Variable Engine (SVE). Deployment of this shared variable may have failed, the SVE has not started, or the SVE is too busy to respond to this request.)
    • Rebooted the VM and it worked again. So guess not...

 


GCentral
Message 3 of 3
(1,609 Views)