Example Code

Remove Array Rows Based on Specified Criteria

Code and Documents

Attachment

 

Overview: This example removes rows from any size array if they meet specified criteria.  For example, we can remove the entire row if the value in column three is equal to zero.


Description: This example is helpful if we only want to work at data that falls within a specified range.  By changing the comparision location and values, we can easily modify what is checked to meet our own needs.


Requirements: LabVIEW 2012 (or compatible). Hardware: none.


Steps to Implement or Execute Code: Specify columns and rows with values and run the VI.


Additional Information or References: 

 

Remove Array Rows Based on Specified Criteria FP.png

 

Remove Array Rows Based on Specified Criteria sn.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Cheers,
Kelly R.
Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.