04-30-2006 11:29 AM
04-30-2006 12:36 PM
I don't see an easy way to fix the code without rewriting from scratch using proper coding guidelines. Most likely, the code will be less than half the size, much easier to debug, and prettier to look at. 🙂
Have you ever tried to run your code while watching the diagram with execution highlighting enabled. You'll see what's going on.
Good luck!
05-01-2006 10:58 AM
thanks for ur advice n help !! i will try my best to rewirte this program, actually i not learn much from my lecture coz himself oso not so familiar wif tht, most is i try an error to find out the solution!
the question given is- the wash time muz more than 1 min n the water level muz over 4liter,n drain switch is off, then only the motor wil run! when drain switch is press, if water level less than 4 liter, stop immediatly. Or without press the drain switch, the motor stop when time wash = 0
i'm juz a begineer on labview, i got few question:
05-01-2006 11:15 AM
@kannajin wrote:
i'm juz a begineer on labview, i got few question:
It is OK to be a beginner. The nice thing with LabVIEW is that it becomes very easy once you are a bit more familiar with it. 🙂
Some coding guidelines can be found in the LabVIEW style guide: http://www.ni.com/pdf/manuals/321393d.pdf#labview_style_guide , look for chapter 6 nad the section about the block diagram.
You can have as many local variables as you want, there is no limitation. However, there is typically little need for them if the program is properly designed. Local variables are often overused and they make a diagram hard ot read, break dataflow, and can cause race conditions.
05-01-2006 11:32 AM
05-01-2006 02:23 PM
05-02-2006 03:27 AM
05-02-2006 03:52 AM
Since your motor display is in For Loop, it will execute 17 times and hence there is no stopping it..
That mean it will just run and run and run once the program state enter into the for loop.
And again you set you wire your wash time into another for loop, it will go until loop (washtime * 3.85) then
it will exit from loop.