Skip to main content
Version: Ver.4.10

Master Simulation

To create settings from LDF communication definitions, see Importing Schedules from Catalog. For editing individual frames, see Editing Initial Values by Signal.

Master Simulation supports operations such as transmitting headers to slave nodes. Select Master Sim. under LIN Simulation Mode in Simulation Window to use Master Simulation.

Basic Operation of Master Simulation​

The following describes periodically transmitting headers and receiving slave responses with Master Simulation. This example was verified with the board connected to Ch1-1, using ID 0x32 (decimal 50), a data length of 8 bytes, Classic checksum, and a bitrate of 19,841 bps. The ID field is hexadecimal, so enter 32.

Before starting, configure communication conditions for the connected system in Device Window, and identify the master on the bus.

  1. Select Master Sim. in Simulation Window Open Simulation Window from the menu or toolbar, then select Master Sim. under Simulation Mode. Master Simulation is now available.
Master Sim. for Ch1-1, with the Fan_Response schedule and an Rx frame for ID 32 configured

Figure 1: Master settings for receiving the board's response.

  1. Display schedule settings Click the Schedule tab. The schedule settings appear.

  2. Enable the schedule Select a schedule in the schedule list on the left of the schedule settings, and turn ON the leftmost checkbox in its row. The selected schedule is enabled, and its registered frames appear in the frame list on the right of the schedule settings.

In this example, name the schedule Fan_Response and turn Repeat ON for repeated transmission.

  1. Open the LIN Frame Setting dialog Click the Add New Frame button in Simulation Window. The LIN Frame Setting dialog appears.

  2. Configure frame information Configure frame information under Frame settings in the LIN Frame Setting dialog.

LIN Frame Setting with Delay 50 ms, Direction Rx, ID 32, Error None, Signals Raw frame, and Pattern Disabled

Figure 2: Transmitting the header for ID 0x32 at 50 ms intervals.

The minimum required settings and example values are shown below.

ItemDescriptionExample
Delay (ms)Enter the transmission interval from the previous frame.50
DirectionSelect Rx to transmit only the header and receive the board's response. Tx transmits the header and response; Wakeup transmits a wakeup signal; Sleep transmits a sleep command.Rx
ID (HEX)Enter the LIN ID in hexadecimal when Direction is Tx or Rx.32
ErrorSelect None when no error is to be added.None

In this example, Signals is Raw frame, and no transmission signal definition is selected. Pattern is Disabled / No file / 0 samples. When Direction is Rx, do not configure transmission data D1–D8.

  1. Register frame information Click OK in the LIN Frame Setting dialog. The configured frame information is registered and appears in the frame list in Simulation Window.

In the Frame List in Figure 1, turn the first checkbox ON and Once OFF, then check Delay 50, Dir. Rx, and ID 32. With Once OFF, the header is transmitted each time the schedule with Repeat ON repeats.

Turning OFF the leftmost checkbox in the Simulation Window frame list disables the registered frame, so it is not transmitted. Checkbox states can be changed even during monitoring.

  1. Start monitoring Click the Start button on the toolbar (or select Command → Start from the menu bar, or press F5). Monitoring starts and the registered header is transmitted periodically. Check received contents in Monitor Window.

Master Simulation Screen Description​

Select Master Sim. under LIN Simulation Mode in Figure 1, then configure the Schedule, Interrupt, and Bus Status tabs.

Schedule Tab​

In Figure 1, Schedule List is on the left and Frame List on the right. Buttons near each list support editing, copying, adding, deleting, and other operations.

ItemDescriptionAdditional information
Schedule settings areaSchedule ListDisplays configured schedule information.See Schedule List.
Edit Schedule buttonOpens LIN Schedule Setting dialog and edits schedule selected in Schedule List.Double-clicking a schedule information row in Schedule List (excluding the checkbox cell) also opens the LIN Schedule Setting dialog.
Copy Schedule Table buttonOpens the Copy Schedule Table dialog to copy frame information registered in the schedule selected in Schedule List to another schedule (schedule information itself is not copied).All frame information in destination schedule is deleted.
Delete Schedule Table buttonOpens the Copy Schedule Table dialog to delete the schedule information selected in Schedule List (all frame information is also deleted).
Menu buttonSelecting Load All Pattern loads the pattern files configured for frames with Ptn. ON in Frame List, across all schedules.
Import LIN Schedules from Catalog... selects schedules from LDFs imported into Catalog and adds them to empty slots. For the procedure and effects on Device settings, see Linking Signal Definitions and Transmission Settings.
Frame settings areaFrame ListDisplays frame information registered in schedule selected in Schedule List.See Frame List.
Order Down buttonMoves selected frame in Frame List down by one position.You can also move a frame by selecting its row in Frame List (excluding the checkbox cell) and dragging and dropping it.
Order Up buttonMoves selected frame in Frame List up by one position.
Add New Frame buttonOpens Frame Setting dialog and registers a new frame.
Edit Frame buttonOpens Frame Setting dialog and edits selected frame in Frame List.Double-clicking a registered frame information row in Frame List (excluding the checkbox cell) also opens the Frame Setting dialog.
Copy Frame buttonOpens Frame Setting dialog and registers a new frame based on selected frame in Frame List.
Delete Frame buttonShows confirmation dialog below. Click Yes to delete selected frame in Frame List.
Delete confirmation

Schedule List​

Displays configured schedule information. You can also enable / disable schedules and set whether transmission repeats.

Double-click a schedule information row (excluding its checkbox cell) to open LIN Schedule Setting and edit the schedule, just as with the Edit Schedule button.

Schedule List
ItemDescription
Valid
(area ①)
Sets schedule enable/disable. ON = enabled, OFF = disabled.
NameDisplays schedule name.
RepeatSets whether schedule transmission repeats.
ON: after transmitting the last frame in frame list, transmission returns to first frame and continues sequentially.
OFF: transmission stops after transmitting the last frame.
EventDisplays trigger condition for schedule switch event.
ToDisplays transition destination when schedule switch event occurs.

LIN Schedule Setting Dialog​

Schedule List
ItemDescription
NameSets schedule name. Up to 14 characters.
Event SettingSets behavior when schedule switch event occurs. Options are:
Change to this schedule: when schedule switch event occurs, transitions to this schedule.
Change to ...: if this schedule is currently running and schedule switch event occurs, transitions to schedule specified in pull-down menu.
Event TriggerSets trigger condition for schedule switch event. See Event Trigger.
Event Trigger​

Sets the conditions for a schedule switching event.

ItemDescription
NoneNo schedule switching event occurs.
TimeEvent occurs after configured time has elapsed since monitoring start or last schedule transition.
Available ranges by unit:
ms: 50-86400000 (multiples of 50 only)
sec: 1-86400
min: 1-1440
hour: 1-24
Ext TriggerPort input causes a schedule switching event.
This feature is under development and cannot be used.
Log TriggerEvent occurs when configured log is detected.
Key TriggerThe configured key input causes a schedule switching event. Available keys are:
【Main key】 A, B, ..., Z, 0, 1, ..., 9, F1, F2, ..., F12, SPACE
【Modifier key】 Alt, Ctrl, Shift

Copy Schedule Table Dialog​

Copies all frame information registered in the selected schedule to another schedule (schedule names and event settings are not copied).

Copy Schedule Table
ItemDescription
Copy FromSelect source schedule.
Copy ToSelect destination schedule.
OKExecutes copy with current settings.
CancelCloses dialog (copy is not executed).

Frame List​

Displays frame information registered in the schedule selected in Schedule List. You can also enable / disable frame transmission, configure repetition, and set other options.

Frame List
ItemDescriptionAdditional information
Valid
(area ①)
Sets whether a frame can be transmitted. If the checkbox is OFF, the frame is not transmitted.
OnceSets whether frame transmission repeats.
If the checkbox is ON, the frame is transmitted only once during monitoring (it is not transmitted again until monitoring is stopped).
DelayDisplays the transmission interval from the previous frame.
Dir.Displays the frame type.
IDDisplays the frame's LIN ID in hexadecimal.
D1~D8Displays each data byte in hexadecimal when the frame type is Tx.
ErrorDisplays frame error type.
Ptn.Sets whether to use a pattern file for the frame's data bytes. Checkbox states mean:
【ON】 Uses data configured in Pattern File in the Frame Setting dialog.
【OFF】 Uses data configured in Frame settings in the Frame Setting dialog.
If the pattern file to load is not configured, the check box is disabled.
Rep.Sets whether to apply the pattern data list repeatedly. The meanings of the ON/OFF check box state are as follows.
ON: When a pattern change event occurs after reaching the bottom of the pattern data list, processing returns to the top.
OFF: Once the bottom of the pattern data list is reached, pattern change events remain disabled until monitoring stops.
If the pattern file to load is not configured, the check box is disabled.
TriggerDisplays the occurrence condition of the pattern change event.
Pattern Log FileDisplays the file name of the pattern file to load.

LIN Frame Setting Dialog​

LIN Frame Setting in Figure 2 displays Frame settings, Signals, and a Pattern summary. Configure pattern details in LIN Pattern File, opened with the Pattern File button.

Use Add New Frame to register a new frame, Edit Frame to modify the selected frame, or Copy Frame to register a new frame based on the selected frame. All use LIN Frame Setting for editing.

ItemDescriptionAdditional information
Frame settingsDelay (ms)Sets transmission interval from previous frame in milliseconds. Range: 1-3600000.
DirectionSets frame type. Options:
Tx: transmit header and response.
Rx: transmit header only.
Wakeup: transmit wakeup signal.
Sleep: transmit sleep command.
ID (HEX)Sets the frame's LIN ID in hexadecimal. Available range: 00H–3FH.Configured when Direction is Tx or Rx.
D1 (HEX)〜D8 (HEX)Sets each byte of the frame's response data in hexadecimal.Configured when Direction is Tx.
ErrorSets whether to add an error and the error type. Available options depend on Direction:
【Tx】None, SyncBrk. Long, SyncBrk. Short, SyncField Err., Parity Err., Checksum, ShortMsg. (1Byte), ShortMsg. (2Byte), ..., ShortMsg. (8Byte), Framing(Data1), Framing(Data2), ..., Framing(Data8), Framing(CS)
【Rx】None, SyncBrk. Long, SyncBrk. Short, SyncField Err., Parity Err.
Configured when Direction is Tx or Rx.
SignalsFrom CatalogSelects a LIN frame definition from Signal Catalog when Direction is Tx or Rx. Unavailable for Wakeup / Sleep.Direction is set to Tx or Rx according to the adopted definition.
Signal/Initial value/Format/UnitDisplays signals and units in the definition. Select an available Format (Physical / Logical / Raw signed / Raw unsigned), then edit Initial value to update the corresponding HEX data.Tx signal values can be edited. Rx values reference the definition's initial values. See Editing Initial Values by Signal for details.
Pattern FileOpens the LIN Pattern File dialog. The parent screen displays a summary of the pattern enabled state, file name, and data count.OK in the child screen applies changes to the parent screen; OK in the parent finalizes them. Figure 2 shows Disabled / No file / 0 samples.
OK / CancelOK finalizes frame information. Cancel discards changes being edited and closes the dialog.
LIN Pattern File Dialog​

Open this dialog from Pattern File in LIN Frame Setting. Figure 3 shows the screen before loading a file. When using a pattern file, check the loaded data and change trigger.

LIN Pattern File with Pattern Setting Source File, ID Filter, Default Data, Missmatch DL, Load, Clear, Save, pattern list, and Pattern Change Trigger

Figure 3: Child dialog for configuring a pattern file.

ItemDescriptionAdditional information
Source FileDisplays the full path of the pattern file selected for loading using the file dialog opened with the ... button.You can also set pattern file by direct full-path input.
... buttonOpens file dialog and selects pattern file to load.The selected pattern file is not loaded until Load is clicked.
ID FilterWhen ON, extracts data matching the specified ID.
For PTN files, Wakeup / Sleep are loaded regardless of the ID condition. For CSV files, the ID condition is applied to the corresponding records.
Default DataSets hexadecimal default data used when the data length in the ID definition on the Device Setting ID Definition tab differs from the pattern data length in the loaded pattern file.
Missmatch DLSets behavior when data length in loaded pattern data does not match ID definition in ID Definition tab of Device Setting. Options:
Use Default: if ID-definition length is larger than pattern data length, default data fills missing bytes.
Ignore: that pattern data is treated as invalid and not shown in pattern data list.
Example for Use Default:
ID definition length: 4 bytes
Pattern data: 08,4C (2 bytes)
Default data: 11,22,33,44,55,66,77,88
In this case, bytes 3 and 4 use default data, so pattern data becomes 08,4C,33,44.
Load buttonLoads pattern file shown in Source File and displays its pattern data in pattern data list.
Clear buttonClears all pattern data shown in pattern data list.
Save buttonOpens file dialog and saves pattern data shown in pattern data list as a pattern file with any file name.
Pattern data listDisplays pattern data contained in loaded pattern file.
Pattern Change TriggerSets trigger condition for pattern change events.See Pattern Change Trigger.
OKApplies pattern settings to the LIN Frame Setting draft and closes the child dialog.
CancelDiscards changes in the child dialog and closes it.
Pattern Change Trigger​

Sets the conditions for a pattern change event.

Pattern Change Trigger
ItemDescription
TimerEvent occurs each time configured interval elapses.
Ext TriggerAn event occurs by external port input.
This function is currently under development and cannot be used.
Log TriggerEvent occurs when configured log is detected.
Key TriggerEvent occurs on configured key input.
Timer​
Timer
Screen itemDescriptionNotes
Time value
(area ①)
Together with the time unit, sets the interval for pattern change events. Available ranges depend on the time unit:
【ms (milliseconds)】 50–3600000 (multiples of 50 only)
【sec (seconds)】 1–3600
【min (minutes)】 1–60
Spin buttons increment or decrement by 50 milliseconds only when the time unit is ms.
Time unit
(area ②)
Together with the time value, sets the interval for pattern change events. Options:
ms, sec, min
Log Trigger​
Log Trigger
Screen itemDescription
Event condition
(area ①)
Displays log information configured as the condition for a pattern change event.
Double-click this area to open Trigger Setting and configure the log information for the event condition.
Edit buttonOpens Trigger Setting to configure log information for the event condition.

For details on Trigger Setting, see Trigger Setting Dialog Screen Description.

Key Trigger​
Key Trigger
Screen itemDescriptionNotes
Main key
(area ①)
Sets the key used as the event condition. Options:
None, A, B, ..., Z, 0, 1, ..., 9, F1, F2, ..., F12, SPACE
If Main key is None, key input does not cause an event.
Modifier key
(area ②)
Sets the modifier to combine with the main key for the event condition. Options:
None, Alt, Ctrl, Shift
Select None if no modifier is used.
A modifier alone cannot trigger an event.

Interrupt Tab​

Interrupt tab
UI ItemDescription
Schedule InfoCurrent ScheduleDisplays currently running schedule.
If a schedule is selected from pull-down options, after one full cycle of frames in current schedule is transmitted, transition occurs to selected schedule.
Status Command InterruptWakeup buttonTransmits wakeup signal when clicked.
If system is in sleep mode, wakeup signal cannot be transmitted by this button.
Sleep buttonTransmits sleep command and enters sleep mode when clicked.
If Not Sleep by Sleep Command(3C) checkbox in Bus Status tab is ON, sleep mode transition does not occur even when sleep command is transmitted.
Interrupt ListInterrupt Frame List
(area ①)
Displays configured interrupt-frame information.
See Interrupt List.
Send Interrupt buttonTransmits interrupt frame selected in Interrupt List.
Add New Interrupt buttonOpens Interrupt Setting dialog and registers new interrupt frame.
Edit Interrupt buttonOpens the Interrupt Setting dialog to edit the interrupt frame selected in Interrupt List.
Double-clicking a registered interrupt frame row in Interrupt List (excluding the checkbox cell) also opens the Interrupt Setting dialog.
Copy Interrupt buttonOpens Interrupt Setting dialog and registers a new interrupt frame based on selected one in Interrupt List.
Delete Interrupt buttonShows confirmation dialog below.
Delete confirmation
Click Yes to delete selected frame in Interrupt List.

Interrupt List​

Displays registered interrupt frame information. You can also enable / disable frame transmission.

Interrupt List
ItemDescription
Valid
(area ①)
Sets whether interrupt frame can be transmitted. If checkbox is OFF, frame is not transmitted.
TriggerDisplays trigger condition of interrupt-frame transmission event.
Dir.Displays interrupt-frame type.
IDDisplays the interrupt frame's LIN ID in hexadecimal.
D1~D8Displays each data byte in hexadecimal when the interrupt frame type is Tx.
ErrorDisplays frame error type.

Interrupt Setting Dialog​

LIN Interrupt Setting
ItemDescriptionAdditional information
DirSets frame type. Options:
Tx: transmit header and response.
Rx: transmit header only.
Wakeup: transmit wakeup signal.
Sleep: transmit sleep command.
IDSets the frame's LIN ID in hexadecimal. Available range: 00H–3FH.If out-of-range value is set, OK button becomes disabled.
If Dir. is Wakeup or Sleep, this field is hidden.
DataSets each byte of the frame's response data in hexadecimal.Hidden when Dir. is not Tx.
ErrorSets whether to add an error and the error type. Options depend on Dir:
【Tx】None, SyncBrk. Long, SyncBrk. Short, SyncField Err., Parity Err., Checksum, ShortMsg. (1Byte), ShortMsg. (2Byte), ..., ShortMsg. (8Byte), Framing(Data1), Framing(Data2), ..., Framing(Data8), Framing(CS)
【Rx】None, SyncBrk. Long, SyncBrk. Short, SyncField Err., Parity Err.
Hidden when Dir. is Wakeup or Sleep.
Event TriggerSets trigger condition for interrupt-frame transmission event.See Event Trigger.
OK buttonSaves configured interrupt-frame information and closes dialog.
Cancel buttonDiscards configured interrupt-frame information and closes dialog.

The dialog title bar changes according to the operation used to open it.

OperationTitle
Click the Add New Interrupt buttonLIN Interrupt Setting : New
Click the Edit Interrupt buttonLIN Interrupt Setting : Edit
Click the Copy Interrupt buttonLIN Interrupt Setting : Copy
Event Trigger​

Sets the conditions for an interrupt frame transmission event.

Event Trigger
ItemDescription
NoneNo event occurs.
Ext TriggerAn event occurs by external port input.
This function is currently under development and cannot be used.
Log TriggerEvent occurs when configured log is detected.
Key TriggerEvent occurs on configured key input.
tip

Regardless of Event Trigger settings, you can transmit an interrupt frame by clicking the Send Interrupt button.

Log Trigger​
Log Trigger
Screen itemDescription
Event condition
(area ①)
Displays log information configured as the condition for an interrupt frame transmission event.
Double-click this area to open Trigger Setting and configure log information for the event condition.
Edit buttonOpens Trigger Setting to configure log information for the event condition.

For details on Trigger Setting, see Trigger Setting Dialog Screen Description.

Key Trigger​
Key Trigger
Screen itemDescriptionNotes
Main key
(area ①)
Sets the key used as the event condition. Options:
None, A, B, ..., Z, 0, 1, ..., 9, F1, F2, ..., F12, SPACE
If Main key is None, key input does not cause an event.
Modifier key
(area ②)
Sets the modifier to combine with the main key for the event condition. Options:
None, Alt, Ctrl, Shift
Select None if no modifier is used.
A modifier alone cannot trigger an event.

Bus Status Tab​

Bus Status tab
UI ItemDescription
Not Sleep by Sleep Command(3C)Sets whether transition to sleep mode occurs when sleep command is transmitted/received.
ON: does not transition to sleep mode even if sleep command is transmitted/received.
OFF: transitions to sleep mode when sleep command is transmitted/received.
Status Command InterruptWakeup buttonReturns from sleep mode when clicked. Wakeup signal is not transmitted.
Sleep buttonTransitions to sleep mode when clicked. Sleep command is not transmitted.