Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ1409: question on pulse generation.

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!
0 Kudos
Message 1 of 2
(2,922 Views)
Hope you have the latest driver, http://digital.ni.com/softlib.nsf/ webcategories/ 9AD71162B755F0E786256BBC005F001A?OpenDoc ument&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 2 of 2
(2,922 Views)