LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update Value after each flat sequence

Solved!
Go to solution

Hi There,

 

I am trying to make a labview program do principal component analysis. My program is working fine but since it involves tons of calculation  it takes too much time and there is no way to know whether everything steps is going fine. I am trying to put some kind of progress bar thing in my front panel which tell me at what step the program is. The vi for progress bar i found works well with "for loop" but i do not have many for loop and but i my program have 6 step and i used flat sequence for each step. Is there a way to update value of slide after each flat sequence. I am using Labview 8.2 and i am attaching a image of a model vi that has a slide and has four flat sequence and each sequence has time delay of 1 second. I want that the value of slide update as data move from first flat sequence to next.

 

Thanks in advance 

Yogesh 

0 Kudos
Message 1 of 9
(5,885 Views)
Solution
Accepted by topic author Yogesh9ic

You can use a Local Variable for this...right click on the slide -> Create -> Local Variable. 

 

Use one local variable each time you want to update the value.

Message 2 of 9
(5,881 Views)

Hi Yogesh,

 

locals or property nodes (which you can resize to allow more inputs...) will do...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 9
(5,878 Views)

Since no one else seems to have suggested it, why not use local variables?  🙂

 

Actually, if you really wanted to, you could also use a case statement inside a loop where each case was one of the frames in your sequence structure (use the iteration as the input to the case structure).  Then, you could have an output (for each case) tied to the progress bar indicator.  No local variables!

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




Message 4 of 9
(5,874 Views)
May be a bit of an overkill, but you may want to try the JKI Progress Bar Dialog.
Message 5 of 9
(5,854 Views)

As above said u can use local variables and also property nodes.

What is difference between local variable and property node ?

http://forums.ni.com/ni/board/message?board.id=170&thread.id=206600&view=by_date_ascending&page=1

 

Find my sample programme i used both.

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 6 of 9
(5,828 Views)
Example code as mattBradley suggested.(No locals and globals)
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 7 of 9
(5,822 Views)
Thanks a lot for everyone's comment, I used local variable and it worked. 
0 Kudos
Message 8 of 9
(5,746 Views)
I guess you did not get the memo. Sequence structures themselves are not highly regarded either.
Message Edited by Dennis Knutson on 05-07-2009 01:48 PM
Message 9 of 9
(5,739 Views)