03-09-2009 08:52 AM
03-09-2009 09:11 AM - edited 03-09-2009 09:15 AM
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?
03-09-2009 09:21 AM - edited 03-09-2009 09:22 AM
I assume that if you have any 'false' booleans in your array that the test fails? Just use the search 1D array function.
03-09-2009 09:22 AM - edited 03-09-2009 09:25 AM
03-09-2009 09:23 AM
03-09-2009 09:29 AM
03-09-2009 09:56 AM - edited 03-09-2009 09:57 AM
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.
03-09-2009 10:07 AM
03-09-2009 10:35 AM
03-09-2009 10:54 AM