As final example, I replace the whole atsar user-client by a Perl program. The atsar communicates in binary structures with atsadc, so we have to convert between binary and perl-scalars.
atsar
atsadc