The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Improving timing in the Data Acquisition Toolbox
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Eitan Schechtman

Posts: 2
Registered: 12/25/12
Improving timing in the Data Acquisition Toolbox
Posted: Dec 25, 2012 9:37 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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...

Thanks a lot,

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.