Function SetMeasuringMode

TMSi Data Acquisition SDK

 
TMS International BV

SetMeasuringMode

BOOLEAN APIENTRY SetMeasuringMode(
IN HANDLE Handle,
IN ULONG *Mode,
IN int Value )

Members

Handle
    Handle of the library

Mode
   
The mode in which the frontend should be set

Value
   
The value which is used by the chosen mode
  

Return Value

If successful this function returns TRUE, else FALSE. If the function returns FALSE, use GetErrorCode to get the error code.
If the returned error code is 1, the frontend can not be set  in the requested mode.

Comments

Most Refa systems support impedance measurement. During impedance measurement the device measures the electrode impedance of each input channel. This feature is added to switch between these modes of operation.

Mode  Description  Value
MEASURE_MODE_NORMAL Normal mode
0
MEASURE_MODE_IMPEDANCE_EX Impedance mode
3
Impedance measurement 

To put the device in impedance mode, set the Mode parameter to MEASURE_MODE_IMPEDANCE_EX. In this case the Value parameter is used to select at which level to LED on the device should indicate that the electrode impedance is too high. The Value parameter can be any of the following values:

Value
 Description  Value
IC_OHM_002 Impedance limit at 2 kOhm  0
IC_OHM_005 Impedance limit at 5 kOhm  1
IC_OHM_010 Impedance limit at 10 kOhm  2
IC_OHM_020  Impedance limit at 20 kOhm  3
IC_OHM_050 Impedance limit at 50 kOhm  4
IC_OHM_100 Impedance limit at 100 kOhm  5
IC_OHM_200 Impedance limit at 200 kOhm
6


Before calling this function, stop the frontend by calling Stop().

Check the user manual of your frontend to see if your frontend supports impedance modes.

To set the frontend back to normal mode (=sampling), use the MEASURE_MODE_NORMAL value for the Mode parameter and 0 for the Value parameter.

Applies to 

All frontends that support impedance measurements. Refer to the manual of your frontend.


Also see

Open