Averages events as specified in an AVG file and shows the event-related averaging results in a window.
objDocument.ShowEventRelatedAverage(strTimeCourseWindowName, strAVGFileName)
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 ShowEventRelatedAverage 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 using the ShowEventRelatedAverageEx method.
' VBScript
Set doc = BrainVoyager.OpenDocument("cg2_TAL.vmr")
doc.LinkVTC "CG_OBJECTS_SC.vtc",
0
doc.ShowTimeCourseOfVoxel 100, 180, 145, "TC
window"
doc.ShowEventRelatedAverage "TC
window", "CG_OBJECTS_SECS.avg"
// JScript
doc = BrainVoyager.OpenDocument("cg2_TAL.vmr");
doc.LinkVTC("CG_OBJECTS_SC.vtc",
0);
doc.ShowTimeCourseOfVoxel(100,
180, 145, "TC window");
doc.ShowEventRelatedAverage("TC
window", "CG_OBJECTS_SECS.avg");
# PerlScript
$doc = $BrainVoyager->OpenDocument("cg2_TAL.vmr");
$doc->LinkVTC("CG_OBJECTS_SC.vtc",
0);
$doc->ShowTimeCourseOfVoxel(100,
180, 145, "TC window");
$doc->ShowEventRelatedAverage("TC
window", "CG_OBJECTS_SECS.avg");