Transmit. Toggle between payload data

Professional Windows® software to communicate with CAN and CAN FD busses and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
JayDeeTech
Posts: 8
Joined: Fri 2. Dec 2022, 13:55

Transmit. Toggle between payload data

Post by JayDeeTech » Wed 5. Jun 2024, 14:22

Hello,
What is the simpliest way to get explorer to send a standard Message but too change the data on each cycle?
In simpliest form to toggle beween two different data payloads? i.e.
0x400 FF 00 FF 00 FF 00 FF 00
0x400 00 00 00 00 11 11 11 11

Could this be extended to work through a list of different data or a CSV File of data?

I am an engineer rather than a programmer but willing to learn basics.
Thanks. J.

M.Heidemann
Sales & Support
Sales & Support
Posts: 1083
Joined: Fri 20. Sep 2019, 13:31

Re: Transmit. Toggle between payload data

Post by M.Heidemann » Wed 5. Jun 2024, 16:20

Hello J,

You can send messages using the Send-Instructions, the syntax works like this:

Send BUS CAN-ID DLC BYTE0 BYTE1 BYTE2 etc...

So a 4-byte long message with CAN-ID 401 on Bus 1 would look like this:

Code: Select all

Send 1 401h 4 11h 44h 00h AAh
If you want to repeat this over and over, use the "Repeat" instructions:

Code: Select all

FormatVersion=6.0

Send 1 100h 2 12h 34h
Send 1 100h 2 13h 35h

Wait 500

Repeat

Could this be extended to work through a list of different data or a CSV File of data?
Not in Standard-Macros, it's feasible in VBscript Macros however,
we even have a Example-project for working with CSV-files.

If you are interested, just write a short Mail to us -> support[at]peak-system.com, just
link this topic in your email.

Best Regards

Marvin
---
Marvin Heidemann
PEAK-Support Team

Post Reply