:Revision=2
:html
<<
128.134
RCMeas-Object|RCMeas
$NoSort
--
The IP-Object RCMeas enables the access on the RCMeas-Module to a SerIO Bus
>>

<<
128.134.1
Functions of the RCMeas Object|Functions
--
>>

<<
128.134.1.1
RCMeas.Get|Get
--
<!DEF>
function <!TW>RCMeas.Get (rNr, rMode : real [; rRange : real [; rUStim : real [; rOption : real]]]) : real;
function <!TW>RCMeas.Get (sName : string; rMode : real [; rRange : real [; rUStim : real [; rOption : real]]]) : real;
<!TXT>
Starts a measurement and resturns the measured value.

The module is selected by with <!PW>rNr by its module number or with <!PW>sName by its module name.

 <!PW>rMode specifies the measurement mode:
<!STBL>
<!><b>1</b><!>resistance<!>
<!><b>2</b><!>capacity<!>
<!><b>3</b><!>diode voltage<!>
<!><b>4</b><!>voltage measurement<!>
<!ETBL>

 <!PW>rRange determines the measurement range:
<!STBL>
<tr bgcolor=f0f0f0 align=center><td rowspan=2 valign=bottom><b>rRange</b></td><td colspan=4><b>kind of measurement</b><!>
<!+>Resistance<!+>Capacity<!+>Diode voltage<!+>Voltage<!>
<!c><b>0</b><!>Autorange<!>Autorange<!>Autorange<!>-not allowed-<!>
<!c><b>1</b><!>0..3 KOhm<!>0..10000 F<!>Rv 220 Ohm<!>Single-Ended<!>
<!c><b>2</b><!>0..30 kOhm<!>0..220 F<!>Rv 4,7 kOhm<!>Differential<!>
<!c><b>3</b><!>0..3 MOhm<!>0..4,7 F<!>Rv 100 kOhm<!>-not allowed-<!>
<!c><b>-1</b></td><td colspan=4>keeps the last selected range (default)<!>
<!ETBL>

 <!PW>rUStim determines the stimulation voltage in Volt. In case of the diode measurement and the diferential voltage measurement this parameter is disregarded. If no value is specified for <!PW>rUStim, then the value that was set last is maintained.

The function of <!PW>rOption has a function that depends on <!PW>rMode.
For capacity measurements it determines the Timeout in seconds. In case of all the other measurement modes it indicates the number of measurements for averaging (1..255). If <!PW>rOption is not specified, then the value that was set last is used.
>>

<<
128.134.1.2
RCMeas.IsActive|IsActive
--
<!DEF>
function <!TW>RCMeas.IsActive (rNr : real) : real;
function <!TW>RCMeas.IsActive (sName : string) : real;
<!TXT>
Returns <!RW>TRUE, if the module <!PW>rNr is active.

The module is selected by with <!PW>rNr by its module number or with <!PW>sName by its module name.
>>

<<
128.134.1.3
RCMeas.Error|Error
!128.134.3
--
<!DEF>
function <!TW>RCMeas.Error (rModulNr : real) : real;
function <!TW>RCMeas.Error (sName : string) : real;
<!TXT>
Returns the error code of the last action on module <!PW>rModulNr.

The module is selected by with <!PW>rModulNr by its module number or with <!PW>sName by its module name.
>>

<<
128.134.3
RCMeas error codes|Error codes
!128.134.1.3
--
<!STBL>
<!+>Value<!+>Meaning<!+>
<!c>0<!>everything okay<!>
<tr><td colspan=2 bgcolor=#f0f0f>Error in SerIOProtocol</td></tr>
<!c>1<!>Timeout<!>
<!c>2<!>the response was too short<!>
<!c>3<!>incorrect response<!>
<!c>4<!>invalid character<!>
<!c>5<!>error in command<!>
<!c>7<!>the response was too long<!>
<!c>8<!>card is not active<!>
<tr><td colspan=2 bgcolor=#f0f0f0>Error on serial interface</td></tr>
<!c>103<!>Timeout<!>
<tr><td colspan=2 bgcolor=#f0f0f>Error from RCMeas card</td></tr>
<!c>200<!>the read float value is invalid<!>
<!c>201<!>the command was invalid<!>
<!c>202<!>the command syntax is invalid<!>
<!c>203<!>the parameter is invalid<!>
<!c>204<!>Parameter out of range<!>
<!c>216<!>Timeout during capacity measurement<!>
<!c>233<!>underflow<!>
<!c>234<!>overflow<!>
<!c>other<!>"unknown"<!>
<!ETBL>
>>

