Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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

Advanced Search

Back to Topic List Back to Topic List  
Eitan Schechtman

Posts: 1
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

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

Thanks a lot,
Eitan



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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.