LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simultaneous Video and DAQ Start

Pardon my ignorance in the signals world, but I'm having a hard time trying to simultaneously start a video camera and DAQ hardware.  Hopefully someone can provide some insight.

 

I will be using a standard camera that accepts triggering and a cDAQ chassis.  I know that I need to use DAQmx for the DAQ (I have a lot of experience with this), but I've never done triggering before in DAQmx.  How do I perform triggering with DAQmx to send the camera a TTL signal to start taking video?  What hardware will I need to send this signal?  Thanks in advance.

 

 

--------------------------------------------------

Nathan - Certified LabVIEW Developer
0 Kudos
Message 1 of 4
(2,638 Views)

I looked into IMAQdx.  Any idea on how to use this to capture video and data simultaneously?

--------------------------------------------------

Nathan - Certified LabVIEW Developer
0 Kudos
Message 2 of 4
(2,619 Views)

Nathan,

 

What kind of camera bus are you using; USB, FireWire or GigE? Are you able to acquire images with your camera in Measurement & Automation Explorer (MAX)?  Here is a link to a community example that Grabs and Saves to AVI using IMAQdx.  If the camera has digital i/o lines to accept the TTL signal pulse you can run the example I've linked to and configure it for a triggered acquisition in MAX.  The camera's user manual should specify which pins are trigger lines or whether a specific i/o cable are terminal block is necessary.  If the camera supports triggered acquisition you can go into MAX select the camera under Devices and Interfaces the select it's Camera Attributes Tab.  There should be an attibute called "trigger mode" and its default setting is off so you would need to turn it on.  If there are multiple trigger lines, you would need to specify the "trigger source" under its allotted attribute.  Some cameras can only trigger the start of an acquisition while others can also trigger each frame acquisition.  You can specify whichever you'd like under the "Trigger Selector" attribute.

 

Once the camera is configured to trigger I would have it perform its image acqusiition in it's own loop as in the example I linked then have the DAQmx tasks perform the data acquisition in a separate loop.  Then all you would need to do is synchronize your data acquisition to a single pulse generation task and wire the pulse output to your trigger line.  If you wish to control the acquisition of each frame you would need to generate a pulse train to the desired frequency for you application, however you would need to be cautious of the cameras limitations on how many frames per second it can acquire at.

 

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(2,606 Views)

One more thing; In the future when you post about cameras, vision acqusiition or image processing, the discussions are better suited for our Machine Vision discussion board.

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,602 Views)