hi all,
i am triying to pruduce 3 pulses useing the counter ports, i need the 3 pulsess to have a varable dealy from the first to second and from the first to third pulsees (delay in micro seconds).
i am using the ni daq 6343 and coding in matlab.
i thought to use the InitialDelay property but they dont start together.
please help me!!
this is my code:
pulsWidth=0.000001;
s= daq.createSession('ni');
ch=s.addCounterOutputChannel('dev1','ctr0','PulseGeneration');
ch.IdleState = 'Low';
ch.DutyCycle=pulsWidth;
ch.InitialDelay=0;
ch1=s.addCounterOutputChannel('dev1','ctr1','PulseGeneration');
ch1.IdleState = 'Low';
ch1.DutyCycle=pulsWidth;
ch1.InitialDelay=1E-6;
ch2=s.addCounterOutputChannel('dev1','ctr2','PulseGeneration');
ch2.IdleState = 'Low';
ch2.DutyCycle=pulsWidth;
ch2.InitialDelay=10E-6;
s.startForeground;