Forum

Notifications
Clear all

Error when open a config.txt file


Yinbo Wu
Posts: 3
Customer
Topic starter
(@yinbo-wu)
Joined: 4 weeks ago

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

4 Replies
Tod Flak
Posts: 5
Registered
(@todflak)
Joined: 5 months ago

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

Reply
1 Reply
Yinbo Wu
Customer
(@yinbo-wu)
Joined: 4 weeks ago

Posts: 3

@todflak Hi Tod, I can see that this is a limitation. I have six conditions in my study. I installed the latest version of Homer3 and now it works fine. I also saw your other posts in the forum. Keep us updated.

Yinbo

Reply
Yinbo Wu
Posts: 3
Customer
Topic starter
(@yinbo-wu)
Joined: 4 weeks ago

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

Reply
Tod Flak
Posts: 5
Registered
(@todflak)
Joined: 5 months ago

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.

Reply
Share: