Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ1409: question on imgPulseCreate function.

In VC++, I used the following functions to generate some pulse.
errChk(imgSessionTriggerDrive(Sid,IMG_EXT_TRIG0,IMG_TRIG_POLAR_ACTIVEH,IMG_TRIG_DRIVE_UNASSERTED));
imgPulseRate(1000,500,&delay,&width,&timebases);
errChk(imgPulseCreat(timebases,delay,width,IMG_IMMEDIATE,IMG_TRIG_POLAR_ACTIVEH,IMG_EXT_TRIG0,IMG_PULSE_POLAR_ACTIVEH,PULSE_MODE_TRAIN,plsID));

But it always give me the error message:
invalide parameter #1.

What is wrong with the first parameter??

Thanks.
0 Kudos
Message 1 of 5
(8,464 Views)
I also want to know,
1.whether the imgPulseCreate function generate a TTL signal or not, why I can not display it in the 0-5v range by oscilloscope?
2.PULSE_MODE_TRAIN, why it can not display continuous pulse?
0 Kudos
Message 2 of 5
(8,464 Views)
Why I cann't generate continuous pulse by IMAQ1409?
Why the amplitude(value) of the pulse isn't correct?
Pls answer this question!
0 Kudos
Message 3 of 5
(8,464 Views)
imgPulseRate(1/1000,1/1000,&delay,&width,&timebases);

I sovle the error message:
invalide parameter #1.

But still with the other two problems.
0 Kudos
Message 4 of 5
(8,464 Views)
Hello TNI,

This question is probably better posted in the Vision section of the discussion forum. The MH DDK section is meant for questions related to register level programming of data acquisition hardware.

Christian
NI Systems Engineer
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 5 of 5
(8,464 Views)