How can I...
23
Setup for streaming measurements
It is possible to do streaming measurements with the Handyscope HS3 and
Handyscope HS4 (DIFF). Each time a specified number of samples is measured
(the record length), they can be transferred to the computer and processed
while the hardware continues measuring uninterrupted.
This way of measuring uses a callback function or an event to let the application
know new samples are available.
Using DataReady callback function
When new data is available, a function in the application can be called. The DLL
has a function pointer which has to be set to this function, using
word SetDataReadyCallback( TDataReady pAddress )
description
This routines sets the pointer for the Ready function, which will
be called when new data is available
input:
pAddress
a pointer to a function with the following proto-
type:
void DataReady( void )
output
Return value
E_NO_HARDWARE
E_INVALID_VALUE
E_NO_ERRORS
In the callback function, the data can be read from the instrument, using the
ADC_GetData routines.
Using DataReady event
When new data is available, an event can be set by the DLL. The user must
reset the event when the data is read.
word SetDataReadyEvent( HANDLE hEvent )
description
This routine sets the event handle for the DataReady event
input
hEvent
the event handle
output
Return value
E_NO_HARDWARE
E_NO_ERRORS
Summary of Contents for Handyscope HS3
Page 2: ......
Page 8: ...8 Introduction...
Page 65: ...Deprecated routines 65...
Page 67: ...TiePie engineering DLL programmer s manual rev 1 26...