Accessing TEDS Information from the NI 9237 (FPGA Interface)

CompactRIO

Accessing TEDS Information from the NI 9237 (FPGA Interface)

You can access Transducer Electronic Data Sheet (TEDS) information from TEDS-compatible transducers connected to the channels of an NI 9237. 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 9237

Complete the following steps to enable TEDS support for the NI 9237.

  1. Configure the CompactRIO system, and add an NI 9237.
  2. Right-click the NI 9237 in the Project Explorer window and select Properties to display the C Series Module Properties dialog box.
  3. Place a checkmark in the Enable TEDS Support checkbox.
  4. 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 9237. 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 9237.

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 9237.

Note  The host VI cannot access TEDS information while the module is in acquisition mode. The NI 9237 must exit acquisition mode before the host VI can access TEDS information.
  1. Place an Invoke Method function on the block diagram.
  2. 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.
  3. Right-click Method on the Invoke Method function and select Read TEDS.
  4. If you are using the NI 9237 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 9237.
  5. 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 9237. Valid slot values are 1 through N, where N is the number of slots in the chassis.
  6. 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 9237 for which you want to read TEDS information. Valid channel values are 0 through 3.
  7. Place a TEDS_Parse Binary TEDS VI, available on the TEDS palette, on the block diagram.

     Place  Find
  8. Wire the TEDS Binary output of the Invoke Method function to the binary TEDS array input of the TEDS_Parse Binary TEDS VI.
  9. 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.
  10. 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 9237 Getting Started VI in the labview\examples\CompactRIO\Module Specific\NI 9237\NI 9237 Getting Started directory for an example of accessing TEDS information.

 Open example