ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Shared variables

Hello,

 

i am working on an application that is sending data to a shared variable locally on the computer.

The application works when i run it from labview, and i can see in distributed system manager that the shared variables are being deployed and updated with a value.

 

However, when i compile the program and run it as an executable, it does not work. I have traced it down to that the variable called "Local PSP Variable Root Container" returning an empty string when running as executable, instead of "ni.var.psp://localhost" when running from labview.

This is the case when i etst the executable on the same computer as when i run from source co9de, and when i test on other computers.

 

Does anyone have any tips what this problem could be caused by?

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

What settings do you have in your build specs?  I suspect you don't have it set to deploy your SVs on executable startup

0 Kudos
Message 2 of 3
(2,998 Views)

I have checked that option:

"Deploy shared variable libraries at application execution"

and selected both the libraries i am using.

0 Kudos
Message 3 of 3
(2,996 Views)