Dear Jaewon:
I have encountered a very weird bug. In my timescript, I load four waveforms in the buffer via `putdata(ao, wf{i})`, and manually chose among them via `set(ao, 'ManualTriggerNextWF', c);`. I have set `ao.ManualTriggerWFOutput = 'Chosen';` In each loop, three WFs are sent in sequence in a for loop, with `idle(ICI)` in between them. The scripts run well, everything looks perfect...
Now comes the weird part, in about 1/20 of the trials, I spotted that one of the AO item would wrongly repeat the previous one that was triggered. Since I have 3 items every trial, this occurs around one out of 60 stimuli. I'm pretty sure that I passed the correct index to the functions as I printed them on the screen during the course. And the occurrence doesn't seem to follow any systematic pattern. Sometimes, two errors happen in adjacent trials, but mostly far apart and not limited to any particular item in the buffer.
I don't know if any other people have had similar issues before. It would be very problematic for auditory neuroscience ppl.
Best regards,
Xuanyu