Launching the Bus Monitor

NI-XNET Tools and Utilities Help

Edition Date: September 2017

Part Number: 372842N-01

»View Product Info
Download Help (Windows Only)

You can launch the NI-XNET Bus Monitor in three distinct protocol modes: CAN, LIN, or FlexRay, from MAX, the NI-XNET Windows Start menu, or the NI Launcher. You cannot switch from one protocol mode to the other during run time. You can run the Bus Monitor in multiple instances on different ports to verify the network communication on several CAN, LIN, or FlexRay bus topologies in parallel. On a remote target, you can run a single NI-XNET Bus Monitor instance at a time.

Launching the Bus Monitor from MAX on Your Local Host

Navigate to the NI-XNET device and port name under Devices and Interfaces. Then click the NI-XNET Bus Monitor link in the right pane or right-click the port name in the MAX configuration tree to access the Bus Monitor in the pop-up menu. This launches the Bus Monitor in the predefined protocol mode, CAN, LIN, or FlexRay, related to the selected device port name.

Launching the Bus Monitor on Your Local Host from the Windows Start Menu or the NI Launcher

Navigate to the Windows Start»Programs»National Instruments»NI-XNET menu from the Windows Start menu or the NI Launcher and select NI-XNET Bus Monitor. This launches the Bus Monitor in a non-predefined protocol mode if NI-XNET boards of different protocol types (CAN, LIN, or FlexRay) are detected. An interface selection dialog specifies the port of interest. Set the Mode to Local to run the Bus Monitor on your local host.

Launching the Bus Monitor from MAX on a Remote Target

Navigate to the appropriate remote target and NI-XNET device and port name under Neighborhood»Devices and Interfaces. Then click the NI-XNET Bus Monitor link in the right pane or right-click the port name in the MAX configuration tree to access the Bus Monitor in the pop-up menu. This launches the Bus Monitor in the predefined protocol mode, CAN, LIN, or FlexRay, related to the selected device port name.

Launching the Bus Monitor on a Remote Target from the Windows Start Menu

Navigate to the Windows Start»Programs»National Instruments»NI-XNET menu from the Windows Start menu or the NI Launcher and select NI-XNET Bus Monitor. This launches the Bus Monitor in a non-predefined protocol mode if NI-XNET boards of different protocol types (CAN, LIN, or FlexRay) are detected. An interface selection dialog specifies the port of interest. Set the Mode to Remote to run the Bus Monitor on your remote target. You need to define the IP address of your remote system as well as the Remote Port number. Port 13456 is the default value. If you need to change the default Remote Port, store the Remote Port name on the remote target by creating an nixnetbmrt.ini text file with the token TCP_PORT=x, where x defines the Remote Port name. Store the nixnetbmrt.ini file depending on your real-time operating system:

  • For VxWorks/NI Pharlap Real-Time, at /ni-rt/nixnet/busMonitor/nixnetbmrt.ini.
  • For NI Linux Real-Time, at /var/local/natinst/nixnet/.

Query the installed interfaces on the remote target by clicking the Scan button. All detected interfaces appear in the Select Interface control, in which can select your interface.

High Bus Load Measurements

At high bus loads, CAN or FlexRay messages are received at a high rate. To prevent a queue overflow error, you can optimize the measurement setup in the following ways:

  • The historical output mode used in the ID Logger consumes a relatively large amount of computing power. Therefore, set the Update Rate ID Logger in the Display Settings dialog to a large value such as 1000 ms. Reducing the number of frames displayed in the ID Logger optimizes the data throughput also. Therefore, set the History Length ID Logger parameter to a relatively small value (100 to 500 frames if possible).
  • Reduce the amount of data used for display and logging by filtering out uninteresting frames in Filter IDs in the Interface and Database Settings dialog.
  • Reduce the Monitor update rate by setting the Update Rate Monitor in the Display Settings dialog to 500 ms or slower.
  • If you are not interested in online data in the Monitor or ID Logger, but you need to stream all incoming data frames to disk, switch to the Statistics tab during the measurement. This consumes less processing power.

CAN Bus Load in Subordinate and CAN FD Mode

If you are running the Bus Monitor in Subordinate mode, you must set the baud rate to the correct value for the network, even if the rate is not assigned to the XNET interface. The Bus Monitor uses the baud rate parameter to calculate the network bus load.

WAS THIS ARTICLE HELPFUL?

Not Helpful