05-07-2010 07:59 AM
05-07-2010 11:57 AM
I am saving B&W only.
I get all the frames because I save the buffer number with the images.
I've about given up here, wasted a lot of time on this already, I'll try and open a ticket with NI and see if they can help but that's about it for me.
Thanks for the help.
Wonder what happened to Stephen, I completely took over his thread 🙂
05-07-2010 12:03 PM
Not sure about the OP, I was hoping he would pop back in. I've been trying to gather as much information as I can for when I get to turn my camera project back on and try to improve it. Doesn't seem like many people are doing medium to high rate acquisition with NI stuff so whatever tidbits I can get are helpful.
Good luck.
05-07-2010 12:29 PM
As for my project, we've changed the configuration to a camera with a manageable array size, and the application can now record all the data to AVI without requiring compression.
I wouldn't totally disregard writing to AVI and going right to a binary format for your data collection. I would suggest checking out the AVI Compressor Comparison example and run it on your system. There might be an average write time which is more optimized for your computer. As a previous poster had mentioned, you're shifting the load to the processor, but there could be one compression filter which gives you enough marginal gain that you'd be able to record all the data you're receiving. The advantage to writing straight to AVI instead of writing to binary is that you don't need to reconvert it using some binary to AVI utility. Bear in mind that writing to AVI can be slow at the start, so regardless of it being a highspeed data transfer application or not, your Q will allow you to record all the data without dropping frames.
Best of luck,
Stephen McClanahan
05-10-2010 06:53 AM
Now that some of what I've learned and forgotten has come back to me I realize my previous statements may have been too blanketed. I see now that in some circumstances you would want to compress. In our case we were able to attach a hard drive with a write speed of 320 MB/s, and had the option of upgrading to 600+ MB/s, but would not have been able to reach this speed. We were limited by the GigE cameras, and then the limit of the PCIEx1 card which is close behind. The initial project was supposed to be processing 1000 images a second, but we neveer got there.
So I guess you really have to look at where your bottleneck is before you can decide the best method of saving. The example you linked to leaves out one piece of information, which is time to compress per image, but that should be easy to benchmark.
Glad you got yours figured out Stephen, and hopefully if Cosworth learns anything to help him he will come back and share.
05-12-2010 11:52 AM
I need to record B&W video of image size 640x480 at 300fps. I'm running LV 2009 with the IMAQdx driver(s) to run my GigE camera. Is there a single VI that will record the images at the camera's full frame rate and save to AVI?
It seems like maybe I'm needing a combination of File I/O and image grabbing VI's, but I'm not sure how to put them together. Surely someone's done this before?
So far, I've gotten LV to recognize the camera. I used Low_Level_Grab.vi to confirm that I can capture images at ~300fps. The problem is video capture.
05-13-2010 11:00 AM - edited 05-13-2010 11:01 AM
Hi banana jacks,
Within the Example Finder you should be able to find an example called Grab and Save to AVI.vi. This is found in Hardware Input and Output»IMAQ»File Input and Output»Grab and Save to AVI.vi. Although this example uses the IMAQ VIs, just replace them with the IMAQdx equivalent VIs and it should work with your GigE camera.
05-24-2010 04:07 PM
08-18-2010 01:50 PM