Zapit-Optostim / zapit

General purpose optostimulation system
GNU Lesser General Public License v2.1
6 stars 1 forks source link

Writing at a sample rate of 1E6 fails with minimal examples #64

Closed raacampbell closed 1 year ago

raacampbell commented 1 year ago

The two minimal examples I have made (738fd084b234743489646e9a4e1a545e61f6ee21) both fail randomly when presenting four channels of stimuli at 1E6. It seems that the data can not fit on the DAQ buffer and so have to be transferred from the PC. It has has issues keeping up. At 1E5 there are no problems. This is with both the Vidrio and .NET examples. I have it starting and stopping with a ramp-down >600 times and no failures.

See Issue #62

raacampbell commented 1 year ago

This must be a hardware issue. It doesn't really matter why it works with the full code and not this. I bet it's just that the DAQ can not keep up. Would probably work with PCIe.

raacampbell commented 1 year ago

We can just write at 1E5 and all is good.