Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

I tried making a continuous pulse train on my IMAQ PCI-1424 in C++, but I get 1 ping only. Am I doing something wrong or are there any known problems with the DLL?

Here's my code to start the pulse train:

delaytime = 30000;
widthtime = 4000;
errChk(imgPulseRate(delaytime, widthtime, &delay, &width, &timebase));
errChk(imgPulseCreate(timebase, delay, width, IMG_IMMEDIATE, IMG_TRIG_POLAR_ACTIVEH,
IMG_EXT_TRIG3, IMG_PULSE_POLAR_ACTIVEH, PULSE_MODE_TRAIN, &Pid));
errChk(imgPulseStart(Pid, Sid));

and my code to stop it:

errChk(imgPulseStop(Pid));
errChk(imgPulseDispose(Pid));

Any ideas why I get 1 ping (one pulse) only?
0 Kudos
Message 1 of 3
(3,150 Views)
I had a similar problem with VB. After about 6 weeks, NI make changes to their code that corrected the problem. I picked up the code from their web site. I have bought several systems since, and have not seen the changes appear in their distributed software. Contact them and insist it is a real problem. If you need assistance, contact me.
bkse
Message 2 of 3
(3,150 Views)
Hello Christiansen,

You may wnat to try an example program that I found on the NI website. Ring Acquisition with Pulse Generation. This example allows you to generate a pulse (or pulse train) while acquiring images. You can try this example program and see if it works. If it does, you can see what it does differently.

BB_Phil
0 Kudos
Message 3 of 3
(3,150 Views)