02-17-2009 06:57 AM
Wow!!! Thank you for helping me to sort this out!!! Now, I am very happy with the speed I am achieving !!! First thing which had to be done: re-entrants, not only the interp 1d but absolutely all other sub-vi-s. The last trick suggested by Andrey basically almost doubled the speed .....
Now, to finalise my program I have to save the images I am generating. As I am very fast now (around 20 frames per second), saving the images on the hard drive doesn't sound like a good ideea (I'm using IMAQ Write PNG File, image size 512x512). Is there a way to save the images into the RAM (!??!) memory let's say,and "move" them on the hard drive at the end of the aquisition? I'm using a NI1428 board.
Thanks again
02-17-2009 08:04 AM
How big is your RAM?
How many Images do you need hold in memory?
How much is Image's color depth?
Saving images as BMP could be faster as convert image to PNG and save image as PNG. Please test is.
If you don't have lot of memory (I don't thing so) or you have got to many images, you could use very fast (and very expensive) RAM disks:
ACARD Technology : 5.25 inch SATA x 2-to-DDR2 RAM Disk
Or Gigabyte I-Ram.
02-18-2009 05:29 AM
Adrian Bradu wrote:Wow!!! Thank you for helping me to sort this out!!! Now, I am very happy with the speed I am achieving !!! First thing which had to be done: re-entrants, not only the interp 1d but absolutely all other sub-vi-s. The last trick suggested by Andrey basically almost doubled the speed .....
Now, to finalise my program I have to save the images I am generating. As I am very fast now (around 20 frames per second), saving the images on the hard drive doesn't sound like a good ideea (I'm using IMAQ Write PNG File, image size 512x512). Is there a way to save the images into the RAM (!??!) memory let's say,and "move" them on the hard drive at the end of the aquisition? I'm using a NI1428 board.
Welcome! That was first case where threading "fine tuning" was really useful. Never used these settings before.
If you need to save images more fast that IMAQ Write PNG, then I will suggest to take look into AIPD file format. This is uncompressed format, where you can save every type (even complex), and this really faster than PNG. You will not found this function on the palette. IMAQ WriteFile located here: C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\vision\Files1.llb\IMAQ WriteFile. Just connect AIPD string to the File Type Input. Otherwise you can create array of the images, then drop this array to the disk after acquisition.
Andrey.
02-19-2009 10:08 AM
Hi Adrian,
Wondered if you have tried the APID write function and whether this has proved quick enough for you or if you need another solution?
Regards,
11-02-2009 11:43 AM
Hi Adrian Bradu
I have seen you are working with OCT.
Can you please send the OCT VI's (scanning, data processing...0
thanks