Accessing TEDS Information from a Module (FPGA Interface)

NI CompactRIO Device Drivers Help

Edition Date: December 2017

Part Number: 373197L-01

»View Product Info
Download Help (Windows Only)

The information in this topic applies to the following modules:

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

Complete the following steps to enable TEDS support for the module.

  1. Configure the CompactRIO system, and add the module.
  2. Right-click the module in the Project Explorer window and select Properties to launch 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 module. If it does not, the LabVIEW FPGA Compile Server optimizes the VI when you compile it, and the host VI cannot communicate with the module.

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

Note  The host VI cannot access TEDS information while the module is in acquisition mode. The module 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. Click Method on the Invoke Method function and select Read TEDS from the shortcut menu.
  4. Right-click the Slot or 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 module. Valid slot values are 1 through N, where N is the number of slots in the chassis.
  5. 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 module for which you want to read TEDS information.
    Modules Valid Channel Values
    NI 9218 0 through 1
    NI 9219 0 through 3
    NI 9230 0 through 2
    NI 9231 0 through 7
    NI 9232 0 through 2
    NI 9234 0 through 3
    NI 9237 0 through 3
    NI 9250 0 through 1
  6. Add a TEDS_Parse Binary TEDS VI, available on the TEDS palette, to the block diagram.

  7. Add a TEDS_Data to Table VI, available on the TEDS palette, to the block diagram.

  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.

Example

Refer to the module Getting Started (FPGA) VI at labview\examples\CompactRIO\Module Specific\<module>\<module> Getting Started for an example of how to access TEDS information.

WAS THIS ARTICLE HELPFUL?

Not Helpful