From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-29-2010 09:47 AM
Hello! Can someone please help me figure out how to count the # of Passed & Failed Samples below? Each test samples has to go through series of test procedure (Test - 1, 2, & 3) and I need to determine if the sample has passed or failed base on the test procedures..
Thanks!
Solved! Go to Solution.
07-29-2010 10:29 AM
Hey there
What are the conditions for the pass and fail and do you have a VI with a completed block diagram you could attach to your reply?
Regards
Ben
07-29-2010 10:43 AM
Actually I have no control for conditions, I'm just pulling the data using DB Connectivity Toolkit... The attached information is diced out from the table I've gathered from our database.
Thanks!
07-29-2010 11:32 AM
07-29-2010 11:57 AM
Jim's solution will give the number of Pass events and the number of Fail events. I'm thinking that the OP wants a number of samples that passed or failed, not a pass/fail count. Look at the two indicators in his front panel picture. A sample passes only if it passes all three tests, otherwise it fails. I have modified Jim's code to return the number of samples that passed and failed, rather than a simple pass/fail count.
07-29-2010 01:30 PM - edited 07-29-2010 01:37 PM
Thanks for those who replied... The last example works great but since my application will be use to a several machines I will need to define the number of test procedure (TProcedure) on each one.
Thank you very much guys!!!
07-29-2010 01:57 PM
Create a numeric control and call it Num Tests or something like that. On the block diagram, delete the numeric constants with 3 in them, and wire the control to those points. There are only two instances and they are the bottom input to the Quotient & Remainder functions. Then just enter how many tests there are in the numeric control,
07-29-2010 01:59 PM
That's the plan...
Thank you...
07-29-2010 02:42 PM
@tbob wrote:
Jim's solution will give the number of Pass events and the number of Fail events. I'm thinking that the OP wants a number of samples that passed or failed, not a pass/fail count. Look at the two indicators in his front panel picture. A sample passes only if it passes all three tests, otherwise it fails. I have modified Jim's code to return the number of samples that passed and failed, rather than a simple pass/fail count.
How do you tell the difference betweeen:
07-29-2010 03:01 PM - edited 07-29-2010 03:01 PM
If we can assume that the test are arranged in a regular pattern, three tests in a row for each sample, here's what I would do.
(Also assuming that the capitalization is the same for all "Pass" and assuming anything that is not a pass is a fail. ;))