Python extension for CrossControl CCSimTech SimCan API.
- Python 2.7.x (32bit)
- CrossControl SimTech 2.10.x
- To compile you have to have VC++ 2008 express.
Put the file SimCan.pyd into the DLLs folder in your Python installation
You can try the following commands
>>>from SimCan import * >>>handle=can_open("CAN1") >>>result=can_recevie(handle, ) >>>can_close(handle)
You can also set filters for can_receive(), for example:
>>>result = can_receive(handle, [1, 0x7d0])
and it will only capture the data sent to CAN ID 0x7d0.
To compile, you need the following files from CrossControl SimTech SDK.
In Headers folder:
In Libs folder:
The easiest way to start is to put the source code in where your Python 2.x source code is, on the same level with Include and PCbuild. Then you don't have to change any path in the project settings.
Copyright and license
Copyright 2013 Zhe Li under the LGPL-3.0 license.