05-11-2009 07:55 PM
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
05-11-2009 08:07 PM
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.
05-12-2009 10:42 AM
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
05-12-2009 11:01 AM
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.
05-15-2009 01:14 AM
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
05-18-2009 09:05 AM
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?
05-18-2009 11:13 AM
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 |
05-19-2009 11:01 AM
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.