LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting 1D array streaming pixel data to an XY image 2D array file?

I need to be able to retain about 255 data acquired points from a streaming 1D array of data so that each time a set of these points comes in I could save them sequencially from top to bottom in a 2D array. I have a problem trying to index a whole array row so that I could stack them such that the old 1D array remains on the top the stack while new and recent ones get written on the bottom next to it.Attached is my code to attempt this operation.

The 1D data comes from as a result of performing an XY-scan on a surface where each coordinate is a pixel value and these 0 to 255 points makes up one scanned line when assembled to 255 x 255 rows and columns can comprise an image file.

How ca
n this be done?
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 1 of 5
(4,789 Views)
I do not know what version of LabVIEW you are using so I will attempt to describe the fix.

You code appears to work--it is just the arrays are being filled from left to right and scrolling left. You want them to fill from top to bottom and then scroll up.

The fix is to change the input value of the replace array subset funtion. (It is on the right of your VI, right before the 2d indicator). Right now you are indexing by row. You need to change it to index by column.
0 Kudos
Message 2 of 5
(4,789 Views)
Hello Jeremy:

I'm using 6.0.2 still. Your reccommendation I followed but I get this "skewing" of my image and could not plot straight. Merely changing the input to a column from a row index merely swept the image from left to right. Please check this new code out and see for yourself the effect. Thank you for your attention. I would appreciate it if you can help me debug this.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 3 of 5
(4,789 Views)
Hi Doctor,
I modified your example (simulation)to do what I think you need.
Did I get it right?
Alberto
Message 4 of 5
(4,789 Views)
Great Alberto! I think you did it again.I need to autorefresh on the routine though that is after the last row it will scan everything back from where it has began. I have attached my code with your modification on it to include a small IMAQ routine that converts array to image file.
Bernardino Jerez Buenaobra
Senior Test and Systems Development Engineer
Test and Systems Development Group
Integrated Microelectronics Inc.- Philippines
Telephone:+632772-4941-43
Fax/Data: +632772-4944
URL: http://www.imiphil.com/our_location.html
email: Bernardino.Buenaobra@ph.global-imi.com
0 Kudos
Message 5 of 5
(4,789 Views)