Solution
Error 5001 indicates that the digital input pin being read from does not exist on the board type specified.
For example,
Error 5001 will be generated when performing a digital read operation on digital pin 14 when the board type is set to Uno. This is because the Uno only has digital pins 0 to 13.
Make sure you have supplied the correct board type to the
Init.vi, and that the pin you are trying to read from exists on that board. It is also important to note that digital pins 0 and 1 are reserved for serial communication with LabVIEW (even when using a USB cable). The default board type is the Arduino Uno. You can use the attached basic PWM example to determine if the pin you are trying to access is within the range of your device:
If you are still experiencing the error, make sure you are using the latest version of LabVIEW Interface for Arduino (LIFA).