Creating a Variable Using a FAST-TCF Script
Creating a variable using a FAST-TCF script
Rather than using the window to create and define a variable it is also possible for a FAST-TCF script to create and define variables. You can create a variable in FAST-TCF from one of the following curve results. (See the FAST-TCF section of the T/HIS manual for more details)
| Property output | keyword |
| Minimum x | minx |
| Maximum x | maxx |
| Minimum y | min |
| X at minimum y | xatmin |
| Y at minimum x | yatmin |
| Minimum y in window t1 t2 | minw |
| X at minimum y in window t1 t2 | xminw |
| Maximum y | max |
| X at maximum y | xatmax |
| Y at maximum x | yatmax |
| Maximum y in window t1 t2 | maxw |
| X at maximum y in window t1 t2 | xmaxw |
| Average in window t1 t2 | ave |
| Hic | hic |
| Hicd | hicd |
| 3ms | 3ms |
| Y at X | yatx |
| X when Y is passed after gate time | xygate |
| X at first non-zero Y | xnonz |
| X at last non-zero Y | xfail |
| Y value at last non-zero Y | yfail |
| TTI | tti |
The values for these results need to have already been calculated in the script before you use them to create a variable. The syntax to create a variable takes one of these two forms:
var <NAME> <curve> <result> <description>
or
var <NAME> <curve> <result>
- <NAME> - will become the variable name
- <curve> - is the curve tag or number
- <result> - is the result type (min,max,ave,hic,hicd,3ms)
- <description> - will become the variable description
REPORTER will set the value of the variable to be the value of the result type for the specified curve. Here are a couple of examples
|
FAST-TCF data
|
REPORTER data
|
||||
| FAST-TCF script |
Curve No.
|
Value of the result (Result Type)
|
Variable Name
|
Description
|
Value
|
| var DEFORM 1 ave |
1
|
20 (ave)
|
DEFORM
|
(none)
|
20
|
| var SPEED 2 max Impact Speed |
2
|
1000 (max)
|
SPEED
|
Impact speed
|
1000
|
The variable defined in REPORTER will be marked as temporary.