Hello, I'm using a NI card and the DAQ Toolbox in a behavioral experiment. For this, I need the millisecond precision (or better). I checked the time it takes MATLAB to process the following command: putvalue(dio.Line(1),1); % output to digital line
And got 1.6 ms. Interestingly, when I check the processing time for this command: putvalue(dio.Line(1:2),[1 1]);
it was 3.2 ms. The bits are not sent serially to the card (the two bits change in exactly the same time), showing this is indeed processing time somewhere before the output of the card. Changing more bits takes more time in a linear fashion.
Is there any way to cancel this linear delay? There must be a way for MATLAB to process the changes in these bits parallelly...