Search found 14 matches

by yesweCAN
Fri 25. Oct 2024, 15:21
Forum: Linux
Topic: USB-CAN and linux version for my application
Replies: 2
Views: 9755

Re: USB-CAN and linux version for my application

Hello Marvin,

Ok lets go for Ubuntu at second step.

before that my first step will be to test the USB/CAN on windows with the existing software.

Thanks for this quick answer.
by yesweCAN
Fri 25. Oct 2024, 14:47
Forum: Linux
Topic: USB-CAN and linux version for my application
Replies: 2
Views: 9755

USB-CAN and linux version for my application

Hello,
My application drive 10 motors on windows and update them every 5ms from UDP parameters.
It works perfectly (Thanks for the PEAK teams) but my customer want to migrate to tiny computer and linux :( .
I've found the linux webpage linux peak driver but I don't found the magic answer : which ...
by yesweCAN
Fri 27. Oct 2023, 12:41
Forum: PCAN-Basic
Topic: Add text in log file and change log directory
Replies: 11
Views: 41794

Re: Add text in log file and change log directory

Sorry I've made a mistake in my explanation I use trace file (.trc) and I want to add text between the CAN packet to make it easily to trace the step of my program.
by yesweCAN
Fri 27. Oct 2023, 10:25
Forum: PCAN-Basic
Topic: Add text in log file and change log directory
Replies: 11
Views: 41794

Re: Add text in log file and change log directory

I don't want to add more message in the CAN BUS.
I will stay with the analyze of the log file.
by yesweCAN
Fri 27. Oct 2023, 10:16
Forum: PCAN-Basic
Topic: Add text in log file and change log directory
Replies: 11
Views: 41794

Re: Add text in log file and change log directory

I've tried to add text in the log file like the documentation

private void VarStepChange(string Step)
{
if(PCANBasic.SetValue(PCANBasic.PCAN_NONEBUS, TPCANParameter.PCAN_LOG_TEXT, Step, (uint)Step.Length) == TPCANStatus.PCAN_ERROR_OK)
Console.WriteLine("logged sucessfully");
else
Console ...
by yesweCAN
Fri 27. Oct 2023, 10:00
Forum: PCAN-Basic
Topic: Add text in log file and change log directory
Replies: 11
Views: 41794

Re: Add text in log file and change log directory

The log works fine thanks
Thanks for the ECHO tips but in the log it will appear in Rx instead Tx.
by yesweCAN
Fri 27. Oct 2023, 09:27
Forum: PCAN-Basic
Topic: Add text in log file and change log directory
Replies: 11
Views: 41794

Add text in log file and change log directory

PCIE CANBUS
c# / Visual Studio
Windows

Hi,
I've implemented with success the log file in my application.
Now I would like to know If :
Is there a parameter to put the log file in a subdirectory of my application ? : "\\CANLog\\" for example
Is there a function to add text in the log file to write ...
by yesweCAN
Tue 22. Aug 2023, 12:22
Forum: PCAN-Basic
Topic: TPCANMSg could not be marshaled
Replies: 3
Views: 2717

Re: TPCANMSg could not be marshaled

Hi,
Ok,
The size of the array in always 8 but the Len define the number of byte to send.
it works
Thanks
by yesweCAN
Tue 22. Aug 2023, 12:02
Forum: PCAN-Basic
Topic: TPCANMSg could not be marshaled
Replies: 3
Views: 2717

TPCANMSg could not be marshaled

Hi,
I'm using the PCAN-Basic lib in a c# application.
I need to send a NMT package with 2 bytes in the payload.
I configure the message like this


void Send_NMT()
{
TPCANMsg CANMsg = new TPCANMsg();
CANMsg.DATA = new byte[2];
CANMsg.ID = 0x00;
CANMsg.LEN = 2;
CANMsg.MSGTYPE = TPCANMessageType ...
by yesweCAN
Tue 8. Aug 2023, 10:03
Forum: PCAN-Basic
Topic: delay in receive event
Replies: 6
Views: 3460

Re: delay in receive event

Ok perfect thanks for this explanation.
I love your PCI board it works perfectly, and your sample are very usefull. :D