LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

general - concatenate

 

Dear Labview gurus,

 

I wish to concatenate N 1 Dimensional arrays of the same size to form a 2D array which I then wish to display as an intensity chart. I’m trying to do this by initialising an array using the two sizes I need and then by replacing the contents with the Replace function. Thing is, because the of the location of the initialize function, I end up with an array of zeros with just the last column replaced. Can someone help me out?

 

Thank you.

0 Kudos
Message 1 of 7
(3,112 Views)
Why would you initialize a new array at each iteration of the loop???
 
First of all, make sure you know the difference between an intensity chart and an intensity graph. A chart builds the array as you go internally and keeps a history, so all you need is insert a built array as in the image.
 
If you want to build a 2D array of fixed size, index the 1D array at the right enge of the outer FOR loop.
 
Both methods are shown in the image.

Message Edited by altenbach on 03-26-2007 12:44 PM

0 Kudos
Message 2 of 7
(3,093 Views)

 

 

Thank you,

I'll try those two methods tomorrow.

0 Kudos
Message 3 of 7
(3,069 Views)

 

Thank you Altenbach,

That seems to work. ......Except it would be nice to have the 2D array formed from the 1D arrays (coming from the inner For Loop) at the end of each step in the outer For Loop. What I actually get is the last 1D array coming from the Build Array function or the built array (which is what I want) right at the end of the Loop cycles. I know it's about putting things in the right places but I'm stuck.

Is there a way to give me the 2D array updated in real time, as it is built?

Another little thing is that when I reopen my vi's the Front Face/Panel is often reformatted and badly at that - can I stop this?

Raff

0 Kudos
Message 4 of 7
(3,044 Views)


@raff wrote:
Is there a way to give me the 2D array updated in real time, as it is built?

Just build the 2D array in a shift register.



 


@raff wrote:
Another little thing is that when I reopen my vi's the Front Face/Panel is often reformatted and badly at that - can I stop this?
Sorry, I don't understand what you mean. Can you show a screenshot before and after bad formatting?

Message Edited by altenbach on 03-27-2007 08:43 AM

0 Kudos
Message 5 of 7
(3,027 Views)

 

Thank you,

That's exactly what I needed to know how to do. I'll get there in the end though I'm a little slow - brain fever, you see!

I've attached the result of reopening the Front Panel of this VI to show you what I mean by "reformatting badly". Some terminals become overlapped...

0 Kudos
Message 6 of 7
(3,015 Views)
Right-click on the control  "Select Aquisition or Adjustment" and uncheck "scale object with pane". See if this helps! 🙂
0 Kudos
Message 7 of 7
(3,002 Views)