キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/30
4,035件の閲覧回数

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 件の賞賛
メッセージ2/30
4,023件の閲覧回数

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 件の賞賛
メッセージ3/30
4,011件の閲覧回数
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 件の賞賛
メッセージ4/30
4,009件の閲覧回数
Ah, i seem to have misunderstood the question. VT looks like he has the correct solution.
0 件の賞賛
メッセージ5/30
4,004件の閲覧回数
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 件の賞賛
メッセージ6/30
3,998件の閲覧回数

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
メッセージ7/30
3,987件の閲覧回数
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 件の賞賛
メッセージ8/30
3,969件の閲覧回数
The way you had it was wrong. VT's solution will work but I would have simply used an AND Array Elements function.
0 件の賞賛
メッセージ9/30
3,954件の閲覧回数
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 件の賞賛
メッセージ10/30
3,946件の閲覧回数