Campbell-scientific CR3000 Micrologger Manual de usuario Pagina 234

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 590
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 233
Section 7. Installation
234
Figure 80: Bool8 data from bit-shift example (PC data file)
CRBasicExample47. ProgrammingwithBool8andabitshiftoperator
Public Alarm(32)
Public Flags As Long
Public FlagsBool8(4) As Long
DataTable(Bool8Data,True,-1)
DataInterval(0,1,Sec,10)
'store bits 1 through 16 in columns 1 through 16 of data file
Sample(2,FlagsBool8(1),Bool8)
'store bits 17 through 32 in columns 17 through 32 of data file
Sample(2,FlagsBool8(3),Bool8)
EndTable
BeginProg
Scan(1,Sec,3,0)
'Reset all bits each pass before setting bits selectively
Flags = &h0
'Set bits selectively. Hex is used to save space.
'Logical OR bitwise comparison
Vista de pagina 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 589 590

Comentarios a estos manuales

Sin comentarios