Internal Scripting Examples 3
The context is:
$ROICIIndex contains index of ROI sampling point
$ROICIIndexMin = 1
$ROICIIndexMax = 7
$ROICIIndexMin <= $ROICIIndex <= $ROICIIndexMax
This examples show how to format values to be returned as string:
Block(
Set("index";$ROICIIndex);
Print(FormatString("%0.2f;%0.2f;%0.2f"; x(M3!Velocity)*$index; y(M3!Velocity); z(M3!Velocity)))
)
The function 'Print' outputs the following information from the FormatString:
1.#R;1.#R;1.#R
1.#R;1.#R;1.#R
-26.42;4.14;-0.00
0.84;-0.24;-0.00
1.#R;1.#R;1.#R
1.#R;1.#R;1.#R
-73.32;3.85;-0.00
1.#R;1.#R;1.#R