Git Product home page Git Product logo

parport_cenir's Introduction

Parallel port source code written in C for MATLAB/Octave in Linux. To be compiled in mex.

Purpose

When compiled (see below), this program ppmex allows you to send messages through the parallel port (DB25) on a Linux system, via MATLAB or Octave.

Test if you can compile MEX files

In helloworld-test-compile-mex subdir, you will find helloworldMEX.c.
When, in MATLAB/Octave, you are in this folder, enter mex -O helloworldMEX.c.
If the compilation is complet, you should have a new file such as helloworldMEX.mex*

Compilation

When you have tested the compilation process (see above), simply type mex -O -v ppmex.c in the root dir.
The warning about the line #21 extern int pport = 0; is nothing to worry about.
When completed, a file ppmex.mex* should have been created.

Usage

ppmex('open')          : opens  the device, and get it ready to send messages  
ppmex('write',message) : sends  the message = {0, 1, 2, ..., 255} uint8  
ppmex('close')         : closes the device  

parport_cenir's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.