Instruction manual
. .
5 Analysis 80
For example, we have created a script in Python, which operates on the R-R intervals of the
ECG, which are detected by an Auto Mark function in the Tools menu. Then the R-R script
computes and displays a tachogram, plots Delta R-R histograms and determines values for
statistics, such as mean, mode, and standard deviation.
Writing
Scripts
DataTrax2 has a special folder called Scripts located in the DataTrax2 folder. Any scripting
files or executables placed in this folder will be included in the Scripting menu when DataTrax2
is launched.
Scripts can be run from the Main, Analysis, or ScopeView windows in the DataTrax2
program. Different data is presented to the script depending on which window is used to call the
script.
The Default Export File Format, for exporting the data that the script will use, is set on the
Advanced page of the Preferences dialog window. The default file format is .mat, or the Matlab
File format. For information about the MatLab
and DADiSP file formats, refer to the Export
section of this manual.
Scripts in the Main
Window
When a script is run from the Main window, DataTrax2 saves the complete data file in the
Scripts folder as either input.mat (Matlab) or inputXX.dat (DADiSP). In DADiSP, each block is
numbered as it is saved XX, starting with 00. When DataTrax2 calls the script file, the Windows
operating system opens the script file in the program associated with it. For example, a Python
script should open in the Python program and a MatLab script will open in the MatLab program
and so on. Scripts should be set up to open and analyze data files with the names as described.
Scripts in the
Analysis Window
When a script is run from the Analysis window, DataTrax2 saves the data in the Analysis
window display in the Scripts folder as either input.mat (Matlab) or input.dat (DADiSP). When
DataTrax2 calls the script file, the Windows
operating system opens the script file in the
program associated with it. For example, a Python script should open in the Python program,
and a MatLab script will open in the MatLab program and so on. Scripts should be set up to
open and analyze data files with the names as described.
Scripts in the
ScopeView
Window
When a script is run from the ScopeView window, DataTrax2 saves the data in the
ScopeView window display in the Scripts folder as either input.mat (Matlab
) or input.dat
(DADiSP
). When DataTrax2 calls the script file, the Windows operating system opens the script
file in the program associated with it. For example, a Python
script should open in the Python
program and a MatLab
script will open in the MatLab program and so on. Scripts should be set
up to open and analyze data files with the names as described.