LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lv 8.2 grab image

Hi,
i am beginners in labview version 8.2
i would like to acquires set of images (grab/sequence) of my experiment, with external trigger.
i tried to use with the exist example of grab and save to avi and sequence and save to avi, but i couldn't succeed to get whatever i am looking for.
please if you can to give me orientation, and if there is possibilities to write it to different type of file (instead avi)
thanks
Reut


0 Kudos
Message 1 of 54
(5,622 Views)
A bit more information please?

What are you using to capture the images (hardware and software)? What happens when you run the example?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 54
(5,580 Views)

i am programming in labview so i guess that i use with the software,
when i run the example everything work good. but its not doing exactly what i need for my experiments,
i would like to control on the camera (fps) by external trigger, and then capture images during the experiment, and be able to save the images(to process it later)
so the concept of grab and save to avi  or sequence and save is good for me (i think, unless if you recommend about something else?) but with few changes to my needs, and i would like to get help how can change to my needs? (trigger, and save)
many thanks for help
Reut
p.s. if i wasnt clear enough feel free to ask me again
0 Kudos
Message 3 of 54
(5,575 Views)
Hi reut,

I understand you are using Labview, but I would like to know more specifically what VI's are you using to acquire the images from the camera. Are you by any chance using the Vision module? Please provide me with this information so I can better assist you.
Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 54
(5,568 Views)

i am not sure if i understood your question, i am using with the graphical programming for engineers and scientists Labview  version 8.2

to make sure i attached here example of what i tried to do so far,

in this code i succeed to save only one photo, while i am interesting to save the all images during experiment running (with rate of 4fps)

Thanks for help

 

0 Kudos
Message 5 of 54
(5,565 Views)
the code i wrote in the attached file
0 Kudos
Message 6 of 54
(5,564 Views)
Hi reut,

so you are using IMAQ functions from the vision palette - that's what we wanted to know!

In the same function palette you find "Vision utilities", then navigate to "Files", then use "IMAQ Write File 2" - this allows you to select an image format to save pictures...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 54
(5,544 Views)
Dear Reut,

You are on the right track! Based on what you have posted about your application thus far, I would suggest taking a look at the Grab and Save to AVI example that ships with LabVIEW. With this VI you can save your grabbed images to an AVI file. Some things to note:

1. You will still need to do a triggered grab. The rate at which you grab images from the camera will specify how many fps will be written to the AVI file. This is different from the Frames Per Second input to the IMAQ AVI Create VI. The input to the IMAQ AVI Create VI will specify at how many fps the AVI will play back when you open it, say in Windows Media Player.

For example, say you set up a triggered grab to capture images at 4 fps, and you specify the Frames Per Second input to the IMAQ AVI Create VI to be 16 fps. With these parameters, you will be saving 4 frames to your AVI file every second while your program is running. When you open the AVI after stopping your application, the AVI will play back at 16 fps, even though you acquired at 4 fps. In effect, your video will be played at 4X fast forward speed.

2. Depending on how long you will be running your application, and what you will need to do with the AVI afterwards, you should consider compressing to the AVI file. Here is a good KnowledgeBase that discusses AVI compression in LabVIEW:

Writing a Compressed AVI File with IMAQ Vision
http://digital.ni.com/public.nsf/allkb/0A4D5BF47FD3FF0186256E9A004FD671?OpenDocument

Please post back if you have additional questions or run into problem with the implementation of your application.

Best Regards,

~Nate

Message 8 of 54
(5,531 Views)

thanks guys,

Unfortunately my lab computer did some problems lately, so i changed the machine. anyway i upload Labview version 8 and i wonder where can i find the drivers to change it to version 8.2 (i have license and all necessary serial number)

as soon as i will finish with that, i will try to change my code as you offered

thanks again

Cheers,

Reut

0 Kudos
Message 9 of 54
(5,489 Views)
Hi Reut,

Upgrading from LabVIEW 8.0 to LabVIEW 8.2 will require you to install the LabVIEW 8.2 software package. If you are licensed for LabVIEW 8.2, you should have been sent LabVIEW 8.2 CDs or a DVD. Only the most recent version of LabVIEW (8.5) is available for download from ni.com. If you no longer have access to your copy of LabVIEW 8.2, I would recommend contacting NI support.

 Also make sure you install the vision drivers after installing LabVIEW. The National Instruments Vision Acquisition Software can be found at ni.com here:

NI Home > Support > Drivers & Updates > Machine Vision


The latest version of the Vision Acquisition Software contains the following drivers:
  • NI-IMAQ 4.0
  • NI-IMAQdx 3.1.2 (Includes legacy IEEE 1394 support)
  • NI-IMAQ I/O 2.1
Best Regards,

~Nate
Message 10 of 54
(5,468 Views)