I am using a Measurement Computing DAQ board and I receive an error when I evaluate the following code:
dio=digitalio('mcc',2); % assuming your device is ID 2
addline(dio,0:23,'Out'); % Make all lines output
putvalue(dio,0);
This generates one of the following errors:
??? Error using ==> digitalio.putvalue MCC: Invalid digital port number
or
??? Error using ==> digitalio.putvalue MCC: Invalid BitNum Specified
I receive this error with the PMD-1024LS, PMD-1024HLS, or MiniLab 1008 devices. For the PMD devices, I receive the error whenever I try to PUTVALUE to the third or fourth ports. With the MiniLab 1008 I receive the error whenever I PUTVALUE to the first or second ports.
Best Answer