04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 7. Installation<br />

#ElseIf LoggerType = CR800<br />

Const SourcSerialPort = Com1<br />

#Else<br />

Const SourcSerialPort = Com1<br />

#EndIf<br />

'Public Variables<br />

Public ValueRead, SelectedSpeed As String * 50<br />

'Main Program<br />

BeginProg<br />

'Return the selected speed and logger type for display.<br />

#If LoggerType = CR3000<br />

SelectedSpeed = "CR3000 running at " & Speed & " intervals."<br />

#ElseIf LoggerTypes = <strong>CR1000</strong><br />

SelectedSpeed = "<strong>CR1000</strong> running at " & Speed & " intervals."<br />

#ElseIf LoggerType = CR800<br />

SelectedSpeed = "CR800 running at " & Speed & " intervals."<br />

#Else<br />

SelectedSpeed = "Unknown Logger " & Speed & " intervals."<br />

#EndIf<br />

'Open the serial port<br />

SerialOpen(SourcSerialPort,9600,10,0,10000)<br />

'Main Scan<br />

Scan(ScanRate,Sec,0,0)<br />

'Measure using different parameters and a different SE channel depending<br />

'on the datalogger type the program is running in.<br />

#If LoggerType = CR3000<br />

'This instruction is used if the logger is a CR3000<br />

VoltSe(ValueRead,1,mV1000,22,0,0,_50Hz,0.1,-30)<br />

#ElseIf LoggerType = <strong>CR1000</strong><br />

'This instruction is used if the logger is a <strong>CR1000</strong><br />

VoltSe(ValueRead,1,mV2500,12,0,0,_50Hz,0.1,-30)<br />

#ElseIf LoggerType = CR800<br />

'This instruction is used if the logger is a CR800 Series<br />

VoltSe(ValueRead,1,mV2500,3,0,0,_50Hz,0.1,-30)<br />

#Else<br />

ValueRead = NaN<br />

#EndIf<br />

NextScan<br />

EndProg<br />

7.8.8 Serial I/O<br />

The <strong>CR1000</strong> communicates with smart sensors that deliver measurement data<br />

through serial data protocols.<br />

Read More! See Telecommunications and Data Retrieval (p. 348) for background<br />

on <strong>CR1000</strong> serial communications.<br />

200

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!