SET_FREQUENCY 250
EXPRESSION Z=0.11*#nIn_VAL-0.23*#nIIn_VAL-0.43*#nV1n_VAL-0.06*#nV2n_VAL-0.14*#nV3n_VAL-0.20*#nV4n_VAL-0.11*#nV5n_VAL+0.31*#nV6n_VAL
EXPRESSION Y=-0.07*#nIn_VAL+0.93*#nIIn_VAL+0.06*#nV1n_VAL-0.02*#nV2n_VAL-0.05*#nV3n_VAL+0.06*#nV4n_VAL-0.17*#nV5n_VAL+0.13*#nV6n_VAL
EXPRESSION X=0.38*#nIn_VAL-0.07*#nIIn_VAL-0.13*#nV1n_VAL+0.05*#nV2n_VAL-0.01*#nV3n_VAL+0.14*#nV4n_VAL+0.06*#nV5n_VAL+0.54*#nV6n_VAL
FIR CHANNEL(X|Y|Z) PARAMS(BP;40;5;25) ENVELOPE
SHAPEFINDER CHANNEL(X|Y|Z) ECGSOURCE(*)
CORRECTPOS CHANNEL(X|Y|Z)
CORRECTPOS CHANNEL(X|Y|Z)
SETCACHE CHANNEL(X|Y|Z) PARAMS(0)
SORTER CHANNEL(X|Y|Z) 
SAVE @outputDir\@Shortname.h5
WAIT1S