Matlab and current time in OpenVibe

Come here to discuss about OpenViBE in general!
Post Reply
kyrgyzov
Posts: 2
Joined: Wed May 02, 2012 1:39 pm

Matlab and current time in OpenVibe

Post by kyrgyzov »

Hello everyone,

Could you help me to resolve 2 questions:

1. Is it possible to obtain current date\time as date vector in OpenVibe, aka code "clock" in Matlab?

2. I have tried to use Matlab filter in OpenVibe but got error : first call to matlab engine failed.
On my PC everything is prepared as on the page
http://openvibe.inria.fr/documentation/ ... ilter.html

Is any other hidden tricks aka space in the path (Program files) that I have to check?

Thanks in advance for your answers.

ddvlamin
Posts: 160
Joined: Thu Aug 13, 2009 8:39 am
Location: Ghent University
Contact:

Re: Matlab and current time in OpenVibe

Post by ddvlamin »

1. Is it possible to obtain current date\time as date vector in OpenVibe, aka code "clock" in Matlab?
I'm not sure, but I don't think so, everything you need to know about the time format in OpenViBE is discussed nicely in this post of Y. Renard http://stickyvibe.tuxfamily.org/blog/?p=121
2. I have tried to use Matlab filter in OpenVibe but got error : first call to matlab engine failed.
On my PC everything is prepared as on the page
http://openvibe.inria.fr/documentation/ ... ilter.html
I'm not sure whether I can help here, but first of all according to the info page it's not sure if it works with 64-bit matlab. That aside, I was looking for some info on the engOpen function as the arguments it takes need to be NULL on windows systems. So I wanted to know where it gets its info to start matlab and I read the following in the matlab help
On Windows systems, the startcmd string must be NULL.
On Windows systems, engOpen opens a COM channel to MATLAB. The MATLAB software you registered during installation starts. If you did not register during installation, on the command line you can enter the command:
matlab /regserver
Maybe this helps?

kyrgyzov
Posts: 2
Joined: Wed May 02, 2012 1:39 pm

Re: Matlab and current time in OpenVibe

Post by kyrgyzov »

a solution is trivial:
use path
C:/MATLAB/R2011b/bin/win32
not
C:\MATLAB\R2011b\bin\win32



to get current CPU time in OpenVibe via matlab:

in bci_Pprocess

matrix_out=clock;

Post Reply