Error -1950679020 With LabVIEW Shared Variables

Updated Feb 1, 2023

Reported In

Hardware

  • cRIO-9053

Issue Details

On my host PC, I am reading an I/O Variable that is network published from a cRIO but I am getting error -1950679020
 
Unable to access the shared variable. This error can occur if you attempt to read from a write-only variable or write to a read-only variable, or if you do not have permission to access the variable.

What I can do to fix this error?

Solution

This error can be caused if you are working with DIO modules and the I/O direction is not correctly defined to match the operation you are doing with the shared variable (read or write). You can check this by going to the Module Properties:

kb.png

After setting the correct direction and clicking Ok, remember to do a deploy on the target.