LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save images to hd

Hi,
 
I use a Pulnix TM-6740 camera with pci-e-1429 PC having: CPU-P4D-930 P4 DUAL CORE  3GHZ 2Mx2 775PIN  64BIT MB-SPECIAL, Motherboard:  Intel D975XBX+ 1GB 667MHz DDR2 Kingston, S-ATA II 160GB WD 16mb .
the camera I use can reach upto 200 fps in full resolution, since i use the binning mode (2x2) i can reach 500 fps. my questions are:
1. can I save, in real time, frames directly to the HD (NOT .avi movie)
2. (If yes) Is there any example of such .vi avalible?
3.  if I save a video as an .avi file (grab and save avi.vi) and indicate 500fps, how could I extract the video to 500 frames? or is there ani .vi in which I can view the movie frame by frame?
Thanks,
Sagi,
0 Kudos
Message 1 of 4
(3,348 Views)
What is the size of each image? Are you using IMAQ??
0 Kudos
Message 2 of 4
(3,339 Views)

Hi unclebump,

I use 320X240 8bit

Thanks for your attention,

sagi,

0 Kudos
Message 3 of 4
(3,322 Views)
Hello Sagi,

Thank you for contacting National Instruments.  It is possible to save frames directly to disk during acquisition.  However, you might not be able to save them fast enough.  Accessing and creating a new file each time a frame is acquired is rather slow compared to storing all of the frames to a single file (avi.) due to the overhead required to command a hard drive to create a new file.  As a result, you will be limited on the rate through which you can write frames to individual files in a real-time environment.  This maximum rate is determined my many factors such as processor speed, hard drive bandwidth, platter speeds, operating system, code complexity, and memory speeds.  Saving files to the hard drive at 500 files per second might be a bit much.

I can say that if you consider using AVI, you will experience better performance in file I/O mainly because only one file will be opened during the entire acquisition.  Once you finish acquiring the frames, you can index through them in LabVIEW with the IMAQ AVI Read Frame VI.

Is it necessary to save the frames to disk in real-time?  Have you considered the use of a ring acquisition?  A ring acquisition would use the much faster memory on your computer to hold the acquired frames until the hard drive has a chance to write them to disk.  Depending on how long you are planning to acquire images, this might be the best way to accomplish your objective.  Check out the LL Ring shipping example for more information on the use of a ring acquisition.

Regards,

Mike T
National Instruments




0 Kudos
Message 4 of 4
(3,301 Views)