From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert Boolean 2d array to 1d boolean array

Hello, presently doing one project I need help(How to convert Boolean 2d array to 1d boolean array?????)

0 Kudos
Message 1 of 3
(2,420 Views)

Use either IndexArray or ReshapeArray…

 

With providing an example VI, including example input data and expected resulting data, you would get more detailed help!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,413 Views)

A for loop would also do the trick:

2D to 1D.PNG

 

This becomes interesting once you want to selectively convert (e.g. don't add some rows or columns). 

0 Kudos
Message 3 of 3
(2,369 Views)