LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Increment progress bar

Hi everyone!!

 

I'm new in Labview and I would like to get some help solving my problem. I have a knob control with who I define my cycle time. I have also a progress bar which I need to increment by 1 unit each time I reach the cycle time. Anyone know how can I do it?

 

Regards

0 Kudos
Message 1 of 8
(3,741 Views)

LabVIEW 101 is a good starting point. 

Once you've got the basics down of what's doing what, look through some example code.

 

Posting what you have helps a lot and gets you useful feedback.

0 Kudos
Message 2 of 8
(3,731 Views)

In attach is what I have. Defining for example 50 seconds in the knob control I need  to verify an increase of 1 unit in the progress bar after those 50 seconds.

0 Kudos
Message 3 of 8
(3,707 Views)

So far, the loop does not spin unless an event occurs, so you need at leat a timeout event.

 

Before going any further, I really recommend some simple tutorials. Your use of local variables and value property nodes is highly misguided and completely senseless in many cases. For example WIP gets written and read from a single value property, then you increment the indicator inside the loop while at the same you read another value property of the same indicator. Since nobody knows what happens first, you have a classic race condition.

 

Once you have the code straighened, you could use a simple "elapsed time" express VI, conver the "elapsed?" output using "boolean to 0,1", and add the result to the current progress.

Message 4 of 8
(3,698 Views)

This .vi is associated to another one and this is the reason I use shared variables. The property nodes are used for variables initialization. Can you give me an example how to do it or some tutorials?

 

Thanks anyway 

0 Kudos
Message 5 of 8
(3,688 Views)

@Goda wrote:

This .vi is associated to another one and this is the reason I use shared variables.



I did not say anything about the shared variables.

 


@Goda wrote:

The property nodes are used for variables initialization.


You are initializing controls/indicators. These are not variables and should not be abused as such.

Can you explain in more general term what the program is supposed to do overall?

Message 6 of 8
(3,680 Views)

Sorry I'm still not accustomed to using labview. My idea in this .vi is choosing a value in the the knob control (it represents a time control in seconds) wait that time to pass and then increase one unit in WiP. The idea of the program is to control an production line. This .vi is the workstation of operator 1 (4 in total), WiP is the work in process and so I need that in each 50 seconds, for example if knob control is set to 50, operator 1 has to deliver one piece to operator 2 and so on until the end of production line. Also I have another .vi  that represents the control station to manage the line. Hope that you have understood.

 

Thanks

   

0 Kudos
Message 7 of 8
(3,671 Views)

Hi!!

 

Sorry to bored you but maybe you can help me. Do you remember about my last post about the simulation of a production line? As I told, I needed to decrement one unit in my progress bar (WIP) after a certain time defined by my knob control. I did it already. Now besides this, in workstation 2, I need to increment one unit and this depends of the time cycle of workstation 1. My problem is that my WIP bar of workstation 2 presents 2 different values. For example, if I define my WIP2 equal to 50, after time cycle 2 the bar will present the value 49 but after time cycle 1, instead of 50 it will present 50 +1 and not 49+1.

Do you have any suggestion?

Download All
0 Kudos
Message 8 of 8
(3,575 Views)