LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set a Shared Variable Programmatically

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.

0 Kudos
Message 1 of 5
(218 Views)

Error -1950679035 occurred at an unidentified location

Possible reason(s):

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.

 

Try adding an Open Variable Connection VI before the while loop.

ZYOng_0-1733444601683.png

 

 

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 5
(198 Views)

Adding the Open Variable Connection VI does not help either. When I right-click on any shared variable within the VI and select "Replace with Programmatic Access," only the Write Variable VI added. As I mentioned before, I can run this VI on another computer, so there is no issue with the VI I created. The problem occurs only when I try to execute it on my computer.

0 Kudos
Message 3 of 5
(166 Views)

@bkarkar wrote:

Adding the Open Variable Connection VI does not help either. When I right-click on any shared variable within the VI and select "Replace with Programmatic Access," only the Write Variable VI added. As I mentioned before, I can run this VI on another computer, so there is no issue with the VI I created. The problem occurs only when I try to execute it on my computer.


As long as you unable to see shared vars in NI DSN - you have no chance. Just stupid question — may be firewall is active on your computer and blocks the connection on port 2343 (TCP/UDP), which is required for SV?

0 Kudos
Message 4 of 5
(159 Views)

When I checked the TCPView application, this port was used by lkads.exe, which corresponds to the NI PSP Service Locator. I added \Windows\SysWOW64\lkads.exe to the "Allow apps to communicate through Windows Defender Firewall" section and allow permissions for all network profiles (Domain, Private, Public). However, the issue is not resolved. Then I disabled the Windows Defender Firewall for all network settings, but the problem is still not resolved. Do you have any other suggestions about the firewall?

0 Kudos
Message 5 of 5
(147 Views)