## Phidget Motor Position Controller.lvlib:MotorPositionControllerSetCurrentRegulatorGain.vi

Depending on power supply voltage and motor coil inductance, current through the motor can change relatively slowly or extremely rapidly. A physically larger DC Motor will typically have a lower inductance, requiring a higher current regulator gain. A higher power supply voltage will result in motor current changing more rapidly, requiring a higher current regulator gain. If the current regulator gain is too small, spikes in current will occur, causing large variations in torque, and possibly damaging the motor controller. If the current regulator gain is too high, the current will jitter, causing the motor to sound 'rough', especially when changing directions. Each DC Motor we sell specifies a suitable current regulator gain.

| 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.

| Current Regulator Gain Current Regulator Gain DCC1000_0 (ver: 204, 205, 206) Position Controller: Min: 1 Max: 100Val: 10 DCC1000_0 (ver: 210, 211, 220) Position Controller: Min: 1 Max: 100Val: 10 DCC1001_0 (ver: 114, 116, 117) Position Controller: Val: 10 DCC1001_0 (ver: 120, 130) Position Controller: Val: 10 DCC1002_0 (ver: 100, 101, 102) Position Controller: Val: 10 DCC1002_0 (ver: 111, 120) Position Controller: Val: 10 DCC1100_0 (ver: 113, 114) Position Controller: Val: 10 DCC1100_0 (ver: 120, 121, 130) Position Controller: Val: 10

| 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.