Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68979

Set a Shared Variable Programmatically

$
0
0

I want to set Shared Variables located on my computer (BKARKAR) from a PXI controller. However, when I use the VI shown below, I encounter the error code -1950679035.

bkarkar_0-1733310301664.png

 

I’ve tried both using the IP address and the device name, but the result doesn’t change. Interestingly, when I add the shared variable to the PXI controller as shown, I can observe the changes in the NI Distributed System Manager.

bkarkar_1-1733310334255.png

This issue seems to be specific to my computer (BKARKAR). When I try the same process for another device (BKEREY), I can programmatically modify the shared variables on the PXI controller using the same VI.

 

When I open the NI Distributed System Manager from BKARKAR, I can see the shared variables on both BKARKAR and BKEREY.

bkarkar_3-1733310476006.png

 

However, when I open the NI Distributed System Manager from BKEREY, I noticed that the shared variables on BKARKAR are not visible.

bkarkar_4-1733310518802.png

 

This is likely why the PXI controller is unable to modify the shared variables.

 

On BKARKAR, I checked the services and confirmed that NI Variable Engine, NI PSP Service Locator, and NI Configuration Manager are running. I also tried resetting these services, but it didn’t resolve the issue.


Viewing all articles
Browse latest Browse all 68979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>