05-14-2010 10:58 AM
05-14-2010 01:20 PM
05-17-2010 03:05 PM
It turns out there is an issue with initialization of pulses for Smart Camera/NI-IMAQ devices. The lines are initlailly marked as "Not Used". The first time the inspection is run, the pulse is configured and the line is marked as a pulse line (this is to disguish it from when the line is used with a Read/Write I/O line to drive the line high/low or it hasn't been configured yet). So this only affects Generating Single Pulses based on a condition that is not true the first time. To work around this until we address this, you can put a Generate Pulse step in the Setup State configured for Single Pulse using encoder counts or a really long delay (~4,300 seconds) so no pulse will happen and then the first time the pulse step is called in the main inspection, it won't have to configure the line for pulse mode, so it will just look at the boolean condition to determine if it should pulse.
The reason the pulse was happening when you clicked on the overlay step was that this step was after the pulse step and clicking on the overlay step caused the pulse step to run for the first time. I mentioned that this only happens the first time, even though you were reporting that it was happening all the time. The reason for this discrepancy is that you would run once using the top button, which runs the inspection on the smart camera, and then you would run once using the bottom button and this actually runs the inspection on Windows. When you were switching back and forth between running on windows/smart camera, the line kept getting reinitialized back to Not Used and this was why the pulse kept happening. If you had run in a loop, you'd only see the pulse happen the first iteration of the loop.
Hope this helps,
Brad