LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with my application

Hye u guys!
 
I'm having a problem that i can't figure out where is it from. Actually, i have an application which for now when we enter a certain value and button it will light up certain boxes and valids the stage. When it is validated, it'll go to another tab. and when i click on the stop button, it will initialise every thing (the color of the box changes to white and no matter which tab we're in, we're gonna return to tab 1). but the problem now, when i click on the stop button, nothing happens. so, can somebody help me? ill include my program.
 
and i want to add an ON button and a QUIT button. Quit button is used to quit LabVIEW but it seems that i cant figure out how to do it.. thanks u guys!
 
Dhirah
 


Message Edited by dhirah on 05-20-2008 09:11 AM
0 Kudos
Message 1 of 6
(2,922 Views)
First of all your architecture needs a makeover. The architecture creates you're problem. Where you have the outer while loop that reacts to the STOP boolean, but it can only do so if all the while loops in the sequence structure have stopped executing. The fastest solution would be to add a local of the STOP boolean in each while loop and also check that one for the stop condition.


Message Edited by andre.buurman@carya on 05-20-2008 04:48 PM
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 6
(2,910 Views)

Hye andré,

yeah i know, it's messy...but i've been thinking how can i clean up a lil bit of it.. like u said, the fastest way is to add a local variable to each loop and what is it connected to? Thanks

 

Dhirah

0 Kudos
Message 3 of 6
(2,877 Views)


dhirah wrote:

the fastest way is to add a local variable to each loop and what is it connected to? Thanks


Using locals is also the fastest way to get headaches 😄
 
The best way to create clean code from start is to design it, by defining what the code does.  If possible, describe the code using state charts.  Since Labview follows data flow, and executes all portions of code as soon as data is available, it is well suited to describe the code in terms of events.
 
RayR
Message 4 of 6
(2,855 Views)

Hye RayR,

Thanks for the reply. Yeah, i should have done that that before. I just did the Interface before the programme(the code). All those fonctions came after i've started programming. Well, this is my first programme using Labview, kinda new to labview. Thanks again for the help!

Dhirah

0 Kudos
Message 5 of 6
(2,844 Views)

Hi Dhirah,

This place is actually a very good place to learn to code.  And to learn proper methods and lots of good tricks.

Glad you're learning LV.  You will soon be very good and you'll love it.

Have a look at this thread.  There's actually a lot to learn here..  And also do a search on Nuggets. 🙂

http://forums.ni.com/ni/board/message?board.id=BreakPoint&thread.id=2634

0 Kudos
Message 6 of 6
(2,833 Views)