EasyManuals Logo
Home>Campbell>Measuring Instruments>CR1000

Campbell CR1000 User Manual

Campbell CR1000
678 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #159 background imageLoading...
Page #159 background image
Section 7. Installation
PanelTemp is the keyword. Two parameters follow: Dest, a destination variable
name in which the temperature value is stored; and Integ, a length of time to
integrate the measurement. To place the panel temperature measurement in the
variable RefTemp, using a 250 µs integration time, the syntax is as shown in
CRBasic example Measurement Instruction Syntax
(p. 159).
CRBasic Example 15. Measurement Instruction Syntax
'This program example demonstrates the use of a single measurement instruction. In this
'case, the program measures the temperature of the CR1000 wiring panel.
Public RefTemp 'Declare variable to receive instruction
BeginProg
Scan(1,Sec,3,0)
PanelTemp(RefTemp, 250) '<<<<<<Instruction to make measurement
NextScan
EndProg
7.8.4.13.2 Argument Types
Most CRBasic commands or instructions, have sub-commands or parameters.
Parameters are populated by the programmer with arguments. Many instructions
have parameters that allow different types of arguments. Common argument types
are listed below. Allowed argument types are specifically identified in the
description of each instruction in CRBasic Editor Help.
Constant, or Expression that evaluates as a constant
Variable
Variable or Array
Constant, Variable, or Expression
Constant, Variable, Array, or Expression
Name
Name or list of Names
Variable, or Expression
Variable, Array, or Expression
7.8.4.13.3 Names in Arguments
Table Rules for Names (p. 159) lists the maximum length and allowed characters for
the names for variables, arrays, constants, etc. The CRBasic Editor pre-compiler
will identify names that are too long or improperly formatted.
Caution Concerning characters allowed in names, characters not listed in in the
table, Rules for Names, may appear to be supported in a specific operating system.
However, they may not be supported in future operating systems.
Table 20. Rules for Names
Name
Category
1
Maximum Length
(number of
characters)
Allowed characters
Variable or array 39
Letters A to Z, a to z, _ (underscore), and
numbers 0 to 9. Names must start with a letter
Constant 38
159

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Campbell CR1000 and is the answer not in the manual?

Campbell CR1000 Specifications

General IconGeneral
BrandCampbell
ModelCR1000
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals