Also is there a limit on the content of the LABEL HdBank in this situation?
“^HdBank” is 238 chars long and contains about 16 “@(x:y:z)” cursor movements.
[edit]
I’ve noticed a statement like LABEL Abc “” causes the whole LCD array to go blank. This is confusing and seemingly unnecessary (at least a warning would be nice).
So, the new recommended method is to use a dummy LED event, which will be triggered after startup, and on any bank change.
Such as:
# This is a dummy LED without assigned hardware (hw_id=2000 not used anywhere else) and without MIDI event.
# the purpose of this EVENT item is to print the bank whenever the LCD is refreshed (e.g. after startup or bank change)
EVENT_LED id=2000 fwd_to_lcd=1 lcd_pos=1:1:1 label="Bnk%q"
As you can see, this method will also allow you to define multiple dummy events to display strings at different positions.
Btw.: the same method can be used to print static strings as well.
Also is there a limit on the content of the LABEL HdBank in this situation?
yes, the limitation is 200 characters for the whole command line… but I think that I could use the same code like for .NGC file meanwhile (since it seems to work stable), which would allow to parse up to 1024 characters.
There is another limitation: the max. label length is 248 characters - due to the current 200 char limitation of the parser you haven’t got the related error message.
So - this will be fixed with the next release.
/edit: the fix is already in the repository.
I’ve noticed a statement like LABEL Abc “” causes the whole LCD array to go blank. This is confusing and seemingly unnecessary (at least a warning would be nice).
I can’t reproduce this, please provide a downstripped example.
Of course, an empty label string shouldn’t clear the screen…
So, the new recommended method is to use a dummy LED event, which will be triggered after startup, and on any bank change.
As you can see, this method will also allow you to define multiple dummy events to display strings at different positions.
Btw.: the same method can be used to print static strings as well.
Nice, simple!
My Headings string has a lot of embedded " " (space) in that makes it longer, the purpose of which is to align the headings, but also to erase what was there before. There is no “clear all” similar to “%C” that would clear the entire array? (I guess the problem with that idea is that it would need to happen before anything else, otherwise new content might get erased…
Anyhow, I’ll try the new build and the new method to display the headings. Thanks!
I can’t reproduce this, please provide a downstripped example.
Of course, an empty label string shouldn’t clear the screen…
was enough to cause this, so I make sure the unused strings contain at least a space. Also in the example above, only HdBank1 was being referenced by a “label=^HdBank1”