← Back

agmode

Advanced write V1 TEC200

Read or select the TEC200 temperature-control mode.

Usage

>> agmode
0
>> agmode 0
0
Value Mode
0 Standard temperature control using the normal PID settings. This is the startup mode.
1 Current-scheduled PI control using an installed advanced profile.

A write takes one argument, 0 or 1, and returns the resulting mode. A read takes no arguments and returns the current mode.

Operating requirements

Writes require advanced mode and tecon set to 0. Before selecting 1, install a valid profile with agp2 or agp3. Selecting a mode resets the advanced PI state but does not enable the TEC. A rejected write preserves the selected mode and reports an error; check err as well as the returned mode.

Review the profile, fallback gains, and output limits before enabling temperature control. Use agstat to inspect the active gains, current-feedback age, fallback state, and output voltages.

This selection is runtime-only. Restart returns to mode 0; save does not store the advanced mode or its profile.