Replaying Logged NI-XNET CAN Frame Data
- Updated2025-04-08
- 2 minute(s) read
Replaying Logged NI-XNET CAN Frame Data
Add and replay TDMS (.tdms) or NI-XNET log (.ncl) files on a CAN bus.
Note VeriStand can only replay TDMS
files that contain specific header information. To ensure your files contain the correct
information, use VeriStand to create TDMS files you want to
replay.
- Launch your project in the VeriStand Editor.
- In the Project Files pane, left-click a system definition file (.nivssdf) and select Configure in System Explorer.
- Click in the configuration tree.
- Click a port.
- Click .
-
Click Add a Replay File
to display the Select an XNET Data File dialog box.
- Click the Path folder to select a log file that contains CAN data and click OK.
- Under Data Replay, select the log file to display the File Replay Configuration page.
-
Under File Replay Settings, specify a trigger channel for triggering the replay of the
file.
Note Replay starts as soon as the value of the trigger channel is not zero. You can select a channel that triggers multiple replays of the file.
- (TDMS only) Specify the group name and channel name for the TDMS channel that contains the data to replay.
- Specify the cache # of frames and loop rate (Hz).
-
Under file replay IDs, specify the replay behavior.
The default behavior is to replay the entire file. You can configure this behavior to include or exclude specific frame IDs.Note If you select Include Frame IDs, you cannot specify IDs of single-point frames that already appear as outgoing frames under the port. If you select one of the other behavior options, you cannot have any outgoing, single-point frames specified under the port. Specifying a single-point frame as both an output and a frame to replay causes a run-time error.
- Save the system definition file.
Note After you deploy and run the project, VeriStand also deploys the data replay file. If a
data replay file with the same name already exists on the target when you deploy the
project, VeriStand overwrites the existing file.
Related Information
- Adding a CAN, FlexRay, or LIN Port
Add a CAN, FlexRay, or LIN port to a system definition file.
- Logging Incoming NI-XNET Frames
Create TDMS (.tdms) or NI-XNET log (.ncl) files to record incoming frame data during an NI-XNET session.