Page 1 of 1

Simple sample in C++ or VB

Posted: Tue 18. Feb 2014, 23:38
by Mr.Ostrich
Hello
Is it possible to get an simple code in C++ (or VB) to have an basic to go on with coding.

For example:

just HW initialisation and everythhing hat is needet

init
speed config
.....
and maybe just sending 1 oder 2 CAN messages


thx

P.S.: My Problem is, when i have a look at the samples there are sometimes just little Questions like "Why is nowhere the speed defined. The Program works with 500kbit but nowhere is PCAN_BAUD_500K = 0x001C" written.

Hope you understand what i mean

Re: Simple sample in C++ or VB

Posted: Wed 19. Feb 2014, 08:11
by K.Wagner
Dear,

please take a look at the help document that you receive along with the API. Each function has a minimalistic example in C++ code. For example, see this picture (help document, chapter Reference\Functions\CAN_Initialize):
Example of CAN_Initialize
Example of CAN_Initialize
CAN_Initialize.jpg (126.11 KiB) Viewed 3740 times
Look for the function CAN_Read and CAN_Write within the help document to find also examples on how to read and write messages.