LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to get the exact time of each picture that I saved ( maybe as a excel sheet or word )

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

0 Kudos
Message 1 of 5
(2,980 Views)

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.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 5
(2,967 Views)

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,

Marti C
Applications Engineer
National Instruments
NI Medical
0 Kudos
Message 3 of 5
(2,947 Views)

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

0 Kudos
Message 4 of 5
(2,917 Views)

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

Tejinder Gill
National Instruments
Applications Engineer
Visit ni.com/gettingstarted for step-by-step help in setting up your system.
0 Kudos
Message 5 of 5
(2,894 Views)