3a. Practical scripting guide: How to create a script in BrainVoyager QX

General

Batch processing

 

General

In order to access to the BrainVoyager methods, create an instance of the BrainVoyager application: "var bvqx = Application.BrainVoyagerQX; ". With the BrainVoyager application instance (here: 'bvqx') all application methods can be invoked. For a list of the application methods, please see Application methods.

The most important object in BrainVoyager QX scripting is the BrainVoyager document. A BrainVoyager document is any FMR, AMR and/or VMR project. By opening or creating a document, all document methods can be invoked, for example:

The methods that open or create a document return a document. Most of the methods that are available in BrainVoyager scripting concern the document object. For a list of document methods, please see the Document methods.

 

Batch processing

To save time for the analysis, it is possible in BrainVoyager QX to create batch files. This can be used for example for the creation of projects and the preprocessing, because these parts might consume some time when there are many subjects. The best idea is then to ask the information about the fmr projects and store them for example in an array:

 


 

It is also possible to store the variables in one string and split them later; QSA provides convenient string manipulation functions for this.

Later in the script, one can loop through the array to process every project.

 

 

 

Next: 3b. Practical scripting guide: How to record a macro
Index