← Back

agp3

Advanced write V1 TEC200

Read or install a three-point current-scheduled PI profile on TEC200.

Usage

Read the installed three-point profile:

>> agp3
none

Write a complete profile using the following argument order:

agp3 1 I1 Kp1 Ti1 I2 Kp2 Ti2 I3 Kp3 Ti3 KpFallback TiFallback
Argument Meaning and allowed values
1 Profile version; only version 1 is accepted.
I1, I2, I3 Signed measured-current points in A, each from -10 to 10, with I1 < I2 < I3.
Kp1, Kp2, Kp3, KpFallback Proportional gains in V/°C, from 0.001 to 100.
Ti1, Ti2, Ti3, TiFallback Integral time constants in s, from 0.001 to 10000.

All values must be finite. A successful write prints the version followed by the eleven profile values, with six decimal places for each floating-point value. A read prints the same response, or none if no valid three-point profile is installed. A valid two-point profile also reads as none through this command; read it with agp2.

Operating requirements

Writes require advanced mode and tecon set to 0. A rejected write reports an error, preserves the previous profile, and then prints the current three-point profile or none. Check err as well as the profile readback.

Installing a profile replaces any previous two- or three-point profile and resets the advanced PI state. It does not enable the TEC or select advanced control. Select scheduled PI with agmode only after reviewing the gains and output limits for the connected thermal load.

Between adjacent current points, proportional gain and the ratio Kp/Ti are interpolated linearly. Outside the point range, the nearest endpoint gains are used. Missing, non-finite, or more than 250 ms old current feedback selects the fixed fallback gains. Monitor the selected gains and fallback state with agstat.

The profile is runtime-only. It is lost at restart and is not stored by save.