Using Fixed-Size Arrays in FPGA VIs
- Updated2023-12-13
- 1 minute(s) read
Using Fixed-Size Arrays in FPGA VIs
The FPGA Module supports one-dimensional arrays that resolve to a single size at compile time. If LabVIEW cannot infer a single size of an array, consider using a fixed-size array in your FPGA VI.
Creating Fixed-Size Array Controls
Complete the following steps to create a fixed-size array control:
- Add an array to the front panel window. An array includes an index display on the left, an element display on the right, and an optional label.
- If the Controls palette is not already visible, right-click the element display or the front panel window to display the Controls palette.
- Drag a control or indicator into the array. For example, drag a numeric control into the array.
- Right-click the index of the array control and select Set Size from the shortcut menu.
- In the Size page of the Properties dialog box, select Fixed.
- Enter the number of elements in the array.
- Click the OK button.
Creating Fixed-Size Array Constants
Complete the following steps to create a fixed-size array constant:
- Add an array constant to the block diagram. An array constant appears with an index display on the left, an empty element display on the right, and an optional label.
- Add a constant to the array.
- Right-click the index of the array constant and select Set Size from the shortcut menu.
- In the Size page of the Properties dialog box, select Fixed.
- Enter the number of elements in the array.
- Click the OK button.