Zapit-Optostim / zapit

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

Fixed duration stimuli with a large number of stimulus points leads to an error #150

Open raacampbell opened 8 months ago

raacampbell commented 8 months ago

Load the power_check_multipoint.yml and then:


>> hZP.sendSamples('cond',2,'stimDurationSeconds',0.8)
Arrays have incompatible sizes for this operation.

Error in zapit.stimConfig/get.chanSamples (line 255)
                waveforms(:,3:4,ii) = waveforms(:,3:4,ii) .* blankingMask;

Error in zapit.pointer/sendSamples (line 190)
    waveforms = obj.stimConfig.chanSamples(:,:,conditionNumber);

Related documentation

>> hZP.sendSamples('cond',1,'stimDurationSeconds',0.8)
Arrays have incompatible sizes for this operation.

Error in zapit.stimConfig/get.chanSamples (line 255)
                waveforms(:,3:4,ii) = waveforms(:,3:4,ii) .* blankingMask;

Error in zapit.pointer/sendSamples (line 190)
    waveforms = obj.stimConfig.chanSamples(:,:,conditionNumber);

Related documentation
raacampbell commented 4 months ago

Tried to reproduce this issue using a real camera but simulated DAQ and it does not happen.