Send CAN-Message with C++

The free CAN Software API (Application Programming Interface) for Windows®
Post Reply
Peak_Performer
Posts: 2
Joined: Thu 14. Sep 2017, 11:09

Send CAN-Message with C++

Post by Peak_Performer » Thu 14. Sep 2017, 11:15

Hi,
I´m new in this forum, so please don´t judge me ;)

I want to send a easy CAN Message in a little C++ Script over my PCAN-USB Module on my CAN-BUS. Do you know how i can create a script to do that? My Message should look like 0x01010000000032 and the Bus uses a Bitrate of 1MBit/s.

I would be very thankful for your help :)

Best regards,

Phil

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Send CAN-Message with C++

Post by M.Maidhof » Thu 14. Sep 2017, 11:31

Hi,

Windows or Linux?

regards

Michael

Peak_Performer
Posts: 2
Joined: Thu 14. Sep 2017, 11:09

Re: Send CAN-Message with C++

Post by Peak_Performer » Thu 14. Sep 2017, 12:05

Hi Michael,

I´m using Windows 7 currently.

Thanks and regards

Johannes

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Send CAN-Message with C++

Post by M.Maidhof » Thu 14. Sep 2017, 14:10

Hi,

download the PCANBasic package from our website, and have a look on the sample code and help files.

regards

Michael

Post Reply