Applytemplatetowindow function – Multichannel Systems NeuroExplorer User Manual
Page 205
5.5.6.2. ApplyTemplateToWindow Function
ApplyTemplateToWindow Function
Runs the analysis specified in the template and shows the result in the specified Graph window.
Syntax
ApplyTemplateToWindow(doc, templatename, windownumber)
Parameters
Parameter
Type
Description
documentReference
doc
Reference to the document.
string
templatename
The name of the template.
double
windownumber
The number of the graph window of the document.
Graph windows are named Graphs1, Graphs2, etc.
Thus, if you need to specify window Graphs2,
windownumber should be equal to 2. If the Graph
window with the specified number does not exist, a
new Graph window is created
Returns
None
Comments
None
Usage
NexScript
doc = GetActiveDocument()
% run PSTH analysis saved in the template Peri1 and show the results in Graph2
window
ApplyTemplate(doc, "Peri1", 2)
See Also
Introduction to NexScript Programming
Page 203