>I do not want to change the size of this array. What I want is to write sometimes 3 elements, and sometimes empty it (keeping size of 30).
>Maybe I should use a Table widget instead?
We might mix our nomenclature when it comes to size/length/capacity.
For the array widget, they're all the same and fixed.
"Size 30" means there are always 30 elements.
'EMPTY' would mean no elements, size=length=0, while capacity may still be 30.
The array widget doesn't support that. You could set the array to [ 0, 0, 0, 0, ..., 0 ] with 30 x [0], but not EMPTY as in [].
Yes, for a display, you could use a table widget, but that requires a (small) script to transform the array data from the PV into the rows/columns of the table.
-Kay