Hi Josh,
Thanks again for working on this update! I have an additional question.
I'd like to use these outputs from DIO ports to generate continuous triggering signals, and I believe using the SetGlobalTimer is the best way to achieve that. However, it generates an error when I try to use the AnalogIn output actions in the SetGlobalTimer function.
sma = SetGlobalTimer(sma, 'TimerID', 1, 'Duration', 0.01, 'OnsetDelay', 0,...
'Channel', 'AnalogIn1', 'OnLevel', ['=' 1 1], 'OffLevel', ['=' 1 0],...
'Loop', 1, 'SendGlobalTimerEvents', 0, 'LoopInterval', 0.01);
Unable to perform assignment because the left and right sides have a different number of elements.
Error in SetGlobalTimer (line 176)
sma.GlobalTimers.OnMessage(timerIndex) = onMessage;
Using LoadSerialMessages does not seem to work for this. Do you have any suggestions for this situation?
Thank you!