CLIP Tutorial, Part 4: Passing Data between CLIP and VIs
- Updated2025-09-18
- 2 minute(s) read
You pass data between component-level IP (CLIP) and VIs using an FPGA I/O Node in an FPGA VI.
Complete the following steps to use an FPGA I/O Node to access CLIP I/O.
- In Demo CLIP.lvproj, right-click the FPGA target and select New»VI from the shortcut menu to create a new FPGA VI.
- Add a Flat Sequence structure to the FPGA VI.
- Drag the PortA I/O item from the project to inside the Flat Sequence structure.
- Right-click the Adder CLIP/Port A input, select Create»Constant from the shortcut menu, enter a value of 5 for the constant, and label the constant Offset.
- Right-click the Flat Sequence structure and select Add Frame After from the shortcut menu.
- Drag the PortB I/O item from the project to inside empty frame of the Flat Sequence structure.
- Right-click the Adder CLIP/Port B input on the FPGA I/O Node, select Create»Control from the shortcut menu, and label the control Position.
- Expand the FPGA I/O Node to add AdderOut.
- Right-click the Adder CLIP/AdderOut output, select Create»Indicator from the shortcut menu, and label the indicator Position + Offset.
- Include the FPGA I/O Node within a While loop, as shown in the following block diagram:
The block diagram writes a constant, which is an offset value, to the Port A input. In the While Loop, the FPGA I/O Node adds the offset to a position to create a new position.
| Previous: CLIP Tutorial, Part 3: Adding CLIP to a Project |