LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save, combine and retrieve the images on hard drive using IMAQ in labview

Hi,

 

I am using NI-1426 frame grabber to capture images of 800x1 resolution with 270 bands. Actually, I want to capture images from camera and saving into the hard drive continuously so that my buffer does not run out of memory.  After capturing say 100 images of same resolution (800x1), I want to combine all images into ENVI format and then again save on hard-drive. Please guide me how can I do that?

 

Thanks

Sidd 

0 Kudos
Message 1 of 8
(3,317 Views)

I did a search for ENVI on the forums and was able to find this:

http://forums.ni.com/ni/board/message?board.id=200&message.id=22033&query.id=229584#M22033

 

There is more information available if you search; I would encourage you to do so.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 8
(3,314 Views)

Thanks Adnan Zafar, actually I have also found out the same information as you told me. However, the major difference is that I want to use get the one image and store it on hard drive and then retrieve it back for further operations. But this guy Sandeep in the previous thread used the IMAQ buffer to store all the images first, and then combining the images and storing it to a hard-drive. By doing this way, I can use the system buffer instead of IMAQ PCI buffer, thus helpful in combining more images. I hope that I am able to make you understand better this time.

 

Regards,

Sidd 

0 Kudos
Message 3 of 8
(3,284 Views)

There isn't any native support of the ENVI format in LabVIEW. You may need to write a subVI to open up the binary directly and convert it to an array, and then go Array-to-Image.

 

I also found this document in a quick google search.

Jeff | LabVIEW Software Engineer
Message 4 of 8
(3,282 Views)

Thanks Jeff.

 

I got your point and I am getting the data and writing it into a binary file. Whenever I get a new data, its get appended automatically. I have a little doubt. Suppose, in the first loop I get the image (image1) and I wrote into a binary file in the same loop. Now in the second loop I got another image and I fattened this new image (say image2) and appended it to the previous image. I am not putting the image into trash after saving into a binary file. Moreover, I am not taking any image out of the loop. I want to ask you is the image1 still in the buffer after I get image2 and so on? I mean will it still consume PCI buffer? What happens if it gets overloaded ?

 

Please tell me if there is any way to read particular pin data in labview also for NI-1426.

Thanks 

Regards, 

Sidd 

0 Kudos
Message 5 of 8
(3,256 Views)

Hi Sidd,

 

I'm not sure exactly what you're referring to, as far as the binary situation. If you're reading from a binary file, it's on your hard drive. You would read a portion and place it into an image buffer. The image buffer has nothing to do with the frame grabber.

 

What pins would you like access to? I would check the manual for specifics about the pinouts. Do you mean the cameralink pins or the trigger lines?

Jeff | LabVIEW Software Engineer
0 Kudos
Message 6 of 8
(3,222 Views)

Hi Jeff,

 

Let me explain it in little detail.

I am using PCI NI-1426 frame grabber to capture the images at particular frame rate. Ni-1426 has 2 ports i.e. 26 pin camera and 15 pin triggering port. I am sending the pulse per second (pps) signal from gps to the triggering port. I want to check for the pps signal through the frame grabber 15 pin port. Please tell me how can I listen to a trigger through a frame grabber in labview? As I have connected pps signal on pin1 in 15 pin port, I want to read that pin. or how can I read a particular  pin data in labview? I have already checked that I am getting pps signal through oscilloscope.

 

Thanks

Regards,

Sidd 

 

0 Kudos
Message 7 of 8
(3,217 Views)

Check out the examples in the LabVIEW Example Finder such as HL Triggered Snap, etc.

 

Also, you probably want IMAQ Read Trigger or IMAQ Read Trigger 2 depending on the version of the driver you're using. You can find these in the Vision and Motion Palette»NI-IMAQ»Signal I/O.

Jeff | LabVIEW Software Engineer
Message 8 of 8
(3,196 Views)