Campbell-scientific CR800 and CR850 Measurement and Control Systems Manuel d'utilisateur Page 148

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 566
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 147
Section 7. Installation
148
CRBasicExample23. StringandVariableConcatenation
'Declare Variables
Dim Wrd(8) As String * 10
Public Phrase(2) As String * 80
Public PhraseNum(2) As Long
'Declare Data Table
DataTable(Test,1,-1)
DataInterval(0,15,Sec,10)
'Write phrases to data table "Test"
Sample(2,Phrase,String)
EndTable
'Program
BeginProg
Scan(1,Sec,0,0)
'Assign strings to String variables
Wrd(1) = " ":Wrd(2) = "Good":Wrd(3) = "morning":Wrd(4) = "Don't"
Wrd(5) = "do":Wrd(6) = "that":Wrd(7) = ",":Wrd(8) = "Dave"
'Assign integers to Long variables
PhraseNum(1) = 1:PhraseNum(2) = 2
'Concatenate string "1 Good morning, Dave"
Phrase(1) = PhraseNum(1)+Wrd(1)&Wrd(2)&Wrd(1)&Wrd(3)&Wrd(7)&Wrd(1)&Wrd(8)
'Concatenate string "2 Don't do that, Dave"
Phrase(2) = PhraseNum(2)+Wrd(1)&Wrd(4)&Wrd(1)&Wrd(5)&Wrd(1)&Wrd(6)&Wrd(7)&Wrd(1)&Wrd(8)
CallTable Test
NextScan
EndProg
7.7.3.10 Program Access to Data Tables
A data table is a memory location wherein data records are stored. Sometimes,
the stored data needs to be used in the CRBasic program. For example, a program
can be written to retrieve the average temperature of the last five days for further
processing. CRBasic has syntax provisions facilitating access to these table data,
or to meta data relating to the data table. Except when using the GetRecord()
instruction (Data Table Access and Management
(p. 495) ), the syntax is entered
directly into the CRBasic program through a variable name. The general form is:
TableName.FieldName_Prc(Fieldname Index, Records Back)
Where:
TableName is the name of the data table.
FieldName is the name of the variable from which the processed value is
derived.
Vue de la page 147
1 2 ... 143 144 145 146 147 148 149 150 151 152 153 ... 565 566

Commentaires sur ces manuels

Pas de commentaire

Norgren F07 Series manuals

Owner’s manuals and user’s guides for Hardware Norgren F07 Series.
We providing 1 pdf manuals Norgren F07 Series for download free by document types: User Manual


Norgren F07 Series User Manual (2 pages)


Brand: Norgren | Category: Hardware | Size: 0.03 MB |

 

Table of contents





More products and manuals for Hardware Norgren

Models Document Type
F46 Series User Manual   Norgren F46 Series User Manual, 1 pages
F22 Series Datasheets User Manual   Norgren F22 Series Datasheets User Manual, 2 pages
F72C Series User Manual   Norgren F72C Series User Manual, 1 pages
F72G Series User Manual   Norgren F72G Series User Manual, 1 pages
F73G Series User Manual   Norgren F73G Series User Manual, 1 pages
F74G Series User Manual   Norgren F74G Series User Manual, 1 pages
B07 Series Datasheets User Manual   Norgren B07 Series Datasheets User Manual, 2 pages
B07 Series Installation Instructions User Manual   Norgren B07 Series Installation Instructions User Manual, 2 pages
B64G Series User Manual   Norgren B64G Series User Manual, 4 pages
B38SS Series Installation Instructions User Manual   Norgren B38SS Series Installation Instructions User Manual, 2 pages
B38SS Series Datasheets User Manual   Norgren B38SS Series Datasheets User Manual, 2 pages
B38AL Series Datasheets User Manual   Norgren B38AL Series Datasheets User Manual, 2 pages
B38AL Series Installation Instructions User Manual   Norgren B38AL Series Installation Instructions User Manual, 1 pages
Filter Contents User Manual   Norgren Filter Contents User Manual, 53 pages
B74G Series Datasheets User Manual   Norgren B74G Series Datasheets User Manual, 2 pages
B38-240-B2KA User Manual   Norgren B38-240-B2KA User Manual, 4 pages
B74G Series Installation Instructions User Manual   Norgren B74G Series Installation Instructions User Manual, 2 pages
B73G Series User Manual   Norgren B73G Series User Manual, 2 pages
B72G Series Datasheets User Manual   Norgren B72G Series Datasheets User Manual, 2 pages
B72G Series Installation Instructions User Manual   Norgren B72G Series Installation Instructions User Manual, 2 pages