global variables

About the GUI application to design signal processing pipelines
Post Reply
chantrip
Posts: 42
Joined: Fri Jul 08, 2011 9:32 am

global variables

Post by chantrip »

Dear Openvibe

I want to create global variables that can be accessed from several boxes. Can we do this by defining 'int global_x' in ovp_global_defines.h? For example, in P300-speller-xDAWN, if I set 'int global_x = 2' in ovp_global_defines.h, then the box 'P300SpellerStimulator' and the box 'StimulationBasedEpoching' can access global_x. Also, how to set win-32-init_env_command.cmd to compile it?

Thank you very much

-Jim

jlegeny
Posts: 239
Joined: Tue Nov 02, 2010 8:51 am
Location: Mensia Technologies Paris FR
Contact:

Re: global variables

Post by jlegeny »

Hello,

what would you like to do with these global variables?

If you wish to have some settings globally available I suggest you look at the configuration manager object. This enables you to define tokens in configuration files and then access their values globally throughout the application.

Documentation is here:

http://openvibe.inria.fr/the-configuration-manager/
http://openvibe.inria.fr/documentation/ ... nager.html

Post Reply