08-09-2010 05:41 PM
Hi guys,
I am actually a new labview user. I have successfullly been able to save pictures. But unfortunately I got two problems. The first one is that I need to use two cameras at the same time. The program I have so far is for one camera. The second problem is that I need to get the exact time for each picture saved in the profile.
I would appreciate if someone can help me with that. Anyway plz find attached the subvi.
Regards,
Abbas
08-10-2010 02:19 AM
1. Have a look at the following article:
Using Multiple Cameras with NI-IMAQ
2. Have you had a look at the Timing palette? You can get the current date and time from there.
08-10-2010 04:17 PM
Hi Abbas,
First, I notice that you are using IMAQ for USB. Is there any particular reason you are not using IMAQdx? This is the newer, supported driver for use with USB cameras that supports acquiring from multiple cameras at the same time.
Check these two articles:
Can I Acquire from Multiple USB Cameras Simultaneously Using IMAQdx?
Can I Acquire from Two USB Cameras Simultaneously with NI-IMAQ for USB Cameras 1.0?
And also this example (if you camera does not support acquiring from multiple cameras at the same time):
Toggle Between Multiple USB Cameras
As for timestamps, some cameras output them with the frame timing. However, usually this is not a feature of USB cameras; if it is not, you can look into timing options within LabVIEW. Try playing with the property node for IMAQdx and the Acquisition Attributes.
Cheers,
08-12-2010 05:42 PM
Hi Marti and Adnan,
Thank u so much for ur reply. I tried to make some code to get the exact time on an excel file for each picture I have saved. I got the current labview time correct, but the time in excel format is a way different from the current time.
Any suggestions on how to fix up this problem, and how do I need to connect the wires and which specific palletes I should use in order to save the time of each picture in an excel sheet. Hope if u can get back at me with a subvi for this. plz find the attachement of my code.
Thank u guys,
Abbas
08-13-2010 03:39 PM - edited 08-13-2010 03:39 PM
As Marti mentioned, timestamp data is not usually available with USB cameras. Firewire cameras usually do. There is an example that shows how to extract this data, but again it most likely will not work with your camera.
http://decibel.ni.com/content/docs/DOC-4531