LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i create progress bar in main vi

Solved!
Go to solution

also how should i apply this for while loop

 

0 Kudos
Message 11 of 45
(5,300 Views)

Hi minakshi,

 

which while loop are you talking about?

 

You wanted to display a progress bar. You got examples using a FOR loop as it is most easy when you know the maximum number of iterations to loop will run.

With a WHILE loop the number of iterations is unknown and you need to find your own criteria for calculating the progress bar value!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 45
(5,299 Views)
Hi , use shift registers for For loop and fix a maximum value. when that value exceeds rest that count to Zero. You can watch the progress bar starts from 0 to maximum value
Venugopal
Message 13 of 45
(5,294 Views)

 : thank you so much ...!! i got it

0 Kudos
Message 14 of 45
(5,283 Views)

minakshi wrote:  can u plz explain that mathamatical calulations in that loop

I find it easier to just not have the calculations.  Just set the maximum value of the scale of the progress bar to the number of iterations you need minus one.  You then just have to wire up the i terminal directly to the indicator.



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
Message 15 of 45
(5,273 Views)
Solution
Accepted by topic author JUSTBEGINE
Hi minakshi, Thank someone by giving kudos or accept as solution
Venugopal
Message 16 of 45
(5,267 Views)

hey.. thanks for ur perfect solutions..!

now i want to cantenate string to a perticular numberonly iff that perticular number occure.. im attaching my vi here

i tried using case structure but i dont get  the output..what i was expecting.. also i want to count, how many string i get at red string box.

can u help me regarding this

0 Kudos
Message 17 of 45
(5,218 Views)

Hi minakshi,

 

i want to cantenate string to a perticular numberonly iff that perticular number occure

This seems to be quite simple:

IF "particular number" THEN
   concatenate strings
ELSE
use not-concatenated string ENDIF

 

i dont get  the output..what i was expecting

What are you expecting?

 

i want to count, how many string i get at red string box.

"Red" box? Or "read string" indicator?

Why do you want to count? Your FOR loop iterates 100 times so you get 100 strings! (An empty string is a string too…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 18 of 45
(5,216 Views)
Solution
Accepted by topic author JUSTBEGINE
Hi minakshi, What you are really trying to do? and you wired a Zero constant to case structure ,The case structure always executes Zero case , you will get an other case . Which no do want to concatenate strings:use i iteration of the while loop and use equal with the number you need and then wire equal output to case structure it works then. I have made small change in you vi check it out and give me more details about your task so i can help
Venugopal
Message 19 of 45
(5,210 Views)

thanks a lot for responding.

i have to move a handle in semicircular motion like 30, 80, 110, -30,-80,-110. and im designing UI for that handle motion.  that handle has some firmware and it will communicate with labview serially. means though USB port. i have to send command to firmware in the form of string data. thats why im sending string to firmware. and in UI i dont want to type whole commond string. UI should accept 30 and in back end it should fetch complete string related to that move by 30 degree command. im tring to explain as i can.. hope u understand my words.

0 Kudos
Message 20 of 45
(5,199 Views)