## Phidget Stepper.lvlib:StepperSetControlMode.vi

Use `CONTROL_MODE_STEP` mode when you want to set a `TargetPosition` for the Stepper motor. Use `CONTROL_MODE_RUN` mode when you simply want the Stepper motor to rotate continuously in a specific direction.
Changing the control mode while the motor is running will not have an effect on the motor's movements until a new `TargetPosition` or `VelocityLimit` is set.
In `CONTROL_MODE_RUN` mode, setting a `VelocityLimit` will also set the target position of the controller to `MinPosition` or `MaxPosition`, corresponding to the direction of movement.

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

| Control Mode The control mode value
Enumeration Values
Name | Value | Supported Devices
--- | --- | ---
1062_0 v101 | 1062_1 v101 v102 | 1063_0 v100 | 1063_1 v100 v101 | 1067_0 v200 v201 v202 v203 v204 v205 v206
| STC1000_0 v100 v101 | STC1000_0 v110 v111 v112 v113 v114 v121 | STC1001_0 v100 v101 | STC1001_0 v110 v111 v112 v113 v114 v115 v121 | STC1002_0 v101 v102 | STC1002_0 v110 v111 v112 v113 v114 v121 | STC1003_0 v100 v101 | STC1003_0 v110 v111 v112 v113 v114 v121 | STC1003_1 v201 v221
CONTROL_MODE_STEP | 0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓
CONTROL_MODE_RUN | 1 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓

1062_0 (ver: 101) Unipolar Stepper Controller: Def: CONTROL_MODE_STEP

1062_1 (ver: 101, 102) Unipolar Stepper Controller: Def: CONTROL_MODE_STEP

1063_0 (ver: 100) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

1063_1 (ver: 100, 101) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

1067_0 (ver: 200, 201, 202, 203, 204, 205, 206) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

STC1000_0 (ver: 100, 101) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

STC1000_0 (ver: 110, 111, 112, 113, 114, 121) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

STC1001_0 (ver: 100, 101) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

STC1001_0 (ver: 110, 111, 112, 113, 114, 115, 121) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

STC1002_0 (ver: 101, 102) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

STC1002_0 (ver: 110, 111, 112, 113, 114, 121) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

STC1003_0 (ver: 100, 101) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

STC1003_0 (ver: 110, 111, 112, 113, 114, 121) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

STC1003_1 (ver: 201, 221) Bipolar Stepper Controller: Def: CONTROL_MODE_STEP

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