Section 7. Installation
139
program needs to access that value, the program must use the the alias-derived
name.
Variables in one, two, and three dimensional arrays can be assigned units. Units
are not used elsewhere in programming, but add meaning to resultant data table
headers. If different units are to be used with each element of an array, first
assign aliases to the array elements and then assign units to each alias. For
example:
Alias var_array(1) = solar_radiation
Alias var_array(2) = quanta
Units solar_radiation = Wm-2
Units variable2 = moles_m-2_s-1
7.6.3.10 Numerical Formats
Four numerical formats are supported by CRBasic. Most common is the use of
base-10 numbers. Scientific notation, binary, and hexadecimal formats can also
be used, as shown in the table
Formats for Entering Numbers in CRBasic
(p. 139).
Only standard, base-10 notation is supported by Campbell Scientific hardware and
software displays.
Formats for Entering Numbers in CRBasic
Format
Example
Base 10 Equivalent Value
Standard
6.832
6.832
Scientific notation
5.67E-8
5.67 x 10
-8
Binary
&B1101
13
Hexadecimal
&HFF
255
Binary format (1 = high, 0 = low) is useful when loading the status of multiple
flags or ports into a single variable. For example, storing the binary number
&B11100000 preserves the status of flags 8 through 1: flags 1 to 5 are low, 6 to 8
are high. CRBasic example
Load Binary Information into a Variable
(p. 139)
shows
an algorithm that loads binary status of flags into a LONG integer variable.
Содержание CR800 Series
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 32: ......
Страница 34: ......
Страница 54: ......
Страница 92: ......
Страница 190: ...Section 7 Installation 190 FIGURE 40 Running Average Frequency Response FIGURE 41 Running Average Signal Attenuation ...
Страница 310: ......
Страница 446: ...Section 8 Operation 446 8 11 2 Data Display FIGURE 100 CR1000KD Displaying Data ...
Страница 448: ...Section 8 Operation 448 FIGURE 102 CR1000KD Real Time Custom ...
Страница 449: ...Section 8 Operation 449 8 11 2 3 Final Storage Data FIGURE 103 CR1000KD Final Storage Data ...
Страница 450: ...Section 8 Operation 450 8 11 3 Run Stop Program FIGURE 104 CR1000KD Run Stop Program ...
Страница 452: ...Section 8 Operation 452 FIGURE 106 CR1000KD File Edit ...
Страница 456: ......
Страница 462: ......
Страница 523: ...Section 11 Glossary 523 FIGURE 116 Relationships of Accuracy Precision and Resolution ...
Страница 524: ......
Страница 526: ......
Страница 556: ......
Страница 558: ......
Страница 560: ......
Страница 597: ......