RunNexScriptCommands
Runs the specified NexScript text. Returns true if succeeded.
Syntax
RunNexScriptCommands(script)
Parameters
Parameter |
Type |
Description |
---|---|---|
script |
string |
Script text. Script lines should be separated by \n |
Return
Returns true if the script succeeded, otherwise, returns false.
Matlab Example
nex = actxserver('NeuroExplorer.Application');
res = nex.RunNexScriptCommands('doc=GetActiveDocument()\ndoc.NewEvent = Sync(doc["Neuron04a"], doc["Neuron05b"], -0.01, 0.01)')
res = nex.RunNexScriptCommands('doc=GetActiveDocument()\nApplyTemplate(doc,"AutoCorrelograms")');