Write Only One XNET LIN Frame Using LabVIEW

Updated Apr 28, 2023

Reported In

Software

  • LabVIEW

Driver

  • NI-XNET

Issue Details

When calling XNET write (using the board as a master with a schedule table), how can I be sure to write only 1 frame? Today, as soon as I start, a frame will be emitted following the schedule table. But I don't control the number of frames sent before reaching XNET stop.
 

Solution

You have to use the RunMode property with the value at Once :
XNET LIN run mode once.png
This property is not read from the database, but is handled like a database property. After opening the database, the default value is returned, and you can change the property. But similar to database properties, you cannot change it after a session is created.

Additional Information

RunMode property specifies how the master runs this schedule:
Continuous: The master runs the schedule continuously. When the last entry executes, the schedule starts again with the first entry.
Once: The master runs the schedule once (all entries), then returns to the previously running continuous schedule (or null). If requests are submitted for multiple run-once schedules, each run-once executes in succession based on its Priority, then the master returns to the continuous schedule (or null).
Null: All communication stops immediately. A schedule with this run mode is called a null schedule.