chapter 9 5
Download
Skip this Video
Download Presentation
Chapter 9.5

Loading in 2 Seconds...

play fullscreen
1 / 8

Chapter 9.5 - PowerPoint PPT Presentation


  • 88 Views
  • Uploaded on

Chapter 9.5. I/O Communication. ComPort Library v2.64. ComPort Library v2.64 is a free RS-232 VCL component for C++ Builder by Dejan Crnila. http://sourceforge.net/projects/comport/. ComPort Installation Note. Download CPort264.zip from ftp://bit.kuas.edu.tw/pub/lang/CPort264.zip

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Chapter 9.5' - ghita


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
chapter 9 5

Chapter 9.5

I/O Communication

Windows Programming, C.-S. Shieh, KUAS EC, 2005

comport library v2 64
ComPort Library v2.64
  • ComPort Library v2.64 is a free RS-232 VCL component for C++ Builder by Dejan Crnila.
  • http://sourceforge.net/projects/comport/

Windows Programming, C.-S. Shieh, KUAS EC, 2005

comport installation note
ComPort Installation Note
  • Download CPort264.zip from ftp://bit.kuas.edu.tw/pub/lang/CPort264.zip

Unzip CPort264.zip to a temporary directory

  • VCL Component Installation

1. Unzip Sources.zip to C:\Program Files\Borland\CBuilder5\ComPort

2. Open, compile, close, and save C:\Program Files\Borland\CBuilder5\ComPort\CPortLibCB5.bpk

3. Open, compile, close, and save C:\Program Files\Borland\CBuilder5\ComPort\DsgnCPortCB5.bpk

4. Component->Install Packages->Add->C:\Program Files\Borland\CBuilder5\Projects\Bpl\DsgnCPortCB5.bpl

5. Add $(BCB)\ComPort to include path (Project->Options- >Directories/Conditionals->Include path)

Windows Programming, C.-S. Shieh, KUAS EC, 2005

comport installation note cont
ComPort Installation Note (cont)
  • Help File Installation

1. Unzip Help.zip to C:\Program Files\Borland\CBuilder5\ComPort

2. Help->Customize->Contents->Add Files->C:\Program Files\Borland\CBuilder5\ComPort\CPort.toc

3. Help->Customize->Index->Add Files->C:\Program Files\Borland\CBuilder5\ComPort\CPort.hlp

4. Help->Customize->Link->Add Files->C:\Program Files\Borland\CBuilder5\ComPort\CPort.hlp

5. Help->Customize->Project->Add Files->C:\Program Files\Borland\CBuilder5\ComPort\CPort.cnt

6. Help->Customize->Save Project

  • Bug

Q. There will be two "Multiple declaration" errors on the first time of compilation.

A. Comment these two functions with errors and save to prevent these errors occur again.

Windows Programming, C.-S. Shieh, KUAS EC, 2005

tcomport
TComPort
  • Properties
    • BaudRate, Port
  • Methods
    • Open(), Close(), Write(), Read()
  • Events
    • OnRxChar

Windows Programming, C.-S. Shieh, KUAS EC, 2005

slide6
char buffer[256];
  • … buffer[0]=23;
  • … buffer[1]=‘A’;
  • ComPort1->Write(buffer,23);

Windows Programming, C.-S. Shieh, KUAS EC, 2005

tms instrumentation workshop v1 3
TMS Instrumentation Workshop v1.3
  • TMS Instrumentation Workshop v1.3 for C++ Builder contains over 80 VCL components for Instrumentation and Multimedia application development.
  • http://www.tmssoftware.com

Windows Programming, C.-S. Shieh, KUAS EC, 2005

tmsiw installation note
TMSIW Installation Note
  • Download TIWC5.ZIP from ftp://bit.kuas.edu.tw/pub/lang/CBuilder/VCL/TIWC5.ZIP
  • Unzip TIWC5.ZIP to C:\Program Files\Borland\CBuilder5\TMSIW
  • Open, install, save, and close C:\Program Files\Borland\CBuilder5\TMSIW\Vcwb5.bpk
  • Customize the online help.

Windows Programming, C.-S. Shieh, KUAS EC, 2005

ad