PEAK USB CAN Dongle driver for LabVIEW

VISA; TCP/IP, CAN and similar protocols
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

PEAK USB CAN Dongle driver for LabVIEW

Сообщение Eugen Graf »

Here are VIs to Init, Read, Write and Close PEAK USB CAN Dongle.

To use these VIs PEAK driver should be installed and PCAN_USB.DLL should be present in System32 folder.
BigBoy
interested
interested
Сообщения: 3
Зарегистрирован: 07 авг 2008, 15:11
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение BigBoy »

Summary:-

I have installed PCAN lite and have full communication with the CAN device.

The Hex addresses that we are seeing movement on and are interested in are 150H and 320H.

The red LED on the dongle flashes 'quickly'.

I have then reproduced the sample.vi driver program using Labview 7.1 (saved to 7.0).

I have installed pcan_usb.dll.

When the sample.vi is running the red led on the dongle flashes 'slowly'

I have tried various settings etc within the sample.vi and I cannot recieve any data (as per pcan lite) other than the following:-

The read.vi gives error 8 when recieving ID0 and no data.

The read .vi gives error 32 when recieving ID1 but gives 4bits of data (0, 0, 0, 8).

No other ID's or bits of data are recieved appear.

Any help would appreciated.
BigBoy
interested
interested
Сообщения: 3
Зарегистрирован: 07 авг 2008, 15:11
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение BigBoy »

I only have access to Labview 7.0 and 7.1

Unfortunately 'eg's drivers are in Labview 8.0.

Can anyone help by saving them to previous version (7.1) so that I can try them.

Thanks for any help given
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение Eugen Graf »

So Pcan_Full doesn't work correctly, but if you use Pcan_Lite it works?
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение Eugen Graf »

BigBoy писал(а):I only have access to Labview 7.0 and 7.1

Unfortunately 'eg's drivers are in Labview 8.0.

Can anyone help by saving them to previous version (7.1) so that I can try them.

Thanks for any help given

Here you can download my drivers for 7.1
Вложения
PCAN_LV71.zip
(77.17 КБ) 1355 скачиваний
BigBoy
interested
interested
Сообщения: 3
Зарегистрирован: 07 авг 2008, 15:11
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение BigBoy »

I am sorry but I have been busy (see below) and so missed your post.

I have managed to get the PCAN usb drivers as supplied by the company to work.

It was an error caused by me (surprise-surprise) in my top level vi that was the problem.

I have since downloaded your drivers, they also work very well.

Thanks a lot for all your assistance
c-m
interested
interested
Сообщения: 1
Зарегистрирован: 17 мар 2009, 17:18
Версия LabVIEW: 8.2
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение c-m »

Good afternoon.
I am currently trying to communicate via CAN, PCAN through.
However I am not able to connect.
PCANexplorer call through the network and is waiting for messages. However I can not do with LabVIEW
I tried to book pcan but nothing done
Could help me?
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение Eugen Graf »

Hi, do you have this tool from PEAK?
Вложения
PCAN_USB.png
guinness
interested
interested
Сообщения: 3
Зарегистрирован: 12 июн 2009, 12:58
Версия LabVIEW: 8
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение guinness »

Hello,

I am using the PCAN vi that you supplied( thanks very much). i wish to control a device that uses a peak usb attachment.
i have attached the pcan view for usb.
from what i can make 15E triggers a read function ( the function i wish to create in labview) the 226 to 262 are initialisation
i wish to be able to initialise the device and read through labview and i am uncertain what i require to do to the vi in order to achieve it. or what changes i need to make as well,

any input would be great

thanks guys,
Brian
Вложения
pcanscreenshot.JPG
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение Eugen Graf »

Hi Brian, did you try my example VI where you will get started with use of the driver I made.
Вложения
PCAN_Terminal.vi
(22.5 КБ) 834 скачивания
PCAN_Example.png
guinness
interested
interested
Сообщения: 3
Зарегистрирован: 12 июн 2009, 12:58
Версия LabVIEW: 8
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение guinness »

The subVI is not executable. You must fix all errors in the subVI before this VI can run.
i get this error for both PCAN_READ and PCAN_WRITE
i am running 8.6
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение Eugen Graf »

Download this, and start the Terminal Example. Which errors you get? Why is it not executable?
Вложения
PCAN_LV_8_0.zip
(75.5 КБ) 1130 скачиваний
guinness
interested
interested
Сообщения: 3
Зарегистрирован: 12 июн 2009, 12:58
Версия LabVIEW: 8
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение guinness »

cheers for that i am gettin communication from my device now,
not exactly what i was expecting but i think it s more an issue on my side,
thanks a mill for the vi etc!
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение Eugen Graf »

Ok, no prob :wink:
If you get more questions, you can open a new thread in forum, but I think it will be easy for you now to adapt the example terminal VI for our issue.

Salut, eg
nguyenthanhtruc
interested
interested
Сообщения: 3
Зарегистрирован: 07 фев 2012, 07:34
Версия LabVIEW: 2011
Контактная информация:

Re: PEAK USB CAN Dongle driver for LabVIEW

Сообщение nguyenthanhtruc »

Could you please upload file PCAN_USB.DLL? I don't see it here.
I need it for my project.
Thanks alot
Ответить
  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Communcation with devices»