Campbell Scientific TDRSDK Software Developement Kit User Manual

Page 14

Advertising
background image

TDRSDK Software Development Kit for TDR100

10

29. GetDeriWF

Allows calling application to get a single TDR100 derivative waveform data
point from an array of values stored in DLL. The index parameter specifies
which value in the derivative waveform array to retrieve. This command, if
successful will return a floating point variable containing the value. The DLL
must be called as many times as there are waveform data points (value set in
API #12). Result: One value of the Derivative Waveform (array of values) will
be passed from the DLL to the Application. Note: This command is identical
to command 35, GetNewDeri.

int GetLastDeri(float pValue, int Index)

Parameters:

pValue: Pointer to floating point variable

Index: Integer, index into 1-based derivative array

Return Codes:

0 = Success

1

=

Failure

30. ReqLastWaveform

Allows calling application to request the waveform currently stored in
TDR100. New waveform acquisition is not performed by TDR100. 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 ‘Last Waveform’ will be written to the DLL and can be retrieved using
the GetWaveform (#31) API call. Result: The TDR100 will send the stored
waveform to the DLL.

int ReqLastWaveform

Parameters:

None

Return Code:

0 = Success

1

=

Failure

31. GetWaveform

Allows calling application to get a single TDR100 waveform value from an
array of values stored in DLL. Index parameter specifies which value in the
Waveform array to retrieve. This command, if successful will return a floating
point variable containing the value. Result: One value of the Waveform (array
of values) will be passed from the DLL to the Application.

int GetWaveform(float pValue, int Index)

Parameters:

pValue: Pointer to floating point variable

Index: Integer, index into 1-based waveform array

Return Codes:

0 = Success

1

=

Failure

32. ReqMoisture

This command might better be called ReqLaL instead of ReqMoisture. It
allows the calling application to request the TDR100 to compute the ratio of
the apparent rod length to the actual rod length and correct the ratio for probe
offset. 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

Advertising