JaneliaSciComp / Wavesurfer

A Matlab application for electrophysiology data analysis
https://wavesurfer.janelia.org/
21 stars 11 forks source link

Error dialog at trial end with digital inputs #93

Closed adamltaylor closed 9 years ago

adamltaylor commented 9 years ago

Seemingly at random, sometimes WS will throw up an error dialog at the end of a trial, which says:

DAQmx Error (-200278) encountered in readDigitalData: Attempted to read a sample beyond the final sample acquired. The acquisition has stopped, therefore the sample specified by the combination of position and offset will never be available.

Specify a position and offset which selects a sample up to, but not beyond, the final sample acquired. The final sample acquired can be determined by querying the total samples acquired after an acquisition has stopped.

adamltaylor commented 9 years ago

May be easier to elicit with a simulated DAQ board.

adamltaylor commented 9 years ago

Fixed in commit 71e5e6b68cebf40e37d52457cf0598fa1d0d27f3 .