Procedures


Procedures layer communicate with the interpreter and such way with the devices only through text type of commands and one spectral buffer and with Plot by limited set of functions. The procedures contains usually a dialog box where the user specify what exactly he wants (e.g. Scan from...to...). The procedure generates a sequence of text commands to the interpreter and usually sends the result to TheoPlot for visual presentation.  

 

Remotely the procedures are called by method Procedur:

Procedur(const WhichProc: WideString; var PrmList: WideString; var Suc: WordBool)

    WhichProc - name of the procedure

    PrmList -  IN - either setting file (in this case the parameter should start with  "file:\\") or individual parameter(s) in style "param1=12, param2=tre"  

               OUT - result either as file name "file:\\path\filename" or as string with the results themselves.

   Suc - true in case of success and vice versa