12-04-2024 05:09 AM
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.
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.
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.
However, when I open the NI Distributed System Manager from BKEREY, I noticed that the shared variables on BKARKAR are not visible.
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.
12-05-2024 06:24 PM
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.
12-09-2024 12:06 AM
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.
12-09-2024 01:01 AM
@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?
12-09-2024 04:54 AM
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?