The following methods can be used to evaluate measure Templex expressions in HyperView:
To evaluate measure expressions using the TCL console:
hwi GetSessionHandle sess sess GetProjectHandle proj proj GetTemplexHandle tmplx tmplx Evaluate <expression> false
|
To evaluate measure expressions using notes:
|
To evaluate measure expressions using TextView:
|
The expression below will return the default x vector for the measure item specified by item_index. "p" <page_id> "w" <window_id> "measure" <measure_id> . item_index . x_option . y_option . "x" For example, p1w1measure3.7.0.3.x will return the x vector (time in this case) for item 7 in measure group 3. Where: Page ID = 1 Window ID = 1 Measure ID = 3 Item Index = 7 X Option = 0 (Default) Y Option = 3 (Magnitude for a Distance Between measure, for example) In addition, the expression below will return the y vector specified by y_option for the measure item specified by item_index. "p" <page_id> "w" <window_id> "measure" <measure_id> . item_index . x_option . y_option . "y" For example, p1w1measure3.7.0.3.y will return the magnitude values for item 7 in measure group 3, across all time steps. Where: Page ID = 1 Window ID = 1 Measure ID = 3 Item Index = 7 X Option = 0 (Default) Y Option = 3 (Magnitude for a Distance Between measure, for example)
|
The expression below will return the x vector specified by x_option for all of the items in a measure group. "p" <page_id> "w" <window_id> "measure" <measure_id> . "all" . x_option . y_option . "x" For example, p1w1measure3.all.2.3.x will return the Y coordinate values of all items in measure group 3, at a particular time step. Where: Page ID = 1 Window ID = 1 Measure ID = 3 X Option = 2 (Y Coordinate) Y Option = 3 (Magnitude) In addition, the expression below will return the y vector specified by y_option for all of the items in a measure group. "p" <page_id> "w" <window_id> "measure" <measure_id> . "all" . x_option . y_option . "y" For example, p1w1measure3.all.2.3.y will return the magnitude values of all items in measure group 3, at a particular time step. Where: Page ID = 1 Window ID = 1 Measure ID = 3 X Option = 2 (Y Coordinate) Y Option = 3 (Magnitude)
|
The expression below will return all values for measure item specified by item_idx, at a particular timestep.
"p" <page_id> "w" <window_id> "measure" <measure_id> . item_idx . "vals"
For example, p1w1measure3.2.vals will return all values (for example: X, Y, Z and Magnitude for a Distance Between measure or X, Y, Z for Position measures) for measure item 2 in measure group 3.
Where:
Page ID = 1
Window ID = 1
Measure ID = 3
Item Index = 2
The expression below will return the least value (minimum) across all time steps and measure items, for the given x and y options. "p" <page_id> "w" <window_id> "measure" <measure_id> . x_option_idx . y_option_idx . "min" |
The expression below will return the greatest value (maximum) across all time steps and measure items, for the given x and y options. "p" <page_id> "w" <window_id> "measure" <measure_id> . x_option_idx . y_option_idx . "max" |
The expression below will return the greatest absolute value (extreme) across all time steps and measure items, for the given x and y options. "p" <page_id> "w" <window_id> "measure" <measure_id> . x_option_idx . y_option_idx . "extreme" For example, p1w1measure3.0.3.min will return the least value of magnitude across all measure items and time steps, the time/frequency at which this value is attained, and the time step/frame at which this value is attained. Similarly max will return the largest value, and extreme will return the largest absolute value. Where: Page ID = 1 Window ID = 1 Measure Group = 3 X Option = 0 Y Option = 3 |
The following expression can be used to return all of the IDs in the measure group specified by measure_id: "p" <page_id> "w" <window_id> "measure" <measure_id> . "ids" For example, p1w1measure3.ids would be used to return the IDs of all measure items in measure group 3. Where: Page ID = 1 Window ID = 1 Measure Group = 3 |
The following expression can be used to return the label for the measure group specified by measure_id: "p" <page_id> "w" <window_id> "measure" <measure_id> . "label" For example, p1w1measure3.label would be used to return the label for measure group 3. Where: Page ID = 1 Window ID = 1 Measure Group = 3 |
The tables below contain the expressions for the measure options currently available in HyperView:
|
|
|
|
|
Any invalid expression will return “N/A”.
See also