Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69606

Manipulating 2D arrays

$
0
0

Hello, need some help to make a VI that will modify a 2D array based on information in one column.

For example belowshows original 2D array: 

Command ##AddressData0Data1
RD_LONG      01494580-
WR_LONG31494580-
RD_LONG3032460-
WR_LONG30324680-
WR_LONG3032483C-
RD_LONG3032505

5

The modification consists in detecting if  column5 contains valid data. On the above example we see a number 5 on data1 which is a valid digit,  once this is detected a new 2D array must be converted as follow:

Command##AddressData0Data1
RD_LONG01494580-
WR_LONG31494580-
RD_LONG3032460-
WR_LONG30324680-
WR_LONG3032483C-
RD_LONG3032505 
RD_LONG3032515 
     
         

Once valid data was detected, a copy of the row where the condition was met will need to be copied and inserted below,  only incrementing the address number by 1 and passing column 5 Data1 to Data 0 (col4) of in new inserted row.

Any pointers will be greatly appreciated...Thanks!

     
      
      
      
    

 

 


Viewing all articles
Browse latest Browse all 69606

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>