SWC-Advanced-Microscopy / SimpleMScanner

Simple MATLAB scanning software for demo purposes
GNU Lesser General Public License v3.0
5 stars 2 forks source link

Can we acquire digital inputs at the same time? #23

Closed raacampbell closed 8 years ago

raacampbell commented 8 years ago

When we try it sets the sample rate to 0 and ceases to acquire.

raacampbell commented 8 years ago

http://www.mathworks.com/matlabcentral/answers/24757-daq-session-based-input-is-it-possible-to-have-different-clocks-for-input-and-output

raacampbell commented 8 years ago

Hmmm... The PCI 6110 has no clock on the digital lines. So that's why adding the lines to the same session leads to a sample rate of zero. The 6115, on the other hand, does have a 10 MHz clock on the digital lines.

So it seems like a bad idea to add too many extra features to SImpleMScanner. Then the software will start to depend too heavily on the properties of the board used for acquisition and everything will become more complicated. I think it's OK to use a digital line open and close the shutter, but nothing more than that is a good idea. We don't want to re-write ScanImage...