Machine Vision

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
(3,326 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
(3,326 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
(3,326 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
(3,326 Views)
Hope you have the latest driver, http://digital.ni.com/softlib.nsf/webcategories/9AD71162B755F0E786256BBC005F001A?OpenDocument&node=132060_US
and camera file, ftp://ftp.ni.com/support/imaq/camera_support/camera_files/analog/
Try one of the examples, C:\Program Files\National Instruments\NI-IMAQ\Sample\MSVC\Signal IO
http://search.ni.com/query.html?col=alldocs&layout=Example&qp=ContentType:Example&qt=imaq+pulse
0 Kudos
Message 5 of 5
(3,326 Views)