Hi Chris -
We’ve started using the vpixx functionality below to send 16 bit digital codes to Blackrock. Bottom-line: We have no issue sending values related to space/color (e.g. stimulus size, or stimulus rgb value). But we consistently have issues sending time values (e.g. stimulus on duration or reward duration). Basically, the time-related values we recover on the blackrock side, are nothing like what we sent.
We think this issue might be related to the units of time, or how MWELS evaluate a line containing a mix of numbers/strings, for example:
var stimulus_on_duration = 300ms
I’ll include two examples that might help:
(1) When we send a non-time variable like fixation point size using this line:
vpixx_send_blackrock_sync_word(fixation_point_size*100 + v_offset)
We recover exactly the fixation point size expected (0.30 degrees)
(2) When we send a time variable like stimulus on duration (300 ms) using this line:
vpixx_send_blackrock_sync_word(stimulus_on_duration + v_offset)
We recover the value “42856” which is nothing like 300 ms.
Any thoughts on what we’re doing wrong here? The time values send for stimulus on/off and reward_duration are all different than expected.
Thanks!
Yasmine