Main Site Documentation

CAN DW module with G120 borad


#1

How can I program in C# to receive a message from CAN DW?
Sorry I am new for this.
the program I wrote may be very stupid. Please teach me something, thank you!

//count the number of messages that recieved
            can_dw2.InitializeCAN(100/*bitRate*/, 100/*receiveBufferSize*/);
            int receivedmessagecount = can_dw2.GetReceivedMessagesCount();
            string receivedmessagecountStr = receivedmessagecount.ToString();
            Debug.Print("the number of messages that recieved is"+receivedmessagecountStr);
            display_TE35.SimpleGraphics.DisplayText("the number of messages that recieved is  "+receivedmessagecountStr, Resources.GetFont(Resources.FontResources.NinaB), GT.Color.Red, 20, 50);

#2

Please check CAN examples in the Documents section:

https://www.ghielectronics.com/docs/110/can
https://www.ghielectronics.com/docs/57/can-dw-module


#3

@ Architect -
OK, I will read them ,thank you!!