12-14-2021 06:06 AM
12-14-2021 08:16 AM
Hi KJ,
@KJ26 wrote:
How would you use this in a state machine?
Basically the very same way, with providing an "N" and "i" input…
12-14-2021 09:14 AM
Ye i tried it - please see below
This is in one of my state machines
12-14-2021 10:22 AM
@KJ26 wrote:
This is in one of my state machines
(I recommend to start a new thread instead of appending to a 15 year old thread. You can always give a link to this thread if needed. You can ask the moderator to split off your sub-thread.)
It is completely useless to show a truncated picture with meaningless code (e.g. why does the string array go through the FOR loop if it is not used but and just emerges unchanged later? Why is the "waiting" constant on the right? etc.)
12-14-2021 12:47 PM
Hi KJ,
here's the link to Darrens 15-year old nugget…
@KJ26 wrote:
Ye i tried it - please see below
This is in one of my state machines
What's wrong with it? It should work as programmed!
(Maybe your expectation is wrong: the loop will iterate as fast as possible over that string array and so the progressbar will fill up very quickly…)
12-15-2021 01:47 AM
The picture was just an example, not my actual code - i have literally read your description and tried to replicate it. Maybe your example is redundant.
12-15-2021 01:58 AM - edited 12-15-2021 02:01 AM
I tried it and it works fine for me. You are just using it wrong.
or this, it's even shorter
12-15-2021 02:11 AM
Ok Thank you
12-15-2021 05:10 AM
Hi
I have a button that calls 7 cases to update a database but i want a progress bar to pop up to show the process of going through these states.
help will be much appreciated.
12-15-2021 08:23 AM - edited 12-15-2021 08:24 AM
I would use the FOR loop sequencer. It is basically a state machine, but using the i terminal to decide which case to call.