03-07-2011 09:01 AM
Hi,
Im relatively a new user with labview 7 installed. I am trying to make a progress bar which fluctuates with a timer. I want to make a progress bar fill up gradually for 2 seconds, stay full for 3 seconds and then the progress bar to gradually empty for 4 seconds. I don't really know which time and dialog function I should use, and also what type of execution control will be required.
Any help will be appreciated,
Thanks
Solved! Go to Solution.
03-07-2011 09:25 AM
Hi,
I don't know if I understand you right.
Do you mean something like this?
Use any "fill slide" in the control panel, and set the maximum value to 40.
03-07-2011 09:36 AM
Could you please explain what your code is actually doing. What is a process bar( i have never seen that before in labview)? What do you mean by fill slide?
If you could explain what i should be doing with a Pseudo code then i may be able to implement it.
Thanks for your quick response
03-07-2011 09:46 AM
Hi,
If you open the control panel and go to Modern > Numeric, there are a lot of slide looks like this , wheather vertical or horizontal
The process bar on the previous picture is just a control like this, and I changed its name.
What I did is as below:
1. set the maximum value of the slide to 40;
2. add the slide value by 2 every 100ms for 20 loops, which gives you 20*100ms = 2s.
3. wait for 3s.
4. minus the slide value by 1 every 100ms for 40 loops, which give you 40*100ms = 4s.
03-07-2011 09:50 AM
@nikky1989 wrote:
. What is a process bar( i have never seen that before in labview)? What do you mean by fill slide?
He actually meant to say "progress" bar.
03-07-2011 09:52 AM
OK, sorry.
But I meant the same stuff, didn't I?
03-07-2011 10:00 AM
Hi,
another solution without the need of local variables.
Mike
03-07-2011 10:04 AM
Ohh i see! yeahh!! a silly question but how did you get the orange wires? i tried to create it with a horizontal progress bar, but it does not "empty" the tank.
03-07-2011 10:26 AM
Orange wires are a floating point datatype. Usually double precision, but could also be single, extended, or complex. Blue wires are integer datatypes.
If you are having problems with your VI, post it so we can what you are doing and tell how to correct it.
03-07-2011 01:58 PM
I have tried to implement the method that Zch0820 used. It seems that the tank is filling up and holding but it does not empty again. I have used the exact same method, i think.. i have attached the image of my vi.