Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with LoadSerialMessages
#1
Hi Josh,

First of all many thanks for the fantastic work designing the Bpod system!

As already raised in previous threads there is an issue with the two different syntax for LoadSerialMessages.

The following syntax works fine:
Code:
LoadSerialMessages('WavePlayer1', ['P' 1 0], ['P' 1 1], ['P' 1 2]);

It registers the messages with sequential message numbers 1, 2 and 3.

The following syntax however does not work fine:

Code:
LoadSerialMessages('WavePlayer1', ['P' 1 0], 11);
LoadSerialMessages('WavePlayer1', ['P' 1 1], 22);
LoadSerialMessages('WavePlayer1', ['P' 1 2], 33);

It only registers the last message but with message number 1 (instead of 33).

The issue is however solved by changing the line 44 in LoadSerialMessages.m from:

Code:
if nargin > 3

to:

Code:
if nargin >= 3
Reply
#2
Hello PrsaLab,

Thank you for the bug report and the fix!
We'll roll this into our next release - upcoming shortly, with some tweaks to TrialManager and Raspberry Pi example code.

-Josh
Reply


Forum Jump: