HelioScan / HelioScan

Microscopy software framework
www.helioscan.org
22 stars 16 forks source link

StimulatorDL090503: extend controllability of waveform generation #171

Closed dominiklanger closed 12 years ago

dominiklanger commented 12 years ago

functionality requested by @KFunke-Bochum :

KFunke-Bochum commented 12 years ago

One correction of the proposed changes: boolean flag should control whether the voltage value at end of stimulation (and prolog before stimulation at the very beginning) should stay at the high or low value. If I want to use rectangular shape for TTL triggering, the value should stay at either 0 or +5V. If I chose offset by flag, the value would be +2,5 which is not well defined for TTL. Thus, it is sufficient to have amplitude toggling symmetrically around offset and to choose high or low base value for start and end of stimulation. Negative value for amplitude would not be needed.

dominiklanger commented 12 years ago

Implemented and tested (works properly on H37R): 4 different types of waveforms are now available: i) "sine wave": sine oscillating around offset (peak-to-peak voltage = 2 x amplitude); ii) "square wave (+/-)": square wave similar to sinus, i.e. oscillating around offset with peak-to-peak voltage = 2 x amplitude; iii) "square wave (+)": square wave riding on top of offset (peak-to-peak = 1 x amplitude); iv) "square wave (-):" square wave hanging below offset (peak-to-peak = 1 x amplitude).