MPORT

This is a MEX-file for MATLAB enabling to perform input and output CPU instructions (input/output port access) within Matlab running on Windows OS. Thanks to this you can access for example parallel (LPT) port and control your hardware.

Description

MATLAB call examples:
   mport('state')
   mport('inpout')
   mport('winring0')
   mport('out', address, dataout)
   [data] = mport('in', address)
   [data] = mport('in', address, count)
   [data] = mport('inout', address, dataout)
   mport('out16', address, dataout)
   ...

Files - ZIP archive mport121.zip with this contents:

readme.txt                    this file
MPORT\mport.dll               compiled MEX file
MPORT\test.m                  test & example m-file
MPORT\Verbose\mport.dll       MEX file compiled with
                              verbose mode option
pictures\screen1.bmp          oscilloscope traces for
                              mport('out', 888, [0 255 0..]
                              (Mobile AMD Sempron 1.8 GHz)
                              (3 us per one call)
                              note Windows XP process
                              breaking on main timebase
pictures\screen2.bmp          oscilloscope traces for
                              mport('out', 888, 0)
                              mport('out', 888, 255)
                              in a simple for cycle
                              (Mobile AMD Sempron 1.8 GHz)
                              (8 us per one call)
logix4u\inpout32.dll          Logix4U kernel driver
                              (32bit system)
highrez\inpout32.dll          Highresolution Enterprises
                              kernel driver
                              (32 bit and 64 bit system)
highrez\InstallDriver.exe     install Highresolution
                              Enterprises low level
                              driver to system
openlibsys\WinRing0.dll       OpenLibSys dll's and kernel
openlibsys\WinRing0x64.dll    drivers
openlibsys\WinRing0.sys
openlibsys\WinRing0x64.sys
openlibsys\WinRing0.vxd

Download & History

Version 1.21 - 06/03/2009 mport121.zip (50)

  • verbose version of MPORT.DLL added (for debug purposes)
  • additional 16 and 32 bit in/out commands

Version 1.20 - 15/12/2008

  • added input/output data streaming command (command 'inout')

Version 1.10 - 18/03/2007

  • corrections to static variables & FreeLibrary()

Version 1.01 - 13/07/2006

  • first release

Feedback

The useful remarks are welcomed… matejka@feld.cvut.cz


Last edited by mates 2009/03/07 13:14

root/en/projects/mport.txt · Last modified: 2009/07/01 22:02 by mates
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0