CANBasic API

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
thorpey01
Posts: 8
Joined: Fri 26. Feb 2016, 10:55

CANBasic API

Post by thorpey01 » Thu 17. Mar 2016, 15:37

Hi, I'm trying to use the CANBasic API for Python. I have downloaded the API folder for linux .. in the folder is a PCANBasic.h file which is a C file.. and the libpcanbasic.so as well as the examples folder (containing python folder, which includes PCANBAsic.py, PCANBasic.pyc and PCANBasicExample.pyw) .. and PCANBasic folder.
I do a make all on the project to install the PCANBasic Api first..
I am having trouble installing the API into my Python IDE (Pycharm). I have a python file readwrite.py in my project under a folder called src.

project----src----readwrite.py

I do an import PCANBasic in my python script to call the API
however I cannot seem to make pycharm import the PCANBasic API.. I have tried importing the PCANBasic.py script into the same level as the readwrite.py

project ----src-----readwrite.py, PCANBasic.py

I have no idea how to import this API so that I can start using its functions.. I've tried searching google for Pycharm rated library import subjects.. but it would be helpful if I knew which file in the PCANBasic Api i need to point to to use the import function in python..

please could anyone help with this?

best regards,
Nicholas

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: CANBasic API

Post by PEAK-Support » Fri 18. Mar 2016, 15:37

Please ask in the pycharm community. We could not support all available IDE for every programming language.
Our Python sample work fine and is tested (using CharDev Driver and PCAN-Basic LIB)
Best is you first try out if our sample work fine on your system -then you know it´s a IDE problem.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply