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: 

Using the LabVIEW Shared Variable

I have successfully used the Shared Variable to share a boolean value between two .exe LabVIEW 2018 applications.

I then deployed the two executables to several target PCs, the first few worked okay, but on one of the PCs, the variable is not shared.

 

On the problem PC, I opened the Project from source and got warnings that DAQmx VIs were missing.  I then used Package Manger to install the required components, as per this solution https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000001DbLBSA0&l=en-GB

I appreciate that the components of the development system are independent of the run-time engine, but I though this is maybe a clue.

 

The shared variable is still not working.

What run-time component is missing, that is required to make the shared variable work?

 

EQ197_MAX_SW.JPG

 

 

 

0 Kudos
Message 1 of 11
(1,995 Views)

It could be a firewall issue...

0 Kudos
Message 2 of 11
(1,944 Views)

I'd heavily recommend building an installer for the exe's. It'll automagically include all needed runtime components (if you check the box to do so).

0 Kudos
Message 3 of 11
(1,921 Views)

The installer informing me of the required components sounds like a good method.

Now the installer wants me to provide media "LabVIEW 2018 Platform".

 

My development PC has LabVIEW 2018 and drivers installed, but I download the drivers again and pointed the installer prompt to the folder.  It's not the correct folder media, see picture below.

20241004_LabVIEW2018platformRequested.JPG

Where do I find "LabVIEW 2018 Platform" ?

0 Kudos
Message 4 of 11
(1,849 Views)

check if the "NI Variable Engine",  "NI PSP Service Locator" and "NI Configuration Manager" services are running.  

0 Kudos
Message 5 of 11
(1,842 Views)

On the PCs where the shared variable is working as expected, I can see that "NI Variable Engine" & "NI PSP Service Locator" are both running, but not "NI Configuration Manager".

 

On the PC where the shared variable is NOT working, I can see that "NI Variable Engine" & "NI PSP Service Locator" are both running, but not "NI Configuration Manager".

0 Kudos
Message 6 of 11
(1,811 Views)
0 Kudos
Message 7 of 11
(1,800 Views)

another tool you can use is the distributed system manager, which can be used to view deployed variables on either local or remote system.

0 Kudos
Message 8 of 11
(1,794 Views)

I tried the Software Platform Bundle, it is not the media LabVIEW is requesting, see below.

Is it possible that Fall 2018 is not the version LabVIEW wants?

 

20241008_PlatformBundle.JPG

0 Kudos
Message 9 of 11
(1,763 Views)

Shared variable is installed with the LabVIEW runtime engine.  the only other thing you might need might be the Datalogging and Supervisory Control module.

0 Kudos
Message 10 of 11
(1,755 Views)