02-02-2012 06:34 AM
Is there a way to do count=count+1 with out using a shift register or feedback node?? I have an event structure inside a do while loop (see attached). When the button is hit ( kicks off the event) a test is done. Based on the test in the event a string is passed outside the event to a pass/fail case statement. The user can run any of these "events" as many times as he/she wishes. And in any order.. Test1(fails)..test 1(fails)... again...test1 (pass) again...test 2 (pass) then test 1 (pass). When the stop button is hit I would like to know how many times each pass/fail occurred for each test. Trying to stay away from shift registers as I have 18 button so w a possible pass fail for each so I would need 36 shift registers.
In my example the final printout tally would be :
TEST PASS/Fail # x's test was run
test1 fail 1
test1 fail 2
test1 pass 3
test2 pass 1
test1 pass 4
etc
Solved! Go to Solution.
02-02-2012 06:51 AM
02-02-2012 07:23 AM
Don't see an attachment.
You could use a shift register to store an array.
Each button would map to an array index. For each button pushed you would index the array, +1 the value, replace the array element and pass back out to the shift register.
02-02-2012 07:25 AM
sorry...
02-02-2012 07:26 AM
I'm working that idea now...thanks.