Firstly, ensure that both the
NI FlexRIO Driver and NI FlexRIO Adapter Module Support for LabVIEW are installed. We can configure the polarity by inserting FPGA IO node.
1.
Create FPGA I/O items in the Project Explorer window.
2. Click the
FPGA I/O item in the
Project Explorer window and drag it onto the block diagram to create a new FPGA I/O Node that is configured for that FPGA I/O item.
3. You can specify one polarity per 8 channels. Click the element section of the FPGA I/O Node to add a new FPGA I/O item. Select
IO Module\Ch 7-0 Bipolar Enable from the drop-down menu. Connecting a
False into the input terminal of IO Module\Ch 7-0 Bipolar Enable node will set the polarity of channel 0 to 7 as unipolar, which now the voltage range will 0V to 5V.
4. Expand the FPGA I/O Node to add additional FPGA I/O items for the remaining 8 channels. Click the element section of the FPGA I/O Node and select
IO Module\Ch 15-8 Bipolar Enable from the drop-down menu. Connecting a
False into the input terminal of IO Module\Ch 15-8 Bipolar Enable node will set the polarity of channels 8 to 15 as unipolar, which now the voltage range of these channels become 0V to 5V.