Campbell Scientific TDRSDK Software Developement Kit User Manual
Page 12
 
TDRSDK Software Development Kit for TDR100
8
3.4 Commands to execute TDR100 measurements and to
retrieve data
When a ‘request’ command is issued, Callback or State Machine is used to 
determine if requested data is available. When Callback or State Machine is 
satisfied the data is written to the DLL. A ‘get’ command is then used to get 
the data from the DLL to the API. 
20. ReqCalcCellConst
Allows calling application to request the TDR100 to calculate the probe cell 
constant or Kp. When transaction is complete, the call-back procedure will be 
called (if required), or the state machine can be monitored to detect completion. 
If no error occurred, cell constant will be available from the DLL and can be 
retrieved using the GetCalcCellConst (#21) API call. Result: TDR100 sends 
calculated cell constant to the DLL. 
int ReqCalcCellConst(float WaterTemp)
Parameters:
WaterTemp: Floating point value, Temperature of DI water 
surrounding probe. 
Return Code:
0 = Success
1
=
Failure
21. GetCalcCellConst
Allows calling application to get TDR100 cell constant (Kp) value stored in 
DLL. This command, if successful, will return a floating point variable 
containing the value. 
int GetCalcCellConst(float pValue)
Parameters:
pValue: Pointer to a floating point variable containing cell 
const 
Return Codes:
0 = Success
1
=
Failure
22. ReqCalVoltage
Allows calling application to request the current TDR100 calibration voltage. 
When transaction is complete, the call-back procedure will be called (if 
required), or the state machine can be monitored to detect completion. If no 
error occurred, current ‘Calibration Voltage’ will be available from the DLL 
and can be retrieved using the GetCalVoltage (#23) API call. Result: TDR100 
send the calibration voltage to the DLL. 
int ReqCalVoltage
Parameters: None
Return Code:
0 = Success
1
=
Failure