LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is it so difficult to replace one element in an array?

Maybe I am missing something but it seems overly complicated to replace one element in an array.
 
I have a 3 Col 15 row array. Each column represents a board of IO and each row is a specic IO location on the board.
I have 4 arrays each that vary in lenth that represent 4 different IO types (i.e. AO, DO, AI, DI). I want to people to write them one by one in order to allow a map to be stored as a constant. In that way if the end user decides to change some of the IO around on me it is easy.
 
However I am not seeing an easy way to write to one specific element. Replace supset will only allow me to call out either row or column.. not both (this makes no sence to me).
 
I hope someone can help.
 
Thank you.
0 Kudos
Message 1 of 6
(3,230 Views)
nm Smiley Wink... I got it to work
0 Kudos
Message 2 of 6
(3,219 Views)
Not sure what problem you're having. Did you wire a constant to both the row and col indices?

EDIT: Never-minded.


Message Edited by smercurio_fc on 05-09-2008 11:01 AM
0 Kudos
Message 3 of 6
(3,217 Views)
You are right, it really makes no sense: simply wire both indexes and then you will be allowed to wire a single element to the other input.
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 6
(3,211 Views)
You can certainly replace a single element in a 2D array and specify row and column. Attach the code you are having problems with.
0 Kudos
Message 5 of 6
(3,209 Views)
Yes that was exactly it. It would say the array sizes were mismatched when I was trying to put a value in but I had not yet wired both of my idexers so it assumed the element should be an array.
0 Kudos
Message 6 of 6
(3,201 Views)