LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

interpolate 1d slow on 8 core machine

Solved!
Go to solution
Solution
Accepted by topic author Adrian_Bradu

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

0 Kudos
Message 21 of 25
(1,826 Views)

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.

 

0 Kudos
Message 22 of 25
(1,809 Views)

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.

0 Kudos
Message 23 of 25
(1,771 Views)

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,

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com
0 Kudos
Message 24 of 25
(1,745 Views)

Hi Adrian Bradu

 

I have seen you are working with OCT.

 

Can you please send the OCT VI's (scanning, data processing...0

 

thanks

 

 

0 Kudos
Message 25 of 25
(1,582 Views)