From: Phillip Walters on 9 Aug 2010 16:25 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 10 Aug 2010 13:09 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 11 Aug 2010 11:08 "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
|
Pages: 1 Prev: Multiple input files Next: Image segmentation with threshold |