# Document for HASC Tool User

* Sorry this document contains old information. Please refer readme_ja.html for the newest information if you can read Japanese.

HASC Tool is activity information processing tool developed by HASC (Human Activity Sensing Consortium).

You can collect, analyze, use and evaluate your activity data by using this tool. Now, HASC Tool is under development.

The readme document on the directory top may be old. Follow the readme.html link on Menu: Help > Welcome page for the latest document.

If you would like to get latest information about HASC Tool, please refer to following page: http://hasc.jp/

## How to Execute HASC Tool

- On Windows version, you can execute HASC Tool by hasctool/HascTool.exe. On Mac version, you can execute HASC Tool by hasctool/HascTool.app.
- On the first time, HASC Tool ask you the place of your workspace. Please decide it. Workspace is the directory which saves your projects and setting information.
- Please open welcome page and refer to guidance in this page. If you select following tab, welcome page is opened. (Menu: Help > Welcome)
  You should import sample project in this tool.

## Text Editor with Wave View

- To edit a label file(*.label) or csv file　visually, please push "Wave" or "Wave&Labels" tab in a file.
- Sensor X axis：blue，Sensor Y axis：red，Sensor Z axis：green
- If you push the button(+t, -t, +v, -v) on wave view, a range to display is changed.
- If you push rt button on wave view, the start time of measurement become 0.0 sec.
- If you push ?r button on wave view, you can get activity data within the time range which you select.
- If you push +L button on wave view, the selected time range is written to the label file.
- To create label file, please operate it as follows.
  Project Explorer > csv file > context menu > choose "the new making of the label file"

## HASC Logger Server

- HASC Logger Server receive log file from iPhone's HASC Logger application.
- To execute HASC Logger Server, please select the directory which store log file and push (H) button.
- To set up HASC Logger Server, please decide the port number to bind. If you use Mac PC, the port number should be bigger than 1025.
- To set up HASC Logger, please push "iPhone's Settings > HascLogger" tab and set up Server URL. When you set up "Server URL", please refer to following format.
  Server URL Format: http://(PC IP Address):(port number)/
- When you upload your log file from iPhone's HASC Logger, you can find your log file on HASC Tool.
- To terminate HASC Logger Server, please push (H) button again.

## HASCXBD File (Block Diagram)

- HASCXBD file is block diagram. You can create block diagram by connecting some blocks which you create. By using HASCXBD File, you can do various data processing.
- To execute HASCXBD file, please select ExecBD button on tool bar.
- To terminate HASCXBD file, please select StopBD button on tool bar.

### Block Diagram Editor

- Now, there is not wizard which make a new HASCXBD file. To make a new HASCXBD file, please copy an existing HASCXBD file.
- When you open a HASCXBD file, block editor execute.
- To edit a block diagram with viewer, please select GraphEdit tab on the HASCXBD file.

- If you push +B button, a new block is created. Please select the class which the block refer to.
- You should rename the block, please input the name of block at Name element in Properties. The name of each block have to be unique.
- To create a new connection, please operate it as follows. While pushing Ctrl(control key), please select input block and output block. After that, please push +C button.
- If you push Del button, the selected block is deleted.
- To edit file information such as comment, please push Inf button.
- By selecting the block, you can setup block property (only String and primitive type).
- After you edit the block diagram, please push "Ctrl" and "S" buttons and save it. After that, please execute it.
- To Undo/Redo, please select "HascXBD tab".

- Time unit is microseconds. If value is 1 second, you should input 1000000.
- The output port of each block can be connected with some blocks.
- The input port of each block can be connected with only one block. If the block has some input port such as VectorConcatinator, you should setup the number of input port at inputPortCount property. After that, please input connection the following information about input port such as inputPort[0],inputPort[1],….

### HASCXBD File Format

- <model.BeanBlock> : This tag expresses the block.

- <name> : This tag expresses the name of block.
- <class> : This tag expresses the instance of java class.

- The class needs to refer from JavaBeans which mount jp.hasc.hasctool.runtime.RuntimeBean.

- <properties> : This tag set your input data to the class.

- <entry> : On this tag, first element "<string>" is property name, second element is value.

- <model.Connection> : This tag connect input port <input> and output port <output>.

- blockName: The name of block <name>
- portName: The name of port property

### Block Class List

- By double clicking the item in the Block Class List view, you can add a block to the active block diagram editor.
- You can show the Block Class List view by selecting the menu item: Window > Show View > Block Class List.

## HASC Tool Bug List

- Now, there is not wizard which make a new HASCXBD file. To make a new HASCXBD file, please copy an existing HASCXBD file.
- Now, You can not save your block layout. When you open the HASCXBD file again, block layout is reset.
- In wave view of LabelEditor, if both of label edge are not within the range of window, you can not find this label in the window.
- When you open a file on Project Explorer, there is a possibility to open it by another editor. In this case, please right click it and select "Open With" tab and select editor.
- If you edit some files on the outside, you should refresh Project Explorer.
- Sometimes, the problem not changing from the state of Refreshing workspace is happened.

- In this case, you should push StopBD button.

## How to Confirm Version Information

- Please select following tab.
  Menu: Help > About HascTool > Installation Details > Plug-ins
- Please search the row "Privider:hasc.jp, Plug-in Name:HascTool" and you can find HASC Tool version information.