Download Praxis Script Programming Guide
Transcript
ConfigAcqSize(var Width,Height:integer); Use this procedure to read the Width and Height of the Acquisition Configure form. ConfigPostProcPosition(var Left,Top:integer); This procedure can be used to change or read the Left or Top positions of the PostProcess Configure form. To read the values only, but not change them, set Left and/or Top to 1 when calling the procedure. ConfigPostProcSize(var Width,Height:integer); Use this procedure to read the Width and Height of the PostProcess Configure form. ConfigStimPosition(var Left,Top:integer); This procedure can be used to change or read the Left or Top positions of the Stimulus Configure form. To read the values only, but not change them, set Left and/or Top to 1 when calling the procedure. ConfigStimSize(var Width,Height:integer); Use this procedure to read the Width and Height of the Stimulus Configure form. CreateProcess(command: string; xpos, ypos: integer): THandle; This can be used to start another application from a Praxis script. The "handle" of the application's window is returned as the result of the function (THandle is an integer value, use as a "window handle", for later accessing the opened application so it can be closed again). xpos and ypos are the screen coordinates at which to open the new application's window. For examples, see the code "ProbeCalWizardNoPod.pas" in the "ProbeCal" Demo script. Also see "Calling COM servers from Scripts" for other ways to access other applications. DataDirectory:string (read); Contains the starting path and directory for saving and loading data files. This is the path that is shown as default in the Save/Load dialog boxes for px2 data. DataFileLoad(Plot:TDataPlot; filename:string); Loads the data file identified by the path and name in filename, into the identified Plot. DataFileSave(Plot:TDataPlot; filename:string):boolean; Saves the data contained in the Plot to a file identified by the path and name in filename. Returns true if successful. DeletePlot(var DP: TDataPlot); Deletes the plot identified by DP. You cannot delete the Primary Plot. Use this method of Praxis, instead of the Free or Destroy methods of the plots (using those methods will likely cause a program crash). DemoMode: boolean (Read/Write). True if the AudPod was NOT detected when Praxis was started, or has been removed. DemoRtaMode: boolean (Read/Write). Demo mode, if true, will use mixer settings which the user has set up for RTA operations. DensityOfAir:double (Read/Write). In grams per cubic meter, nominally 1210. Used in some processing calculations. DomainView: dvType (Read/Write). Selects whether the Primary Plot shows the last acquired Frequency domain data (if still available) or the last Time domain data. Similar functions as done by the Time/Frequency Button of the Praxis Main Form. ExitPraxisDirect. This procedure causes an immediate shutdown both the script and the