05-22-2025 06:31 AM
Hello to you all,
I am starting a new project. In this project a user should be able to make a list of different commands.
for instance:
I want to check if the commands are valid and if they are okay I want to send them to a statemachine.
I can make an array with clusters, however an array can not contain different type's of clusters. E.g. an array can not contain a cluster of a wait cluster and a cluster of a ramp up (see pictures).
What would be the best approach here? Can I make a custom control which contains something like a tab control with 10 different tabs and each tab containing a unique cluster or is there another way? I did add some screenshots to give a idea of what I would like to make.
eventually I am looking for something like this:
hope someone can help. Thanx!
05-22-2025 06:47 AM - edited 05-22-2025 06:50 AM
Hi Me,
@~Its_Me~ wrote:
In this project a user should be able to make a list of different commands.
for instance:
- wait 10 seconds
- ramp up from x:0 to y:20
- change z to 50
- and so on
I want to check if the commands are valid and if they are okay I want to send them to a statemachine.
I can make an array with clusters, however an array can not contain different type's of clusters. E.g. an array can not contain a cluster of a wait cluster and a cluster of a ramp up (see pictures).
I recommend a more generic data storage, even a simple (array of) string might be ok!
Don't forget to type-define the enum and cluster!
Generic advice: separate data storage in your program from data presentation on your GUI. This way you can optimize the data storage on your needs while still presenting a "nice GUI" to the user!
05-22-2025 09:38 AM
Hello GerdW
thank you for your reply!
You start your reply with the sentence:
"I recommend a more generic data storage, even a simple (array of) string might be ok!"
Do you mean storage or (on the block diagram) or the user input (Front panel)?
Lets divide my question in parts I think points 1 and 5 are GUI related and 2,3,4 are more block diagram related.
I think I find the GUI part the hardest part, as I cannot make a scrollable array with different clusters or, use a command ring to choose a GUI blok of data.I can put all the control's in a tab structure but I cant make it a type def. of this etc.
I think I can use A, but it is a lot harder for the user. What do I need to do to use a scrollable version of option B with tens of rows ?
thanx for the help !
05-22-2025 01:56 PM - edited 05-22-2025 01:56 PM
Hi Me,
@~Its_Me~ wrote:
Do you mean storage or (on the block diagram) or the user input (Front panel)?
Front panel elements are either data sources or data sinks, but shouldn't be used for data storage.
THINK DATAFLOW!
@~Its_Me~ wrote:
"When presenting the parsed command list on a GUI I recommend to use a MultiColumnListbox…" I understand this, this will also make it easy to save the data to a file. However, I am looking for a method to make it easy for the user. If I can present an user friendly gui, like a pull down menu which shows the corresponding options I think the users will be happy.
Using a MCLB for data presentation does not "help with saving to file"!
I repeat: separate the data storage structures from UI presentations!
For "user friendly GUIs":