Skip to main content

Microsoft Visual C# Sample Program

Microsoft Visual C# Simulation Program

Screen layout

C# simulation program
#ItemDescription
-Connect buttonRecognizes the MicroPeckerX units connected to the PC when clicked.
-Start buttonStarts monitoring when clicked and sends the periodic transmission preset frame every 0.5 seconds.
-Stop buttonStops monitoring and stops sending the periodic transmission preset frame when clicked.
-Send Slot buttonSends the event transmission preset frame when clicked.
-Change Data buttonChanges the data (only D1) of the periodic transmission preset frame to 00H when clicked.
-Send Direct buttonSends the direct transmission preset frame when clicked.
1Log viewer (Note 1)Displays log information for transmitted and received frames. Up to 1,024 log entries are retained; when the limit is exceeded, the oldest entries are cleared.
All log entries are cleared when monitoring is restarted after being stopped.

Log viewer details

The contents are shown below. Items are separated by commas.

#ItemDescription
1(No header)Displays timestamps in the format sssss.mmmuuu.
2Rx/TxDisplays the log direction.
Rx: Receive log / Tx: Transmit log
3IDDisplays the CAN ID and ID format. The CAN ID is shown in hexadecimal, and the format is displayed as follows.
Std: Standard ID / Ext: Extended ID
4DLCDisplays the data length (1 to 64).
5DataDisplays data (D1–D64) in hexadecimal. Data items are separated by spaces.

Preset frames

The contents of each preset frame are shown below.

Frame typeSlotProtocolIDDLData (hexadecimal)
FormatCAN IDD1D2D8D64
Periodic transmission preset frame (Note 1)1CAN FDStandard ID100H640001073F
Event transmission preset frame2CANStandard ID200H8202127
Direct transmission preset frame-CAN FDStandard ID300H8303137

Note 1: Only D1 increments by +1 each time it is transmitted.