Skip to main content

Microsoft Visual C++ Sample Program

Microsoft Visual C++ Monitor Program

Screen Layout

C++ Monitor Program
#ItemDescription
1Start buttonStarts monitoring when clicked.
2Stop buttonStops monitoring when clicked.
3Log display areaDisplays received log information.
Up to 100 log entries are retained. When exceeded, older logs are cleared first.
If monitoring is stopped and started again, all previous logs are cleared.
For displayed items, see Log Display Details.

Log Display Details

ItemDescription
msecDisplays timestamp (milliseconds).
usecDisplays timestamp (microseconds).
DirDisplays log direction.
Rx: received log, Tx: transmitted log
IDfmtDisplays ID format.
Std: standard ID, Ext: extended ID
IDDisplays CAN ID in hexadecimal.
DLDisplays data length (1 to 64).
DataDisplays data (D1 to D64) in hexadecimal. Data is comma-separated.

Error Handling

The program treats the following as errors, shows an error dialog, and exits.

  • MicroPeckerX could not be recognized when the program starts.
  • API call failed when starting/stopping monitoring or during monitoring.

Microsoft Visual C++ Simulation Program

Screen Layout

C++ Simulation Program
#ItemDescription
1Start buttonStarts monitoring and transmits periodic preset frames every 1 second.
2Stop buttonStops monitoring and periodic preset frame transmission.
3Log display areaDisplays transmitted/received log information.
Up to 100 log entries are retained. When exceeded, older logs are cleared first.
If monitoring is stopped and started again, all previous logs are cleared.
4ChangeData buttonIncrements (+1) data (D1 to D64) of the periodic preset frame.
5SlotSend buttonSends the event-transmission preset frame.
6DirectSend buttonSends the direct-transmission preset frame.

Log Display Details

ItemDescription
msecDisplays timestamp (milliseconds).
usecDisplays timestamp (microseconds).
DirDisplays log direction.
Rx: received log, Tx: transmitted log
IDfmtDisplays ID format.
Std: standard ID, Ext: extended ID
IDDisplays CAN ID in hexadecimal.
DLDisplays data length (1 to 64).
DataDisplays data (D1 to D64) in hexadecimal. Data is comma-separated.

Preset Frames

The contents of each preset frame are as follows.

Frame TypeSlotIDDLData (Hex) (*1)
FormatCAN IDD1...D64
Periodic preset frame0Standard ID100H6410...10
Event-transmission preset frame1Standard ID200H6420...20
Direct-transmission preset frame-Standard ID300H6430...30

*1: D1 to D64 are all the same value.

Error Handling

The program treats the following as errors, shows an error dialog, and exits.

  • MicroPeckerX could not be recognized when the program starts.
  • API call failed when starting/stopping monitoring or during monitoring.