Error: Error: Variable does not contain a valid scalar value
Posted: Fri Sep 10, 2021 1:28 pm
Hi,
my aim is to use an AC variable I created using my own plugin as an input of another plugin, e.g. the gain plugin. I have two question:
1. I want to set the value of the gain.gains variable to the value of my AC variable, gains needs to be of kind vector<float>, but I can not find an function which inserts an AC variable as a vector. But the only functions I can find are insert_var, insert_var_int, insert_var_float and insert_var_double - what would be the correct way to register a variable such that it can be used as gains for the gain plugin?
2. I tried to set the value of gain.max, since it is a float value. For this I used something like this:
with db_EEG_steered being are float variable. But when setting
I get the error:
What could be wrong in this case?
my aim is to use an AC variable I created using my own plugin as an input of another plugin, e.g. the gain plugin. I have two question:
1. I want to set the value of the gain.gains variable to the value of my AC variable, gains needs to be of kind vector<float>, but I can not find an function which inserts an AC variable as a vector. But the only functions I can find are insert_var, insert_var_int, insert_var_float and insert_var_double - what would be the correct way to register a variable such that it can be used as gains for the gain plugin?
2. I tried to set the value of gain.max, since it is a float value. For this I used something like this:
Code: Select all
ac.insert_var_float(ac.handle, "db_EEG_steered_AC", &db_EEG_steered );
Code: Select all
mha.gain.max = db_EEG_steered_AC
Code: Select all
Error: (mha_parser) (mha_parser) "db_EEG_steered_AC" does not contain a valid scalar value (db_EEG_steered_AC)
(while parsing "config.cfg" line 13)