> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionCANstressSetResistor

# CANstressSetResistor

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE

## Function Syntax

```plaintext theme={null}
void CANstressSetResistor (dword resId, float value);
```

## Description

Sets the value of a resistor for analog disturbances. This command will only take effect if permitted by the resistor layout set in the basic configuration. If the **R\_H** layout is active, it will only be possible to set the **RH** resistor. If the *CANstress* device is inactive at this point, settings will only be applied once the *CANstress* device is active, i.e., once the trigger has been activated.

## Parameters

* **resId**: Sets the resistor whose value is to be defined:
  * 1 for RH
  * 2 for RSH
  * 3 for RHL
  * 4 for RSL
  * 5 for RL

* **value**: New resistor value. The value is specified in ohms, whereby only multiples of 2.5 in the range between 0 and 10,237.5 are valid. In the event of values that may be invalid, a warning will appear in the test report. If an invalid value is transferred, it will be ignored (i.e., not applied) by the COM server.

## Return Values

—

## Example

—

•  Technical References are only available in English
