LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquisition from digital camera

I have connected my digital camera with the LabView software, and I can snap pictures. But how can I make an acquisition of images (specifying the nr. of pictures, the time between images and the name under wich the image is saved (e.g. automatic numbering). This is a rather straightforward procedure available in many acquisition softwares, so I hope there already exists a LabView program which can do this.
 
Thank you for your help.
0 Kudos
Message 1 of 10
(3,593 Views)
Hi jimmy-b,
how can you snap pictures from your camera? Do you use the vision toolkit? Do you use a single vi? If yes, use a loop, insert your vi and a wait function. Connect an array with your wait values to the wait function.
 
Hope it helps.
Mike
Message 2 of 10
(3,588 Views)
It's a straightforward procedure with many acquisition software programs because somebody wrote it that way. This means you have to do the same thing. Smiley Wink

As indicated you can just use a loop that's driven by the number of pictures you want to take. It doesn't sound like you want a different wait time depending on which picture you want to take, so you wouldn't use an array of wait values, but rather a single value. You also need to define some sort of format for the filename. Use the Format Into String function to create your filename based on whatever rule you want.

Crude example:
Message 3 of 10
(3,580 Views)

Hi Mike,

I indeed use the vision toolkit. Operating from this I can grab pictures and changes parameters. However, I have totally no experience with programming in LabView. If I'm not mistaking a VI is a self-made program written in LabView. I just wondered if someone could help me with the programming or could send me a working program.

Anayway, tx for the help

0 Kudos
Message 4 of 10
(3,541 Views)

Hi Jimmy,

If you have the vision assistant installed you should be able to perform all the operations you require in that without any need for labVIEW coding.  You can then export it as a LabVIEW VI or C code.

You should find it in programs>>national instruments>>vision assistant.

If you cannot find it let me know what software and hardware you already have and I can find out if you should have recieved it.  It should come with any NI Vision hardware that you may have and certain vision toolkits.

Regards,

James Mc
========
Ask me about Rust & NI Hardware
My writings are at https://www.wiresmithtech.com/devs/
Message 5 of 10
(3,526 Views)

Dear James,

I have the vision assistant 8.5 installed. At first sight, this indeed allows me to make acquisitions, although I have not figgered out how I can change the intervaltime. I will first get familiar with the program by reading the manual.

How can I export it as a LabView VI, or what's the idea behind exporting it?

Thank you very much for the information.

 

0 Kudos
Message 6 of 10
(3,504 Views)

@jimmy-b wrote:
 

Hi Mike,

However, I have totally no experience with programming in LabView. If I'm not mistaking a VI is a self-made program written in LabView. I just wondered if someone could help me with the programming or could send me a working program.


You really need to spend some time going through the tutorials and reading the LabVIEW Help. Somebody sending you a working program will do you no good since you are bound to need to make changes, and you won't know what to do!

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
Message 7 of 10
(3,488 Views)

Hi Again Jimmy,

I have been having a bit of a play and realised that you can only process images in the stand alone Vision Assistant.  You can acquire images manually to process but cannot use it to generate code to acquire as well.  Thankfully this is also straight forward using an vision acquisition express VI.  Express VIs mean that you configure them in a pop up box without the need for much coding.

For your particular problem in terms of setting a delay you will need to start by using the express VI to perform a finite acquistion with inline processing.  This will place the VI inside of a for loop that will allow it to snap images over and over and will also automatically put the items you need on your front panel.  You can control how often this while loop iterates using timing and this will control how often it will request an image from the camera.  You can do this by dropping a time delay express VI or a wait VI any where in the loop.  If you use the time delay express VI then it will give you a pop up to enter the time delay.  If you use the wait VI then you will have to use a numeric constant or control and wire it to the input of the VI.  This constant should contain the time delay in milliseconds that you require.

In terms of saving the files the example code already posted is good but you will be saving images so if you go to your vision pallete and go to vision utilities>>files there is a VI to save to the usual image file formats.  Im not sure if you've found context help yet but if not pressing ctrl+h will bring up a window that means if you hover over the VIs it will show you what needs wiring where.

I hope this helps and apologies for the previous misunderstand.  Best of luck!

James Mc
========
Ask me about Rust & NI Hardware
My writings are at https://www.wiresmithtech.com/devs/
Message 8 of 10
(3,475 Views)

Hi everyone,

 

I would like to use my Powershot A650 IS digital camera  to take photos automatically. However I have no idea how I can communicate with it using Labview 8.5 (or 8.6) with XP. I would know the how to do the looping and so on, but not how to communicate with the camera.

 

Even just a little help would be great,

 

Best regards,

 

Marc

0 Kudos
Message 9 of 10
(3,364 Views)

Marc

 

If you're camera has Directshow support you can communicate with it using the NI-IMAQ for USB cameras.

 

Best Regards

Michiel
Applications Engineer
NI Belgium
0 Kudos
Message 10 of 10
(3,308 Views)