How to convert a one-dimensional array to a two-dimensional array in Labview?

In LabVIEW, a one-dimensional array can be transformed into a two-dimensional array using the “Reshape Array” function. Here is an example:

  1. Open LabVIEW and create a new VI.
  2. Drag a “Reshape Array” function in the Block Diagram.
  3. Connect a one-dimensional array input to the input of the “Reshape Array” function.
  4. Right-click on the input end of the “Reshape Array” function, choose “Create”, then select “Array”-> “2D Array” to create a two-dimensional array.
  5. Connect the output of the 2D array to other parts of the Block Diagram.

After completing the steps above, the one-dimensional array will be converted into a two-dimensional array. It is important to ensure that the length of the one-dimensional array matches the desired number of rows and columns in the two-dimensional array during the conversion process.

广告
Closing in 10 seconds
bannerAds