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: 

typecast 1D array as 2D?

Solved!
Go to solution

I have a set of VIs that accepts a 2D array as input.  In some special cases, that input array will be 1D instead of 2D.  Is there any way to typecast that 1D array as a 2D array, so that I don't have to write new VIs (or add case structures to the current VIs) for this special case?

 

Thanks,

 

Allan

0 Kudos
Message 1 of 3
(2,976 Views)
Solution
Accepted by bracker
0 Kudos
Message 2 of 3
(2,971 Views)

You might also find the Reshape Array function to be helpful.

 

Lynn

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