I am trying to use the Block Throttle Pipe in MATLAB with the following command:
d = [1 3 5 7 11];
tmp = calllib(‘okFrontPanel’, ‘okUsbFrontPanel_WriteToBlockPipeIn’, xptr, hex2dec(‘80’), 1024, d, 16);
I get the following error:
??? Error using ==> calllib
Parameter must be scalar.
I assume it is referring to the vector d that needs to be a scalar. However, in the help section for using WriteToBlockPipeIn, it states that epValue is a vector.
Any suggestions on how to fix this or what I may be doing wrong?