LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

power failure detection labview

Hi all,

Now, I have to do a project which is using tha LabVIEW to monitoring power failure. That project is a system which can detect the faulty power point during the unstable voltage occurred. Therefore, the parameters of voltage, current, power, and indicator for faulty power point can be display on the screen of PC for monitoring purpose, and all power points also can be controlled through the front panel. But, the problem is when I was clicked on "POWER" button of the front panel to turn off the system, it will be made my whole house electricity was tripped. Here attach my designed vi,..

Need you advise here for this problem...

Appreciate you help!

 

Thank you,

al:smileyhappy::smileyhappy:n.....

0 Kudos
Message 1 of 6
(4,655 Views)

UUps looks like your first LV program Smiley Wink

 

Make yourself familiar with the most basic part of LabVIEW: Dataflow 

Easily be seen when you hit the highlight (lightbulb) button and run your program.

 

Your power button will be read once at beginning and never again...

 

Its not a good idea to run your program with the RUN CONTINUOUSLY button, instead make yourself familiar with the while loop.

HINT: only controls and indicators inside the loop will be updated while the loop is running.

 

You don't need a loop (while or for) if you always will run it once

 

Sorry, for not having the time to teach you more  

Message Edited by Henrik Volkers on 09-05-2008 09:45 AM
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 2 of 6
(4,640 Views)

There's also way too much duplication of code - buttons with the same name that do the same thing, duplicate DAQmx operations, etc. Your problem description is also a little vague.

 

p.s. You've got the Certified LabVIEW Developer logo. Is that legitimate? I'm sorry but that program does not look like something a CLD would write.

Message Edited by Dennis Knutson on 09-05-2008 07:38 AM
0 Kudos
Message 3 of 6
(4,622 Views)

I like this bit (which occurs in two places):

Hmm... If the output of the NOR is False, put it into a case structure to spit out a False. If the output of the NOR is True, put it into a case structure to spit out a True. 

Message Edited by smercurio_fc on 09-05-2008 09:03 AM
0 Kudos
Message 4 of 6
(4,609 Views)

aloon wrote:

 

 it will be made my whole house electricity was tripped.


Awkward English, but what does that mean exactly?  Did you trip a circuit breaker?

0 Kudos
Message 5 of 6
(4,596 Views)

Yes, please carefully read all the above hits, they will help you become familiar with better programming practices. REALLY! 😄

 

One thing I don't understand is your use of the formula node. You place all statements on a single line and then resize the formula node so most of the code is hidden, creating obfuscated code. For example your second statement is D=(C*0.8996)*26.667;", which does not sound right, else you could just multiply with a single number (D=23.9896*C). Shouldn't it be D=(C-0.8996)*26.667;" for symmetry with the first statement? 

 

 

(see also this related post)

0 Kudos
Message 6 of 6
(4,572 Views)