Download Toshiba Computer Module C2/C3 Windows NT Version User`s Manual

Transcript
2.7 Batch Input/Output
2.7 Batch Input/Output
This section describes operating principles of batch input and output in this support
software and useful information for creating application programs.
2
Mutex
Mutex
Input
File
入力ファ
イル
G3
G3
アプリApplication
ケーション1
1
G3 I/O
I/O
G3
Driver
ドライバ
I/O
I/O
イル
アプリ
ケーション2
2
Application
Output
File
出力ファ
Mutex
Mutex
Figure 2-3 Configuration of Batch Input/Output Software
2.7.1
Operating Principles
Batch input and output is accomplished by interaction among the I/O driver (g3iodrv.sys),
I/O service (g3iosrv.exe), function IobusSendData () and IobusRecvData.
Input and output data is the data that is produced when the input and output registers of
the I/O modules are in a continual state.
• Operation on Input Side
(1) The I/O service accesses each input module through the I/O driver and collects input
data.
(2) Data collected from each input register is stored in an input file as byte streams.
(3) The applications issue Function lobusRecvData.
(4) Exclusive processing (mutex secure) is performed inside the function to access an
input file.
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: [email protected]
6F8C0894
17