LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automated testing

I finally got my program working for my automated testing on circuit boards...what I am trying to figure out is how to display errors on the front panel if one occurs. Right now its setup where its just showing that the test passed regardless if theres an error or not because of the boolean control next to the left shift register. How do I make it so that if one of the tests fails that the boolean on the front panel will display "FAILED"??? Im assuming I have to have some sort of digital logic in there such as an and gate or something....
0 Kudos
Message 1 of 30
(3,678 Views)

cmhand wrote:
I finally got my program working for my automated testing on circuit boards...what I am trying to figure out is how to display errors on the front panel if one occurs. Right now its setup where its just showing that the test passed regardless if theres an error or not because of the boolean control next to the left shift register. How do I make it so that if one of the tests fails that the boolean on the front panel will display "FAILED"??? Im assuming I have to have some sort of digital logic in there such as an and gate or something....
Are you saying you want to check the error cluster and if there is an error, display failed? Why not use unbundle by name to get the error status. Then wire it to your indicator?

Message Edited by for(imstuck) on 03-09-2009 09:15 AM
0 Kudos
Message 2 of 30
(3,666 Views)

I assume that if you have any 'false' booleans in your array that the test fails?  Just use the search 1D array function.

 

Message Edited by vt92 on 03-09-2009 09:22 AM
>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 3 of 30
(3,654 Views)
Is this what you are looking for? If they are both true it will return a true, otherwise, your boolean will show failed
Message Edited by for(imstuck) on 03-09-2009 09:25 AM
0 Kudos
Message 4 of 30
(3,652 Views)
Ah, i seem to have misunderstood the question. VT looks like he has the correct solution.
0 Kudos
Message 5 of 30
(3,647 Views)
Well in the case structure I have many frames that say Check: Ignition Cold, ACC Cold, etc.. in these frames the program is to test whether there is 12V at these different locations on the PCB board being tested and if there is than that particular test passed and it should keep going through the case structures. If for some reason the test doesnt pass (bad connection with board, electrical component failure on the board, short, etc...) I want the front panel to display "FAILED"...sorry for not clarifying this
0 Kudos
Message 6 of 30
(3,641 Views)

The simplest way would be to just create an array of Booleans. Make the Boolean text visible and set the on text to passed and the off text to failed. Set the on color to green and the off color to red. Wire this array to the output of the shift register.

 

 

p.s. Your code to determine the overall status is completely wrong.

Message Edited by Dennis Knutson on 03-09-2009 08:57 AM
Message 7 of 30
(3,630 Views)
I did what VT suggested and its working great...what do you mean the code to determine the status is wrong??? Do you mean the way I had it when I posted it is wrong? because thats what I was asking about but I just changed it
0 Kudos
Message 8 of 30
(3,612 Views)
The way you had it was wrong. VT's solution will work but I would have simply used an AND Array Elements function.
0 Kudos
Message 9 of 30
(3,597 Views)
Okay so what VT suggested works great and says "Failed" at the end of the test if something fails...my next question takes this one step further. If I get a failure I would like it to say on the front panel what failed...so for instance it checks for 12V at ACC Cold, for some reason due to short or bad connection etc etc, I would like a text box on the front panel that would say 12V ACC Cold = Failed at the end of the test along with anything else might have failed.
0 Kudos
Message 10 of 30
(3,589 Views)