Our team has been experiencing this read and write error on and off, with the same code. We used to have issues with setting the angle of the Servo due to this error and we are currently having issues with the relay.
-we set up the code in our project by opening and creating a refnum in begin , then calling set on the relay refnum in teleOP.
-we tried to use the example vi at set the relay and the same error occurred.
-we probed around and set breakpoints in the example vi and we realized that the error code was generated right after the device was opened.
-last time our refnum issue was fixed randomly, An we don’t know what caused it to change.