LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I make the entire test signal fail if the first portion fails but the later portions pass?

Hi, I am trying to do the following for demo purposes:

Generate a sine wave, have it look at the valley value of the sine wave. If it is less than -10, generate another sine wave and do the same thing. I want 5 sine waves all together.
If ANY one of the valley values are above -10 I want the test to fail.

I just want a green light to go off if the system passes, a red light if it fails.

Can someone please help me out.
Thanks a ton, attached is a VI I made. The problem with it is, if the first valley fails and the second valley passes, it signals an overall pass.
Ryan

LV 7.1
0 Kudos
Message 1 of 4
(2,698 Views)
Take your individual test results and NOR them together. This is easily done with the Compound Arithmetic function on the Boolean palette. Right click on it and select Change Mode>OR and then right click again and select invert. You can expand the function to have as many inputs as you want.
0 Kudos
Message 2 of 4
(2,698 Views)
Dennis, I am very new to labview, actually the purpose of this demo is to try and get my company to send me for training.
I am just trying to clarify what you are saying so feel free to correct me.
You are saying that from the "Peak Detector" I should go into the "Compound Arithmetic Function", change it to "or" then "invert" it?
I guess I am just not understanding what should be going into and out of the function.
Thanks!
Ryan

LV 7.1
0 Kudos
Message 3 of 4
(2,698 Views)
From the results of your comparisons - i.e Fail 1 and Fail 2, you should convert the dynamic data to a scalar Boolean and take these and NOR them.
0 Kudos
Message 4 of 4
(2,698 Views)