ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filter row from 2D-Array

Hello,
 
the problem I have is to filter a row from a 2D-Array. The datas which are read out are 8 byte each row. The first byte of a column is always 81h the other values are different. Now, when there is a 96h in the second column only this row sould be given out, string or 1D-array. In the attachment are some experiments. Hope anybody can help.
 
 
Regards
ThomasD
0 Kudos
Message 1 of 5
(3,549 Views)
Thomas,

A shift register and a case stucture will do the job, if I understood correctly what you want to do. Note that using a Build Array node in this manner is not memory efficient for large arrays. Pre-allocating an array and using Replace Array Subset is better, but this is easy to follow and will work fine for small arrays.

Lynn
Message 2 of 5
(3,537 Views)

Hi Lynn,

thanks for the answer!

Can somebody convert this VI to LV6.0 or make a screenshot of this VI? I forgot to tell, that I have only LV6.0.

 

Regards ThomasD

0 Kudos
Message 3 of 5
(3,520 Views)
Hi Thomas,

Sorry I can't save to LV6.... here is a screen-shot of Lynn's VI 😉


Message Edité par TiTou le 05-02-2006 09:20 AM


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 5
(3,518 Views)

Thanks Lynn and TiTou!

@Lynn: That is what I wanted.

0 Kudos
Message 5 of 5
(3,504 Views)