Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use PCI-1428 Triggers as 1 Input and 3 Output?

Im using IMAQ Vision 8.2 on Labview 8 With the new NO-IMAQ drivers.
My Vision application is to wait to trigger (1 input) than to perform acquisition and image processing on one frame, then output a 3 bit signal (3 outputs) to PLC.
 
I want to wait the trigger in While Loop (is polling the best choice?), then execute the next steps, and then to output the 3 bit.
 
So how i do it in Labview on 1428 board?
 
 
TNX
 
0 Kudos
Message 1 of 2
(3,106 Views)
HaD,

Thank you for using National Instruments discussion forums.  The best way to do this would be to set up a triggered acquisition and set the trigger to trigger each buffer.  Since you need to do processing on the image and then send output I would put the acquring part in a sequence structure inside a while loop.  Then create a new frame where you can do your image processing and another frame after that where you can use three IMAQ Generate Pulse VIs in parallel to drive the other three output trigger lines.  This kind of a setup will be faster since you are not polling the trigger line you are instead waiting until the frame that contains the acquisition step returns with an image so then the next frame can execute.  Keep in mind you will not be able to see any triggers this way until after all the processing is done and you are waiting in the acquisition step again.  A good example to get you started is the LL Triggered Ring.vi that can be found in the example finder in LabVIEW.  Setup your sequence structure in the second while loop.  A ring will allow you to still be acquiring images onto the frame grabber card while you are doing processing in software.  Then when it receives a trigger it will grab the most current image out of the buffer.  Let me know if this is unclear or if you have anymore questions.

Regards,
Mark T
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,094 Views)