From: Phillip Walters on
Hello,

I'm currently using the Data Acquisition Toolbox to control and read instrumentation off of some hardware using NI DAQ cards. Some of the inputs that I'm reading are digital. I'm trying to figure out if there's a way to read the digital data in the same way as the analog inputs. That is, I start a test up by setting my outputs in some sequence and, after running through this sequence, I read all of the digital inputs over that time into an array. For analog inputs, this is done with the function getdata().

From what I've read of the Matlab DAQ Toolbox documentation, the digital inputs are completely unbuffered, which would make this possible only through the use of a software timer to check the states of the DIO lines manually. However, I can't help but think that this is wrong. Not only is it inconvenient, but it seems like it would be very difficult to keep the analog and digital data well synchronized with each other.

Any help with this would be greatly appreciated. Thanks!

Phil
From: Sherryl Radbil on
Hi Phil,
This solution may be of interest to you:
http://www.mathworks.com/support/solutions/en/data/1-1BEFC/index.html
Sherryl
From: Phillip Walters on
"Sherryl Radbil" <sherryl.radbil.dontspamme(a)mathworks.com> wrote in message <i3s13k$rbj$1(a)fred.mathworks.com>...
> Hi Phil,
> This solution may be of interest to you:
> http://www.mathworks.com/support/solutions/en/data/1-1BEFC/index.html
> Sherryl

Thanks, Sherryl. I'll give that a try.

Phil