Accessing TEDS Information from the NI 9219 (FPGA Interface)
You can access Transducer Electronic Data Sheet (TEDS) information from TEDS-compatible transducers connected to the channels of an NI 9219. You must enable TEDS support for the module before you can read TEDS information. You can access TEDS information only from the host VI.
Enabling TEDS Support for the NI 9219
Complete the following steps to enable TEDS support for the NI 9219.
- Configure the CompactRIO system, and add an NI 9219.
- Right-click the NI 9219 in the Project Explorer window and select Properties to display the C Series Module Properties dialog box.
- Place a checkmark in the Enable TEDS Support checkbox.
- Click the OK button.
The FPGA VI must have an FPGA I/O Node or an FPGA I/O Property Node that communicates with the NI 9219. If it does not, the LabVIEW FPGA Compile Server optimizes the VI when you compile it, and the host VI cannot communicate with the NI 9219.
Reading TEDS Information in the Host VI
After you develop the FPGA VI and open a reference to it in the host VI, complete the following steps to read TEDS information from the NI 9219.
- Place an Invoke Method function on the block diagram.
- Wire the FPGA VI Reference Out output of the Open FPGA VI Reference function to the FPGA VI Reference In input of the Invoke Method function.
- Right-click Method on the Invoke Method function and select Read TEDS.
- If you are using the NI 9219 with an R Series device, right-click the Connector input of the Invoke Method function and select Create»Constant or Create»Control from the shortcut menu. Configure the constant or control for the slot of the NI 9219.
- Right-click the Slot input of the Invoke Method function and select Create»Constant or Create»Control from the shortcut menu. Configure the constant or control for the slot of the NI 9219. Valid slot values are 1 through N, where N is the number of slots in the chassis.
- Right-click the Channel input of the Invoke Method function and select Create»Constant from the shortcut menu. Configure the constant for the channel on the NI 9219 for which you want to read TEDS information. Valid channel values are 0 through 3.
- Place a TEDS_Parse Binary TEDS VI, available on the TEDS palette, on the block diagram.
Place Find - Wire the TEDS Binary output of the Invoke Method function to the binary TEDS array input of the TEDS_Parse Binary TEDS VI.
- Wire the v0.9 (TEDS) output of the Invoke Method function to the v0.9 TEDS (F) input of the TEDS_Data to Table VI.
- Wire the TEDS data out output of the TEDS_Parse Binary VI to the TEDS data in input of the TEDS_Data to Table VI.
When you run the VI, LabVIEW reads the TEDS from the sensor, and the LabVIEW TEDS Toolkit parses the TEDS information and outputs it as a table.
Note You must enable error handling in the FPGA VI to receive consistent error messages in the host VI. |
Refer to the NI 9219 TEDS VI in the labview\examples\CompactRIO\Module Specific\NI 9219\NI 9219 TEDS directory for an example of accessing TEDS information.