## Phidget DC Motor.lvlib:DCMotorSetTargetBrakingStrength.vi

This setting allows you to choose how hard the motor will resist being turned when it is not being driven forward or reverse (`DCMotorVelocity` = 0). The `DCMotorTargetBrakingStrength` sets the relative amount of electrical braking to be applied to the DC motor, with `DCMotorMinBrakingStrength` corresponding to no braking (free-wheeling), and `DCMotorMaxBrakingStrength` indicating full braking.

- A low `DCMotorTargetBrakingStrength` value corresponds to free-wheeling. This means:
  - The motor will continue to rotate after the controller is no longer driving the motor (`DCMotorVelocity` = 0), due to its momentum.
  - The motor shaft will provide little resistance to being turned when it is stopped.
- As `DCMotorTargetBrakingStrength` increases, this will engage electrical braking of the DC motor. This means:
  - The motor will stop more quickly if it is in motion when braking is requested.
  - The motor shaft will resist rotation by outside forces.
- Braking will be added gradually, according to the `DCMotorAcceleration` setting, once the motor controller's `DCMotorVelocity` reaches 0.0
- Braking will be immediately stopped when a new (non-zero) `DCMotorTargetVelocity` is set, and the motor will accelerate to the requested velocity.
- Braking mode is enabled by setting the `DCMotorVelocity` to 0.0

| Device In Device # Identification

| error in (no error) error in can accept error information wired from VIs previously called.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source describes the origin of the error or warning. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| Target Braking Strength The braking strength value Units: duty cycle (duty cycle) 1060_0 (ver: 100, 110) DC Motor Controller: Default: 0 1064_0 (ver: 100, 101, 102) DC Motor Controller: Default: 0 1064_1 (ver: 102) DC Motor Controller: Default: 0 1065_0 (ver: 100, 101) DC Motor Controller: Default: 0 1065_1 (ver: 100, 101) DC Motor Controller: Default: 0 DCC1000_0 (ver: 115) DC Motor Controller: Default: 0 DCC1000_0 (ver: 204, 205, 206) DC Motor Controller: Default: 0 DCC1000_0 (ver: 210, 211, 220) DC Motor Controller: Default: 0 DCC1001_0 (ver: 114, 116, 117) DC Motor Controller: Default: 0 DCC1001_0 (ver: 120, 130) DC Motor Controller: Default: 0 DCC1002_0 (ver: 100, 101, 102) DC Motor Controller: Default: 0 DCC1002_0 (ver: 111, 120) DC Motor Controller: Default: 0 DCC1003_0 (ver: 100, 101, 102) DC Motor Controller: Default: 0 DCC1003_0 (ver: 110, 120) DC Motor Controller: Default: 0 DCC1020_0 (ver: 103) DC Motor Controller: Default: 0

| Device Out Same as Device In

| error out error out passes error or warning information out of a VI to be used by other VIs.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source describes the origin of the error or warning. Right-click the error out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.