problem with my application - labview
This is a discussion on problem with my application - labview ; 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 ...
-
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
projectv3.4-essai.vi:
http://forums.ni.com/attachments/ni/...tv3.4-essai.vi
-
Re: problem with my application
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
-
Re: problem with my application
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
-
Re: problem with my application
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
-
Re: problem with my application
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
-
Re: problem with my application
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. 
<a href="http://forums.ni.com/ni/board/message?board.id=BreakPoint&thread.id=2634" target="_blank">http://forums.ni.com/ni/board/message?board.id=BreakPoint&thread.id=2634</a>