1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
4<head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta http-equiv="Content-Style-Type" content="text/css" />
7    <link rel="stylesheet" href="../../css/manpage.css" type="text/css" />
8</head>
9<body>
10
11<h1>hio - HioDemoCTR Demo</h1>
12
13<h2>Description</h2>
14
15<div class="section">
16<p>This sample demonstrates the CTR system when communications are conducted between a CTR system and a host PC. <br />To run this demo, you also need  HioDemoPC or HioDemoPCCpp, which are the sample demos for the host (PC) side.
17</p>
18</div>
19
20<h2>Required Environment</h2>
21
22<div class="section">
23    <ul>
24<li>PARTNER-CTR HIO-Daemon must be installed beforehand. <BR>For the installation method, see CTR Development Environment Startup Guidelines.</li>
25    </ul>
26    <ul>
27<li>Visual Studio is required to build the demo (HioDemoPC or HioDemoPCCpp) on the PC.</li>
28    </ul>
29</div>
30
31<h2>How to Use</h2>
32
33<div class="section">
34<p>None.</p>
35</div>
36
37<h2>Notes</h2>
38
39<div class="section">
40    <ul>
41<li>hio is a development feature. Release builds of this demo do not run for this reason. </li>
42    </ul>
43    <ul>
44<li>PARTNER-CTR HIO-Daemon must be started before running this demo.<BR>The demo built from HioDemoPC or HioDemoPCCpp must also be started first.</li>
45    </ul>
46    <ul>
47<li>Do not use HTEST.EXE or TestHostIO.exe installed along with the PARTNER-CTR HIO-Daemon. <br />If used, HioDemo does not run normally and stops in mid-execution.</li>
48    </ul>
49</div>
50
51<h2>Execution Procedure</h2>
52
53<div class="section">
54<p>When the demo is executed, the following log is displayed in debug output.</p>
55
56<pre class="code">SetDeviceMemorySize.
57GetDeviceMemoryAddress.
58HostIO Library Initialize.
59HostIO Library Version: 9
60===== Environment Variable Sample =====
61GetEnvironmentVariable
62env CTRSDK_ROOT = GetCurrentDirectory
63current directory: D:\Dev\CTR\SampleDemos\hio\HioDemo\HioDemoCTR\images\
64CTR-TS.Process.MPCore.fast\Development
65SetCurrentDirectory
66current directory: d:\Dev\CTR\SampleDemos\hio\HioDemo\HioDemoCTR
67===== File IO Sample =====
68Create file 'd:\Dev\CTR\SampleDemos\hio\HioDemo\HioDemoCTR/sample.txt'.
69Write to file.
70data: 'Hello World!'
71-&gt; 13 bytes written.
72Seek to head.
73 -&gt; seek to 0x0000000000000000
74Read file.
75 -&gt; 13 bytes read.
76 -&gt; data: 'Hello World!'
77File rename
78    to: 'd:\Dev\CTR\SampleDemos\hio\HioDemo\HioDemoCTR/sample-rename.
79txt'
80  from: 'd:\Dev\CTR\SampleDemos\hio\HioDemo\HioDemoCTR/sample.txt'
81File delete ''
82Directory create 'd:\Dev\CTR\SampleDemos\hio\HioDemo\HioDemoCTR/
83sampledirectory'
84Directory delete 'd:\Dev\CTR\SampleDemos\hio\HioDemo\HioDemoCTR/
85sampledirectory'
86Open directory 'd:\Dev\CTR\SampleDemos\hio\HioDemo\HioDemoCTR'
87Directory Entries
88  filename: '.'
89    size:        0 bytes
90    attributes:  00000010
91    create:      2010-12-30(4) 02:09:53.682
92    last access: 2011-01-24(1) 01:32:53.369
93    last write:  2011-01-24(1) 01:32:53.377
94  filename: '..'
95    size:        0 bytes
96    attributes:  00000010
97    create:      2010-12-30(4) 02:09:53.682
98    last access: 2011-01-24(1) 01:32:53.369
99    last write:  2011-01-24(1) 01:32:53.377
100  filename: 'hiodemo_Main.cpp'
101    size:        16066 bytes
102    attributes:  00000020
103    create:      2010-12-28(2) 05:40:04.000
104    last access: 2010-12-28(2) 05:40:04.000
105    last write:  2010-12-28(2) 05:40:04.000
106  filename: 'HostIO.rsf'
107    size:        282 bytes
108    attributes:  00000020
109    create:      2010-12-28(2) 05:40:04.000
110    last access: 2010-12-28(2) 05:40:04.000
111    last write:  2010-12-28(2) 05:40:04.000
112  filename: 'images'
113    size:        0 bytes
114    attributes:  00000010
115    create:      2010-12-30(4) 02:13:45.067
116    last access: 2010-12-30(4) 02:13:47.095
117    last write:  2010-12-30(4) 02:13:47.095
118  filename: 'objects'
119    size:        0 bytes
120    attributes:  00000010
121    create:      2010-12-30(4) 02:13:44.739
122    last access: 2010-12-30(4) 02:13:47.157
123    last write:  2010-12-30(4) 02:13:47.157
124  filename: 'OMakefile'
125    size:        1401 bytes
126    attributes:  00000020
127    create:      2010-12-28(2) 05:40:04.000
128    last access: 2010-12-28(2) 05:40:04.000
129    last write:  2010-12-28(2) 05:40:04.000
130  filename: 'OMakefile.omc'
131    size:        1232 bytes
132    attributes:  00000020
133    create:      2010-12-30(4) 02:10:09.300
134    last access: 2010-12-30(4) 02:10:09.300
135    last write:  2010-12-30(4) 02:10:09.316
136===== Serial IO Sample =====
137start.
138open.
139connect.
140read size: 8
141read data: [Hello!!]
142write
143write size: 8
144disconnect.
145close.
146===== Shared Memory Sample =====
147shared memory size: 32699
148write data: 'Ping!!'
149read data: 'Pong!!'
150write data: 'Ping!!'
151HostIO Sample Finished.</pre>
152
153
154</div>
155
156<h2>Revision History</h2>
157
158<div class="section">
159    <dl class="history">
160        <dt>2011/02/02</dt>
161<dd>Initial version.</dd>
162    </dl>
163</div>
164
165
166<hr><p>CONFIDENTIAL</p></body>
167</html>
168