LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Darren's Weekly Nugget 06/26/2006

Solved!
Go to solution

Hi Darren

 

How would you use this in a state machine?

 

Thanks

0 Kudos
Message 1 of 10
(3,889 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(3,866 Views)

Ye i tried it - please see below 

 

This is in one of my state machines

 

 

KJ26_0-1639494801386.png

 

0 Kudos
Message 3 of 10
(3,853 Views)

@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.)

0 Kudos
Message 4 of 10
(3,841 Views)

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…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 10
(3,817 Views)

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. 

0 Kudos
Message 6 of 10
(3,757 Views)
Solution
Accepted by topic author KJ26

I tried it and it works fine for me. You are just using it wrong.

 

progress_bar_eg.png

 

or this, it's even shorter

 

progress_bar_eg2.png

0 Kudos
Message 7 of 10
(3,753 Views)

Ok Thank you 

0 Kudos
Message 8 of 10
(3,742 Views)

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.

0 Kudos
Message 9 of 10
(3,731 Views)

I would use the FOR loop sequencer.  It is basically a state machine, but using the i terminal to decide which case to call.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 10
(3,694 Views)