E-Code

Discrete PID step response — a TI-84 Plus CE program

By E-Code · updated

PIDSTEP is a TI-BASIC program for the TI-84 Plus CE. A first-order plant G/(τs+1) sampled with a zero-order hold, under a positional discrete PID: table of the output at every sample, then the final value, peak, percent overshoot, steady-state error and last control signal.

What it asks for and what it shows

It asks for 8 values at its prompts. In the example below it shows Y LAST, Y MAX, %OS, SS ERR, U LAST.

Example run

One of its oracle test cases: “P only leaves an offset”. The inputs are typed in order, and the results are the values the case expects on the screen.

StepValue
You enter
Input 12
Input 25
Input 30.5
Input 41.5
Input 50
Input 60
Input 71
Input 860
The screen shows
Y LAST=0.75
Y MAX=0.75
%OS=0
SS ERR=0.25
U LAST=0.375

How it's checked

5 test cases, each checked against an independent method. Replayed key by key on a virtual TI-84 Plus CE, they make 31 checks.

How E-Code checks every program

Run it or put it on your calculator

Related programs

All TI-84 Plus CE engineering programs · All TI-84 Plus CE programs