top bar
Development of an Experimental Wheelchair
Detailed Information of the Program



The program named 'WchairMes**.exe' (** is version number) is built by Microsoft Visual Basic 6.0 SP4 (VB6). Please read the other references if you need detailed information of the VB6.

Composition of the Files

The program consists of the following fimes mainly.

WchairMes**.vbp: Project file of the program.
WchairMes.frm: Form file of Main screen with a Do-Loop routine of the data sampling.
Calibration.frm: Form file of Calibration screen with a program for the approximate formula.
CalcScreen.frm: Form file of Calculated result screen.
FileOption.frm: Form file of File option screen for data saving.
DataView.frm: Form file of Data view screen for data reading.
CardSet.frm: Form file of CONTEC hardware setting screen.
TxtScreen.frm: Form file of Text indicated screen.
WchairMes.bas: Module file of the program including definitions, sub-routines and information of CONTEC hardwares.
WchairMes.ini: Initial file for the data save and measuring conditions.
WchairMes.clb: Calibration file including the latest calibrated result.


Main Sub-Routines

This program includes many sub-routines. Main sub-routines are shown in follows. The sub routines include Japanese characters as remarks yet.

Setting for A/D converter (Aio_Open, Aio_Close): Open, initial set or close the A/D converter of CONTEC.
Setting for DIO board (Dio_Open, Dio_Close): Open, initial set or close the DIO board of CONTEC.
Read/Write Initial file (Load_InitialFile, Save_InitialFile): Read or write the initial file.
Read/Write Calibration file (Load_CalibrationFile, Save_CalibrationFile): Read or write the calibration file.
Draw the graph of the calibration (Draw_CalibrationGraph): Draw the graph on the Calibration screen.
Setting of measuring condition (Set_Measuring_Condition): Set sampling frequency and sampling number indicated in the main screen.
Calculation of encoder pulse (Calc_Encoder): Convert the 12 bits of signal of the rotary encoder to integer.
Calculation No. 1 (Calc1): Calculate the speed, the locus, the power and other technical results from all measuring data.
Calculation No. 2 (Calc2): Pick up the data of one stroke. Then calculate the speed, the locus, the power and other technical results at one stroke.
Draw the graph No. 1 (Draw_Graph1): Drawing the graphs in the Main screen.
Draw the graph No. 2 (Draw_Graph2): Drawing the graphs in the Calculated result screen.
Soft Timer (SoftTimer): This timer is used the function named 'timeGetTime()' of MS-Windows. (The sub-routine is made with a cooperation of SYSTEC Co., Ltd.)
Setting of the data file name (Set_FileName): Read the contents at the File option screen and set the saved file names.
Setting of the data file name (renew) (Set_FileName_Plus): The saved file names are renewed (plus one).
Initial set for data saving (Save_Data_Man_Start): Initial set for saving file names of the 'Manual Save'.
Write the data file (Save_Data): Two types of data files (***_dat.csv, ***_csv.csv) is saved.
Read the data file (Load_Data): Read the data file which is decided at the Data view screen.
Indication of the result No. 1 (View_Data1): Indicate the calculated results at the Main screen.
Indication of the result No. 2 (View_Data2): Indicate the calculated results at the Calculated results screen.


Flowchart to Start the Program

The measuring program is not general purposed, because it uses specific hardwares like A/D converter and DIO board. In order to run the program, your PC needs to set up as the follows. Please note that the author, related persons and our organization are not blamed for any troubles and damages. You should use always the program with your responsibility.

1. Download the 'Analog Input/Output Function Library, API-PAC(W32)' and 'Digital Input/Output Function Library, API-PAC(W32)' at the CONTEC Co., Ltd. Home Page. Then set up them. (Sorry, I have not known if you can download the libraries in English yet.)
2-1. If you have Microsoft Visual Basic 6.0 SP4 (VB6), download a set of the executive file of the program, and decode it with an unzip application.
2-2. If you do not have VB6, download a set of Setup file of the program, and decode it with an unzip application. Then execute 'setup.exe'. (Sorry, I have not prepared the set of Setup file in English.)
3. Make a directory named 'Data' under the directory of the executive file of the measuring program.
4. Download the sample data if you need. And decode it in the 'Data' directory.
5. Run the measuring program 'WchairMes**.exe'. You can look the sample data with 'Data view' command, if your PC does not have the A/D converter and DIO board.


Download of the Program

Download of the Wheelchair Data Measuring Program Ver.1.0 (WchairMes10.exe)
The program including the source files is offered with free for educational or research institutions. Please note that the program has been developing yet. The source programs include Japanese characters as remarks. Also 'readme.txt" file is written in Japanese yet.

Setup program with the executive file and source files (1.46MB, ZIP)
Executive file and source files (93kB, ZIP)
Sample data on December, 2000 (107kB, ZIP)


[ Wheelchair Measuring System ]
[ Barrier-free HOME ] [ NMRI HOME ]
Contact: Koichi Hirata (khirata@nmri.go.jp)