Stops running BrainVoyager for a specified amount of milliseconds.
objBrainVoyager.Sleep(intDurationInMS)
One application of this function would be to slow down animations which would run to fast otherwise. An example is shown below where the statistical threshold is gradually changing over time.
' VBScript
For thresh = 0.2 To 0.6
Step 0.05
doc.MapThreshold = thresh
doc.RefreshView
BrainVoyager.Sleep(300)
Next
// JScript
for(thresh = 0.2; thresh < 0.6; thresh += 0.05)
{
doc.MapThreshold = thresh;
doc.RefreshView();
BrainVoyager.Sleep(300);
}
# PerlScript
for($thresh = 0.2; $thresh<=0.6; $thresh += 0.05)
{
$doc->MapThreshold =
thresh;
$doc->RefreshView();
$BrainVoyager->Sleep(300);
}