Search found 711 matches

by K.Wagner
Wed 18. May 2011, 11:59
Forum: PCAN-Basic
Topic: PCANBasic thread safe
Replies: 1
Views: 2541

Re: PCANBasic thread safe

Hello Mathias,
Matthias W. wrote: is the PCANBasic API thread safe? Can the functions for reading/writing of messages be called from concurrent threads?
yes, it is. In the PCAN-Basic package you will find example code in different programming languages, that uses a thread to read messages.

Happy programming :)
by K.Wagner
Wed 4. May 2011, 12:37
Forum: PCAN-USB Pro
Topic: Weird problem [LIN Channels and .NET Framework]
Replies: 2
Views: 9179

Weird problem [LIN Channels and .NET Framework]

Hello everybody, if you are having problems using the LIN channels after a sucessful installation of the PCAN-USB Pro package, maybe these lines can help you to solve the problem. The LIN part of the device needs the .NET Framework 2.0 from Microsoft to work. This is part of the latest operating sys...
by K.Wagner
Tue 15. Mar 2011, 09:04
Forum: PLIN-View Pro
Topic: Create Schedule Table with PLin-API
Replies: 3
Views: 6516

Re: Create Schedule Table with PLin-API

Hello nuno, There is an error on the .NET declaration of the function SetSchedule. The Problem is the marshaling of the array that contains the schedule slots. For C#, please change this definition In the PLinApi.cs file: [DllImport("plinapi.dll", EntryPoint = "LIN_SetSchedule")] public static exter...
by K.Wagner
Mon 31. Jan 2011, 11:57
Forum: PCAN-View
Topic: Transmitting messages in required order
Replies: 16
Views: 38175

Re: Transmitting messages in required order

Hello Vlad, Once CAN_Write() returns PCAN_ERROR_QXMTFULL it never seam to flush the transmit buffer out and to return PCAN_ERROR_OK again. I see the PEAK USB interface continuously sending data in this state. The only way to get PEAK USB back to normal is to disconnect and connect the USB cable from...
by K.Wagner
Wed 19. Jan 2011, 13:17
Forum: PCAN-View
Topic: Transmitting messages in required order
Replies: 16
Views: 38175

Re: Transmitting messages in required order

Hello Vlad, the TPCANBaudrate type enumerates the most commonly used values. You can use custom values by passing a Bus-Timing-Register value as a " TPCANBaudrate " value. For example, 33.333 kBits would be: stsResult = PCANBasic.Initialize(PCANBasic.PCAN_USBBUS1, (TPCANBaudrate)0x1D14); Here a list...
by K.Wagner
Tue 18. Jan 2011, 13:12
Forum: PCAN-View
Topic: Transmitting messages in required order
Replies: 16
Views: 38175

Re: Transmitting messages in required order

Thank you for your reply. Both help files (PACN-Basic and PCAN-View) are on my local drive. Are you using Windows XP or Vista? If it is so, maybe you can find a solution for the CHM problem here: http://blogs.msdn.com/b/jonbox/archive/2007/07/06/why-doesn-t-this-chm-work-on-windows-vista.aspx I was...
by K.Wagner
Mon 17. Jan 2011, 08:59
Forum: PCAN-View
Topic: Transmitting messages in required order
Replies: 16
Views: 38175

Re: Transmitting messages in required order

I downloaded the PCAN Basic but I can’t read the documentation file PCANBasic_enu.chm. I see the table of context, but when I try to select a topic I only see “Navigation to the webpage was canceled” message. By the way, the PCAN-View Help is not working too. looks like you're trying to open the he...
by K.Wagner
Thu 13. Jan 2011, 11:20
Forum: PCAN-Basic
Topic: Using 2 USB Adaptors
Replies: 4
Views: 19675

Re: Using 2 USB Adaptors

Hi Peter, ...at the moment i use your interrupt callBack to read CANA ,do I have to set up a second callBack for CANB ... If you mean with "interrupt callback" the function "ReadMessages" from the PCAN-Basic samples, it is up to you if you do the new read works within the same function or in a new o...
by K.Wagner
Thu 13. Jan 2011, 09:28
Forum: PCAN-Basic
Topic: Using 2 USB Adaptors
Replies: 4
Views: 19675

Re: Using 2 USB Adaptors

Hello Peter, you are able to use up to 8 USB channels simultaneously within the same application using the PCAN-Basic. We don't have an example doing this, but basicly you just need to make the connection process you have written in your app twice, one for each adaptor (CAN-Bus): // PCAN-USB connect...
by K.Wagner
Wed 29. Sep 2010, 16:33
Forum: PCAN-Basic
Topic: Downgrade of PCAN-Basic sample projects
Replies: 0
Views: 2549

Downgrade of PCAN-Basic sample projects

The .NET and MFC sample projects were written using Visual Studio 2008 (VS). If some of you have to work with VS 2005, taking a look at this PDF may be helpful ;) .