Giter Club home page Giter Club logo

pysimcan's Introduction

#PySimCan

Python extension for CrossControl CCSimTech SimCan API.

Requirement

  • Python 2.7.x (32bit)
  • CrossControl SimTech 2.10.x
  • To compile you have to have VC++ 2008 express.

Usage

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.

Compiling

To compile, you need the following files from CrossControl SimTech SDK.

In Headers folder:

  • SimCan.h
  • simcan_public.h
  • simcanerrorcodes.h

In Libs folder:

  • simcan.c

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.

pysimcan's People

Contributors

zheli avatar

Watchers

 avatar  avatar  avatar

Forkers

itsanjan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.