EasyManuals Logo

Campbell CR850 User Manual

Campbell CR850
566 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 #121 background imageLoading...
Page #121 background image
Section 7. Installation
121
DataTable(TableName,True,-1)
'FP2 Data Storage Example
Sample(1,Z,FP2)
'IEEE4 / Float Data Storage Example
Sample(1,X,IEEE4)
'UINT2 Data Storage Example
Sample(1,PosCounter,UINT2)
'LONG Data Storage Example
Sample(1,PosNegCounter,Long)
'STRING Data Storage Example
Sample(1,FirstName,String)
'BOOLEAN Data Storage Example
Sample(8,Switches(),Boolean)
'BOOL8 Data Storage Example
Sample(2,FLAGS(),Bool8)
'NSEC Data Storage Example
Sample(1,CR800Time,Nsec)
EndTable
Flags
Flags are a useful program-control tool. While any variable of any data type can
be used as a flag, using Boolean variables, especially variables named "Flag",
works best. CRBasic example Flag Declaration and Use
(p. 121) shows an example
using flags to change the word in string variables.
CRBasicExample10. FlagDeclarationandUse
Public Flag(2) As Boolean
Public FlagReport(2) As String
BeginProg
Scan(1,Sec,0,0)
If Flag(1) = True Then
FlagReport(1) = "High"
Else
FlagReport(1) = "Low"
EndIf
If Flag(2) = True Then
FlagReport(2) = "High"
Else
FlagReport(2) = "Low"
EndIf
NextScan
EndProg

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Campbell CR850 Specifications

General IconGeneral
BrandCampbell
ModelCR850
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals