CAN Interface and Database Settings

Use this dialog to set the measurement setup interface-related properties and filtering options and assign a database to a measurement setup.

Interface Settings

  • CAN Interface—Use this control to assign an interface name on which the measurement should run. The interface name identifies the physical port within NI-XNET APIs.
  • Run Mode—Use this control to select whether to use the interface in Normal mode (the NI-XNET measurement session occupies the interface) or Subordinate mode (any LabVIEW application that uses the interface is responsible for starting and stopping it).
  • Log Transmitted Frames—Use this control when Run Mode is set to Subordinate to display and log frames transmitted from the same interface. Echoed frames are received only after the frame transmit is complete. If there are bus problems (for example, no listener) such that the frame did not transmit, the frame is not received.
  • Transceiver Type—This control is available only for XS XNET cards. NI XS CAN cards contain multiple transceivers for each CAN interface, and the transceiver is selected by software.
  • Baud Rate—Use the Baud Rate drop box to select from a list of commonly used baud rates or specify a custom baud rate with the <Custom> entry. If you select <Custom>, a dialog pops up that you can use to specify a custom, nonstandard baud rate. You can enter a nonstandard baud rate, edit the bit timing register values, and adjust the sample point. For more information about custom baud rates, refer to NI-XNET Help.
  • I/O Mode—Use the I/O Mode drop box to select the CAN protocol mode used on the selected CAN interface. You can select the following modes:
    • CAN sets the mode to use the CAN 2.0a/CAN 2.0b protocol.
    • CAN FD sets the mode to use the CAN protocol with the CAN Flexible Data Rate protocol, which allows transferring/receiving up to 64 data bytes.
    • CAN FD + BRS sets the mode to use the CAN protocol with the CAN Flexible Data Rate protocol, including Baud Rate switching.
  • FD Baud Rate—Use the FD Baud Rate drop box to select from a list of commonly used baud rates or specify a custom baud rate with the <Custom> entry when the I/O Mode is CAN FD + BRS. If you select <Custom>, a dialog pops up that you can use to specify a custom, nonstandard baud rate. You can enter a nonstandard baud rate, edit the bit timing register values, and adjust the sample point. For more information about custom baud rates, refer to NI-XNET Help.
  • ISO CAN FD—Sets the interface to be in ISO CAN FD mode, when the I/O Mode is CAN FD or CAN FD + BRS.
  • Application Protocol—Use the Application Protocol drop box to select the application protocol for the selected CAN interface. You can select the following protocols:
    • None sets the application protocol to none, which allows the monitoring of raw CAN frames.
    • J1939 sets the application protocol to J1939, which allows the monitoring of J1939 frames (each of which may consist of multiple raw CAN frames).
    If a database is used, Application Protocol is automatically set, per the cluster selected in the database, and disabled.
  • J1939 Node Name—The J1939 Node Name control is 64-bit wide. The node name is used within the address claiming procedure. It must be unique within a J1939 network.
  • J1939 Node Address—The J1939 Node Address control determines the destination address. The default value is 254 (null-address). Valid input values are 0–255.
  • Termination—Use Termination to control the selected NI-XNET interface termination. If you select this control, a termination is used.
  • Listen Only—If you select this control, the interface receives frames passively and does not transmit acknowledgements onto the CAN bus.
  • Bus Error Frames—If you select this control, communication problems reported by the CAN controller are logged into a dedicated CAN Frame called a Bus Error Frame. Bus Error Frames generated by NI-XNET are displayed in the Monitor and ID Logger, and are counted and displayed on the Statistics tab.
  • Exclude IDs—If you select this control, the IDs selected in the Filter IDs control are excluded from being displayed, analyzed, and logged.
  • Filter IDs—Use this control to add a list of filter identifiers for a software filter mask. Only the IDs listed here are available for display, analyzing, and logging. Filter mask list examples: If the protocol is CAN and Application Protocol is set to J1939, the IDs may be filtered by subID field. Precede the list with a keyword to indicate which subID field to filter on:
    1–10 Filter out IDs 1–10
    1–10,233,401–402 Filter out ID 1–10, 233, and 401–402
    PGN 61442–61445,61485 Filter out IDs with Program Group Number value 61442–61445 and 61485
    PS 2,3–8,11 Filter out IDs with PDU Specific value 2, 3–8, and 11
    SA 5,7, 25–33 Filter out IDs with Source Address value 5, 7, and 25–33
    The Bus Monitor interprets the format (Decimal or Hexadecimal) of the values entered into Filter IDs per the Message ID Format setting in Display Settings.

Database Settings

  • Assign Database Alias—For a CAN measurement, assigning a database alias is optional because the database identifies only frame names and comments.
  • Alias Name—If you are assigning a database alias, select an alias name from the drop-down list.
  • Cluster Name—If the database contains several clusters, you must select the cluster name from the drop-down list.