Brain Innovation

support portal

1. (Always necessary) Enable the COM functionality in BrainVoyager in the following way:

a. In Program Files > Accessories > Command prompt > go to the directory Program Files > BrainVoyager QX and enable via the command "BrainVoyagerQX.exe -regserver".

note for Windows 7 and Vista:
For Windows 7 and Vista you need to run command prompt as Administrator, prior to executing BrainVoyagerQX.exe -regserver command. Even if you are Administrator on your machine, the command prompt is not always run with Administrative privileges. The output (or rather, no output) of this command is the same in both cases, so you won't see this problem.
The trick is to go to start and then the run box and type: cmd
Now instead of hitting the Enter key, use Ctrl+Shift+Enter. You will be prompted with the User Account Control dialog... but it will then open up a command prompt in Administrator mode.

Going to superdirectories is possible  via the DOS command "cd .." (abbreviation of 'change directory',  please note the space between cd and ..). Going to subdirectories is possible via
'cd "Program Files" ' and
'cd "BrainVoyager QX" '
(remove the single quotes; the double quotes are probably necessary because of the spaces in the directory names).

b. Then try again from Matlab via the command:

bvqx = actxserver(’BrainVoyagerQX.BrainVoyagerQXInterface.1’)
(QX 1.9 and 2.0)
bvqx = actxserver(’BrainVoyagerQX.BrainVoyagerQXScriptAccess.1’)
(QX 2.2)
More detailed instructions are described in the "Scripting Matlab from BrainVoyager" guide. 

2. (Sometimes necessary) Enable the remote procedure call (RPC) server

on Windows in the following way:
In Control Panel > Administrative Tools > Services, look for services starting with 'RPC' or 'Remote Procedure Call', and then start the service if it has stopped.

You are here: HomeBrainVoyagerAutomation & DevelopmentWriting Scripts ≫ Solutions to fix COM functionality