This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
howtos:toolcoding:general_view_writing [2011/03/15 14:43] chris.strashok |
howtos:toolcoding:general_view_writing [2019/07/02 14:32] erik.frenette [Understanding indexing wrt history and background] |
||
---|---|---|---|
Line 17: | Line 17: | ||
where: | where: | ||
* //index// the array index. It may be one of the following values: | * //index// the array index. It may be one of the following values: | ||
- | * integer constant A positive integer value such as 1,2,3,.... For example, tempObject[][2]. | + | * integer constant |
+ | * a positive integer value such as 1,2,3,.... For example, tempObject[][2]. | ||
Line 34: | Line 35: | ||
|false|false|U|object[][1] = no instance - Error —| | | |false|false|U|object[][1] = no instance - Error —| | | ||
|false|false|F|object[][1] = new instance to be filled|1| | |false|false|F|object[][1] = new instance to be filled|1| | ||
+ | |||
+ | note: ''$history'' has value ''false'' when running views in calibrator. | ||
===== Example Files ===== | ===== Example Files ===== | ||
Line 48: | Line 51: | ||
* import.t - Tool commands to import the external data according to the format of each variable | * import.t - Tool commands to import the external data according to the format of each variable | ||
<file> | <file> | ||
- | creview import testInOut.s import.v import.t "importing first scenario" | + | setpath $HOME/V4/cal/views |
+ | |||
+ | ! Data creation views: | ||
+ | creview import testInOut.c import.v import.t "importing first scenario" | ||
+ | |||
+ | |||
+ | ! Data display views: | ||
+ | disview energyUseRpt myCalc energyUseRpt .v energyUseRpt .t "energy use report" | ||
</file> | </file> | ||