This example shows how RTAI-Lab can be used to perform system identification. The two scripts gen_prbs.sci and gen_sweep.sci generate 20 sec. of an input signal (a pseudo random binary signal or a chearp signal). Then, generate the code for id_prbs.cos (-> rt exec: prbs) or id_sweep.cos (-> rt exec: sweep). Run the generated rt task for about 10 minutes (use the "-f 600" flag). A file out_prbs.txt (or out_sweep.txt) is saved after termination of the rt task. This file contains a mean of the collected signals (input and output). Run the"ident.sci" script after changing the name of the file with the collected data. This example needs the macros implemented under "SUPSI" and the "supsi.mak" template makefile.