ShowEventRelatedAverageEx Method


Description

Averages events as specified in an AVG file and shows the event-related averaging results in a window.

Syntax

objDocument.ShowEventRelatedAverageEx(strTimeCourseWindowName, strAVGFileName, intXPos, intYPos, intWidth, intHeight)

Remarks

Valid only if objDocument is of type VMR or FMR. A ROI Time Course window must be created  with the ShowTimeCourseOfVoxel or ShowTimeCourseOfVoxelEx method before the ShowEventRelatedAverageEx method can be used. The window name (strTimeCourseWindowName) refers to the name specified when the ROI Time Course window has been created. The event-related averaging runs across time courses at  the ROI of the corresponding time course window. The position and size of the created window can be controlled by specifying values for the intXPos, intYPos, intWidth and intHeight parameters. The position is specified with respect to the left corner (intXPos = 0, intYPos = 0) of the corresponding ROI Time Course (RTC) window.
If a AVG window has been invoked and if a new ROI (voxel) for the corresponding RTC window is specified, the event-related averaging will be performed for the new ROI and the AVG window will be updated automatically.

Example

' VBScript
doc.
ShowTimeCourseOfVoxelEx 141, 197, 135, "TC window", False, 523, 0, 500, 200, True, False
doc.
ShowEventRelatedAverageEx "TC window", "CG_OBJECTS_SECS.avg", 0, 0, 500, 542

B
rainVoyager.Sleep 3000  ' Wait 3 secs, then specify new ROI which will also update the AVG window
d
oc.ShowTimeCourseOfVoxelEx 118, 200, 142, "TC window", False, 523, 0, 500, 200, FALSE, False

// JScript

doc.
ShowTimeCourseOfVoxelEx(141, 197, 135, "TC window", false, 523, 0, 500, 200, true, false);
doc.ShowEventRelatedAverageEx("TC window", "CG_OBJECTS_SECS.avg"
, 0, 0, 500, 542);
BrainVoyager.Sleep(3000);

doc.
ShowTimeCourseOfVoxelEx(118, 200, 142, "TC window", false, 523, 0, 500, 200, true, false);

# PerlScript
$doc->ShowTimeCourseOfVoxelEx(141, 197, 135, "TC window", 0, 523, 0, 500,2001, 1, 0);
$doc->ShowEventRelatedAverageEx("TC window", "CG_OBJECTS_SECS.avg", 0, 0, 500, 542);
$BrainVoyager->Sleep(3000);
$doc->ShowTimeCourseOfVoxelEx(118, 200, 142, "TC window", 0, 523, 0, 500, 200, 1, 0);