Hi,
I would like to make the following waveform: From 0 to 4 V in 15 ms, then hold for 10 ms, and decrease back to zero volts again in 15 ms then hold at zero for 10 ms and repeat.
Now I tried the following Matlab script:
MyPulse = [0:0.0333:5 ones(1,100)*5 5:-0.0333:0 zeros(1,100)];%15 ms(150 ticks), 10 ms (100 ticks), 15 ms(150 ticks),10 ms (100 ticks) =50 ms total; sampling rate of 10 kHz
ProgramPulsePalParam(1, 12 , 1);
SendCustomWaveform(1,0.0001,MyPulse);%10 kHz
TriggerPulsePal('1')
What the oscillocsope returns is many ramp pulses (2 ms in total width), repeated every 8.9 ms and covering a total of 1000 ms. What I was expecting was a single ramp of 50 ms. By using SetContinuousPlay() I wanted to repeat this waveform, which I have not tried yet. What am I doing wrong?
Dymphie