LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

insert column into array (perhaps a silly question?)

Solved!
Go to solution

This may seem like a silly question, but is it possible in Labview to insert a new column into an established array? For example if I have a 2 column array is it possible to insert a new column between those two columns? If not is there another tool like a table or something I should be using, and how do you use it?

 

Thanks

Message Edited by LVStudent on 05-02-2010 10:11 PM
Message 1 of 6
(10,967 Views)
The aptly named Insert Into Array on the aptly named Array palette.
Message 2 of 6
(10,955 Views)
Solution
Accepted by topic author eword

Hi LV,

 

Use the 'Insert Array' Vi as shown:

 

Insert Column.png

 

Rgs,

 

Lucither

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
Message 3 of 6
(10,950 Views)
LoL. Thanks. I was just confused as I read somewhere that using that will just overide the contents of the position, not actually insert an entirely new column. My bad. Thanks for your help.
0 Kudos
Message 4 of 6
(10,938 Views)

Hi Student,

 

so you mixed up "InsertIntoArray" and "ReplaceArraySubset"?! Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(10,912 Views)

LV student,

 

Look at this as a learning opportunity.  ALWAYS keep the Context Help turned on when programming, especially if you have less than thirty years of experience with LV.  In the context help window for both the Insert into Array and Replace Array Subset functions you will find a link at the bottom called Detailed Help.  Clicking that link will open a full page of information about the function currently displayed in the context help window.

 

If you cannot figure it out from the Detailed Help, then write a little program to test things and see what happens.   If you are still confused, post a question along with your test VI.

 

I think you will find that most of the people who are active posters on this Forum do all the above in their own programming.

 

Lynn 

Message 6 of 6
(10,887 Views)