Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture a video through PCI-1422?

I have this Pulnix TM-1300 camera linked through PCI-1422 card. I use the MAX as interface to see the live image. Now I need to capture a video for the live image for the presentation purpose. Is there a simple way to do this? I do NOT need to process the video. Thanks!
0 Kudos
Message 1 of 4
(3,460 Views)
Hello,

When you say that you want to capture video, do you want to save a single image or do you want to save a series of images as an AVI? If you want to save a single image, you can click on the "Save Image" button at the top of the MAX interface for the camera. If you want to save an AVI file, then you would need to write a program that will acquire frames and then write those frames into an AVI file. What programming environments do you have available to you? If you have LabVIEW, Visual Basic, Visual C++, or LabWindows/CVI, then the IMAQ driver should have installed several shipping examples that demonstrated how to build an AVI file.

Take a look at the following document for additional information about those examples.

AVI Examples
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=C0033754BF1F1D3BE034080020E74861&p_node=DZ52506&p_source=External

If you have any additional questions, please let me know.

Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,447 Views)
Scott,

Thanks for the reply. I try to save an AVI file. I use LabView. As a matter of fact, I tried the AVI example code, "Grab_and_Save_to_AVI" one. The problem is, this example code seems take over the PC resource a lot, which causes a huge delay on another LV machine control program, which has to run simultaneously to drive the motor. 😞 Is there a way to get around this?
0 Kudos
Message 3 of 4
(3,443 Views)
Hello,

When you used the shipping example, did you modify it or did you run it as-is? What acquisition rate is your camera running at? Is this value the same as the frame rate that you specify for the AVI? You could also try inserting a Wait function into the loop to free up the processor for the specified number of milliseconds per iteration of the loop.

Try that and let me know if the problem persists. Even using a wait value of 0ms will free up system resources.

Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,437 Views)