I am measuring the time it takes to write to the parallel port with the Data Acquisition Toolbox using the following code:
ticdio = digitalio('parallel','LPT1');dout = addline(dio,0:3,2,'out');for i = 1:500 putvalue(dout, [0 0 0 0]);endtt = toc
When I execute this code in a loop for ten iterations, I see that the performance is slower in version 2.6 (R14SP2) of the toolbox. The average speed is 1 second in version 2.6 (R14SP2) and 0.1 seconds in version 2.5.1 (R14SP1).
Best Answer