In VC++, I used the following functions to generate some pulse.
errChk(imgSessionTriggerDrive(Sid,IMG_EXT_TRIG0,IM G_TRIG_POLAR_ACTIVEH,IMG_TRIG_DRIVE_UNASSERTED));
imgPulseRate(1000,500,&delay,&width,&timebases);
errChk(imgPulseCreat(timebases,delay,width,IMG_IMM EDIATE,IMG_TRIG_POLAR_ACTIVEH,IMG_EXT_TRIG0,IMG_P ULSE_POLAR_ACTIVEH,PULSE_MODE_TRAIN,&plsID));
But it always give me the error message:
invalide parameter #1.
imgPulseRate(1/1000,1/1000,&delay,&width,&timebases);
I sovle the error message:
invalide parameter #1.
But still has some other questions:
1.whether the imgPulseCreate function generate a TTL signal or not, why I can not display it in the 0-5v range by oscilloscope? Why the
amplitude(value) of the pulse isn't correct, about 0.2v?
2.PULSE_MODE_TRAIN. why it can not display continuous pulse by using PULSE_MODE_TRAIN? Why I cann't generate continuous pulse by IMAQ1409?
Pls answer this question!