How to use parameters to initialize global classes
Posted: 23 Sep 2012, 05:18
Hi everyone,
I am using an Input Logger to acquire a secondary signal; to do so I need to initialize a global class which is so accessible by any blocks in the file . I declare my class just below my header files inclusions and everything works.
As development, I want my class constructor (called with class declaration) to use a bci2000-parameter for class initialization-passing it as argument.
The problem is that I can only access to bci2000-parameter after a Preflight phase and inside subsequent blocks in which a class declaration would make it local and not global.
Thanks for helping me.
I am using an Input Logger to acquire a secondary signal; to do so I need to initialize a global class which is so accessible by any blocks in the file . I declare my class just below my header files inclusions and everything works.
As development, I want my class constructor (called with class declaration) to use a bci2000-parameter for class initialization-passing it as argument.
The problem is that I can only access to bci2000-parameter after a Preflight phase and inside subsequent blocks in which a class declaration would make it local and not global.
Thanks for helping me.