← Back

agp2

Advanced write V1 TEC200

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

Usage

Read the installed two-point profile:

>> agp2
none

Write a complete profile using the following argument order:

agp2 1 I1 Kp1 Ti1 I2 Kp2 Ti2 KpFallback TiFallback
Argument Meaning and allowed values
1 Profile version; only version 1 is accepted.
I1, I2 Signed measured-current points in A, each from -10 to 10, with I1 < I2.
Kp1, Kp2, KpFallback Proportional gains in V/°C, from 0.001 to 100.
Ti1, Ti2, 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 eight profile values, with six decimal places for each floating-point value. A read prints the same response, or none if no valid two-point profile is installed. A valid three-point profile also reads as none through this command; read it with agp3.

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