05.07.2013 Views

BSA Flow Software Installation and User's Guide - CSI

BSA Flow Software Installation and User's Guide - CSI

BSA Flow Software Installation and User's Guide - CSI

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Header structure<br />

Name Conversions<br />

For each data set a header structure is send to MATLAB ® . This structure can<br />

be used to get information about project <strong>and</strong> data set values. The header<br />

structure BFInput consists of 6 parts: four strings <strong>and</strong> 2 numeric arrays.<br />

BFInput =<br />

Project_Name: 'my project'<br />

Project_Path: ‘c:\ my project.lda’<br />

User_Name: 'user'<br />

User_Init: 'ini'<br />

Page_Pos: [5x1 double]<br />

Date_Time: [6x1 double]<br />

Variable name Type Description<br />

“Project_Name” string Name of the project<br />

“Project_Path” string Full path to the project file<br />

“User_Name” string Name of the user<br />

“User_Init” string Initials of the user<br />

“Page_Pos” array of 5 doubles<br />

(1) double Current positions (page number)<br />

(2) double Maximum number of positions<br />

(max. pages)<br />

(3) double Traverse X position<br />

(4) double Traverse Y position<br />

(5) double Traverse Z position<br />

“Date_Time” array of 6 doubles<br />

(1) double Year (current year)<br />

(2) double Month (1–12; January = 1)<br />

(3) double Day of month (1–31)<br />

(4) double Hours since midnight (0–23)<br />

(5) double Minutes after hour (0–59)<br />

(6) double Seconds after minute (0–59)<br />

The data fields can be accessed <strong>and</strong> used in MATLAB by typing e.g.<br />

“BFInput.Project_Name” for the name of the project or for the array values<br />

e.g. BFInput.Date_Time(0) for the year data field.<br />

Because MATLAB does not allow all characters to be used in a variable<br />

name, names from <strong>BSA</strong> <strong>Flow</strong> <strong>Software</strong> are converted into a legal MATLAB<br />

variable name.<br />

Underscores are used as the preferred delimiter. The following characters are<br />

converted<br />

Converted Converted<br />

6-80 <strong>BSA</strong> <strong>Flow</strong> <strong>Software</strong>: Options <strong>and</strong> Add-ons

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!