Section 10. Troubleshooting
Table 129.
Variable and Final-Memory Data Types with NAN and ±INF
Final-Memory Data Type & Associated Stored Values
Variable
Type
Test
Expression
Public /
Dim
Variables
FP2
IEEE4
UINT2
UNIT4
STRING
BOOL BOOL8
LONG
As FLOAT
1 / 0
INF
INF
1
INF
1
65535
2
4294967295
+INF
TRUE
TRUE
2,147,483,647
0 / 0
NAN
NAN
NAN
0
2147483648
NAN
TRUE
TRUE
-2,147,483,648
As LONG
1 / 0
2,147,483,64
7
7999
2.147484E09
65535
2147483647
2147483647
TRUE
TRUE
2,147,483,647
0 / 0
-
2,147,483,64
8
-7999
-
2.147484E09
0
2147483648
-2147483648
TRUE
TRUE
-2,147,483,648
As Boolean
1 / 0
TRUE
-1
-1
65535
4294967295
-1
TRUE
TRUE
-1
0 / 0
TRUE
-1
-1
65535
4294967295
-1
TRUE
TRUE
-1
As
STRING
1 / 0
+INF
INF
INF
65535
2147483647
+INF
TRUE
TRUE
2147483647
0 / 0
NAN
NAN
NAN
0
3
2147483648
NAN
TRUE
TRUE
-2147483648
1
Except
Average()
outputs
NAN
2
Except
Average()
outputs
0
3
65535
in operating systems prior to v. 28
10.5.3.4 Output Processing and NAN
When a measurement or process results in
NAN
, any output process with
DisableVar
=
FALSE
that includes an
NAN
measurement. For example,
Average(1,TC_TempC,FP2,
False
)
will result in
NAN
being stored as final-storage data for that interval.
However, if
DisableVar
is set to
TRUE
each time a measurement results in
NAN
,
only non-NAN measurements will be included in the output process. CRBasic
example
Using NAN to Filter Data
(p. 484)
demonstrates the use of conditional
statements to set
DisableVar
to
TRUE
as needed to filter
NAN
from output
processes.
Note
If all measurements result in
NAN
,
NAN
will be stored as final-storage data
regardless of the use of
DisableVar
.
484
Содержание CR1000
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 32: ......
Страница 36: ......
Страница 38: ......
Страница 40: ......
Страница 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Страница 96: ......
Страница 98: ...98 ...
Страница 302: ......
Страница 350: ...Section 8 Operation Figure 91 Pulse Sensor Output Signal Types Figure 92 Switch Closure Pulse Sensor 350 ...
Страница 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Страница 454: ...Section 8 Operation 8 8 1 Data Display Figure 116 Displaying Data with the Keyboard Display 454 ...
Страница 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Страница 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Страница 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Страница 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Страница 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Страница 478: ......
Страница 506: ......
Страница 536: ......
Страница 636: ......
Страница 642: ......
Страница 644: ......
Страница 676: ......
Страница 677: ......