Hi Chris -
I have another question for you regarding format/syntax of %include files.
I’m trying to generate an ecodes.mwel that contains all the digital event codes for different trial events that we can then use in any experiment using %include.
The way I was thinking about it, this ecodes.mwel (attached) would have the values for different codes that would become accessible to my example1.mwel after using %include. And then, we can use the vpixx functionality you wrote to send the"event codes" followed by the “value codes” to the vpixx monitor. For example:
vpixx_send_blackrock_sync_word (e_fixation_width) //EVENT CODE:
vpixx_send_blackrock_sync_word (v_fixation_width) //VALUE CODE
This doesn’t work - and when I %include ecodes, I get errors related to unknown variables, as follows:
00:00:04: ERROR: Unknown variable: e_fixation_width
3 questions please:
(1) Could you please guide me on how to define all the variables in the ecodes.mwel correctly to eliminate this error? Do I simply have to set all the event codes to zero at the beginning of ecodes.mwel? For example:
var e_fixation_width = 0
(2) How do we define variables without having them show up in the variables window when running MWorks?
(3) Am I right that we could use the vpixx_send_blackrock_sync_word to send event codes and value codes? For example:
vpixx_send_blackrock_sync_word (5001) //sending event code for fixation width
vpixx_send_blackrock_sync_word (2010) //sending value for fixation window of 10 (ie. 10+2000 offset so that we don’t have negative codes)
Thank you!
Yasmine