TURKISH

 

 

     Nusrettin Gulec

 

 

 

 

     Links:

 

·      Sabanci University

 

·      Faculty of Engineering

          and Natural Sciences

 

·      Mechatronics Program

 

·      Private Turkish College

 

·      Zargan Turkish Glossaries

 

·      Cambridge Dictionaries

 

·      NeHe OpenGL Pages

 

    

      Nusret’s Archive:

 

·      Master Thesis

 

·      Simulation Videos

 

·      Experiment Videos

 

·      Parallel Port in WinXP

 

Parallel Port from C++

 

·      OpenCV Installation

 

·      OpenCV Template Code

 

 

 

Last Updated on:

 

02.12.2005

 

Main

Education

Projects

Publications

CV

 

 

 

 

Nusrettin GULEC

 

Ph.D. Candidate & Research Assistant

Sabanci University Mechatronics Program

 

E-mail:

nusrettin@su.sabanciuniv.edu

 

Mailing

Address:

Faculty of Engineering and Natural Sciences, Orhanli – Tuzla, 34956,

Istanbul – TURKEY

 

Office:

Lab:

Mobile:

+90 (216) 483 90 00 (2323)

+90 (216) 483 95 65

+90 (533) 252 44 29

 

Pbx:

+90 (216) 483 95 50

 

 

         Parallel Port from C++

 

In C++, the following code declares and writes a specifed value to the parallel port's data register. Note that you should first activate your parallel port to use this code, if your operating system is Windows XP.

 

The value of the variable parout can be changed by any control algorithm between lines 2 and 3.

 

 int _outp(unsigned short port, int databyte);

 

 int parout=0;

 

 _outp(0x378,parout);