Hello,
I launched Homer3 in Matlab and when Homer3 tried to load a config.txt file the software gave the following error message: Index in position 1 exceeds array bounds (must not exceed 20). A GUI opened and most radio buttons and options were grey/inactive (I can't click on the options).
The first line in my config.txt is: raw_data_name='NIRS-2021-04-19_001';
I am using Homer3 v1.29.11, and Matlab R2020b.
Any idea about possible reasons of this error message? Thanks in advance!
Yinbo
Hi Yinbo,
I was just about to post a question on the forum about "Index in position 1 exceeds array bounds (must not exceed 20)." and found your message. In my case, the cause of the message is clear -- if I define more than 20 condition types I get this error. I have MatLab code that directly creates .snirf files with new condition markers (which I define in an external tool). If I define more than 20 distinct conditions in my snirf file, then when I open in Homer3 I get a lot of errors (the MatLab session shows multiple errors; menu options in Homer are greyed out; display is messed up), and the top-most error message in MatLab window is "Index in position 1 exceeds array bounds (must not exceed 20).". On the other hand, if I use my external tool to define 18 conditions, the snirf file opens fine, no errors. If I then use the "Edit Stimulus" tool in Homer and add 3 more fake conditions, the "Edit Stimulus" dialog closes, about half of the stimulus markers on the main display disappear, and there a many MatLab error messages, including the "Index in position 1 exceeds array bounds (must not exceed 20)."
Do you have more than 20 conditions defined?
I am going to post a question on the forum about why there is this limitation.
-Tod
Hi~
I updated Homer3 to the most recent version and now the problem was solved! I was able to read data and do analyses. Thanks everyone!
Yinbo
Yep, I concur, the latest version "v1.32.3" found in the "tags" on GitHib, has no problem with lots of conditions. I have successfully loaded and processed a file with 108 conditions.