Table Of Contents

Accessing Timing and ID Information for Incoming NI-XNET Frames

Version:
    Last Modified: December 13, 2019

    Create Frame Information channels to track timestamps and frame IDs.

    Before you begin, import an incoming XNET frame. Frame information channels store incoming NI-XNET frame information. You can create the following types of Frame Information channels.
    • Receive Time—Contains the timestamp of the most recent frame.
    • Time Difference—Contains the difference between the two most recent Receive Time timestamps.
    • Frame ID—Contains the ID number that identifies the frame. This channel is for raw data format frames only.
    1. Launch the VeriStand Editor.
    2. In the Project Files pane, double-click a system definition file (.nivssdf). System Explorer opens .
    3. Click Targets»Controller»Hardware»Chassis»NI-XNET in the configuration tree.
    4. Select an NI-XNET LIN, FlexRay, or CAN port.
    5. Click Incoming and select a frame.
    6. Click Add Information Channels .
    7. Expand Frame Information to view the channels.
    8. Optional: Specify a dedicated start value for a channel.
      Channel type How to specify start value
      Receive Time
      1. Select a channel.
      2. On the Receive Time configuration page, enter an initial value.
      Time Difference
      1. Select a channel.
      2. On the Time Difference configuration page, enter an initial value.
      spd-note-note
      Note  

      Raw data format frames also include Frame ID channels. VeriStand reads the value for this channel from the XNET database. You cannot modify it or specify an initial value through System Explorer. However, you can use frame IDs to prioritize event-triggered frames and to include or exclude frames from a data log file.

    9. Save the system definition file.

    After creating Frame Information channels, you can use them like other channels in VeriStand. For example, you can map them to other channels or to controls and indicators in the VeriStand Editor or Workspace.

    Use the XNET page of the Options dialog box to configure VeriStand to create Frame Information channels when you import NI-XNET frames. You can also use the Import NI-XNET Frames dialog box to automatically create channels on a one-time basis when you import frames.


    Recently Viewed Topics