|
Declaration Statements - INTERACTION
The INTERACTION statement is used to define up to 50 interaction variables. The name of the format type must follow the word INTERACTION, be enclosed in parentheses and be preceded and followed by a space. The name it will have when it appears in the interaction area of the screen follows, enclosed in quotation marks. Finally, its internal name in the Post Processor Program File and an initial default value are stated, followed by a semi-colon.
Example:
INTERACTION (Coordinates) "ENTER_DELTA_Z" DZ = 10.0;
When the internal post process (POST) is run, ENTER_DELTA_Z = 10.000; will be one of the modal variables. It may be changed or left as it is. The variable DZ may appear later in the Post Processor Program File at which time its value may be changed again. The value it is assigned in the internal post process (POST) will become the new default. The format of this variable is whatever was defined for Coordinates in the DFPOST questions.
Notes:
-
Interaction variables of the "Coordinates" format are multiplied by the units factor.
-
The maximum number of characters in the interacting modals during the POST is 32. Therefore the string between the " " is limited according to the format of the interaction variable:
REAL: |
MAX STRING = 15 - 19 |
INTEGER: |
MAX STRING = 15 - 19 |
CHARACTER: |
MAX STRING = 9 |
-
All variables are now displayed either as REAL numbers or as INTEGERS. The REAL representation is always with 3 decimal digits independent of the FORMAT defined in the DFPOST.
It is recommended that the FORMAT of the interaction numeric variables be either INTEGER or a number with 3 decimal digits.
Example:
USER_6: |
2,1,2,1,NO,NO,.... |
USER_7: |
1,5,1,5,NO,NO,.... |
USER_8: |
4,3,1,1,NO,NO,.... |
USER_9: |
3,3,1,1,NO,NO,.... |
exf file:
INTERACTION (USER_6) "INPUT" A = 1.1 ;
INTERACTION (USER_7) "INPUT" B = 1.1 ;
INTERACTION (USER_8) "INPUT" C = 1.1 ;
INTERACTION (USER_9) "INPUT" D = 1.1 ;
OUTPUT \J "A=" A "B=" B "C=" C "D=" D ;
POST interaction:
The user types A=1.166 |
The display in the MODAL is A=1.166 |
The user types B=1.56789 |
The display in the MODAL is B=1.568 |
The user types C=7777.999 |
The display in the MODAL is C=7778.000 |
The user types D=125.747 |
The display in the MODAL is D=125.747 |
Output file:
A=1.2 B=1.56789 C=7778 D=125.747
Only the definition for variable D gives the correct result.
-
In the external post process (NC External), the interaction fields appear exactly as defined in the DFPOST.
|