Page 1 of 1
array size seems to be limited
Posted: Tue Jul 07, 2026 9:18 am
by Jorg_Guldner
Hello!
I need an array size of 96. Defining the array shows under variables only a maximum of 24 and the program is not working?
Any idea?

- array96-24.png (13.2 KiB) Viewed 288 times
Regards
Jorg
Re: array size seems to be limited
Posted: Tue Jul 07, 2026 9:43 am
by Steve-Matrix
This is normal - only the first 25 array values are shown. If you need to view or alter the value of an array element above index 24, you can add a suitable expression - e.g. sensor_1_array[90] - to the watch window area of the Simulation Debugger when running the project via simulation or ICD.
Re: array size seems to be limited
Posted: Tue Jul 07, 2026 9:43 am
by mnfisher
The display only shows some (the first ...) but you should be able to use large arrays (Ive used 50000 elements) - assuming the device has sufficient RAM.
Can you post some code demonstrating the issue?
Martin
Re: array size seems to be limited
Posted: Tue Jul 07, 2026 11:44 am
by Jorg_Guldner
Hi Martin,
I found the program bug. array[24] have the address 0-23 ! I uses 1-24 and the program writes into a other variable.
The other info, that only 24 variables are shown is a point that is new for me.
Thanks to you
Jorg
Re: array size seems to be limited
Posted: Tue Jul 07, 2026 11:57 am
by mnfisher
Glad you've found the issue.
Some languages do use '1' based but this is much rarer - and loops to process the array would also tend to be '0' based (loop count 24 times using a variable .i - .i will take the value 0..23)
Martin
Re: array size seems to be limited
Posted: Wed Jul 08, 2026 2:58 pm
by medelec35
I have move this topic to a more appropriate section, as it is not a Flowcode bug.