06-10-2013 04:50 PM
Hi Everyone
I am trying to make two separate counters on a true and false case structure. I want to count every time the true and
false case occurs and then do logic on the counts outside of the structure.
I have done research and saw that you can put shift registers on the edges of a while loop and put the case structure inside.
But it does not seem to work when I want to output the two different numbers each time the while loop runs.
Does anyone know what I can do or what is wrong? Do I just need one pair of shift registers or two?
I am using LabView 2010.
Best Regards
Solved! Go to Solution.
06-11-2013 12:56 AM
Try this and let me know it this what you are looking for.
Thanks
06-11-2013 02:15 AM
Ranjeet_Singh 's solution will work but I would recommend using shift registers as per your original thought.
Here is a slightly modified version:
06-11-2013 02:24 AM
@.aCe. wrote:
Ranjeet_Singh 's solution will work but I would recommend using shift registers as per your original thought.
Here is a slightly modified version:
Why you recommend this, Just asking ?
06-11-2013 02:26 AM
I didnt read the problem properly and give solution in slightly different way. My apologise.
Instead of counting true and false case counter I gave true and false counter.
06-11-2013 08:50 AM
Thank you .aCe. and Ranjeet_Singh!!
Sorry Ranjeet_Singh but I could not see your VI since you have a later version of LV but .aCe.'s solution worked for me. 🙂
I was able to keep the increment for each case in the loop and do logic outside.
I was just using one pair of shift registers and I also did not connect the wires in both cases correctly.
xxxMidna19