04-14-2014 08:04 PM
Sorry guys, I'll apologize in advance since I think this problem may be very simple, but I had been mind blocked from going through hours of Labview Tutorial and trying it out.
Lets say I am working on a workout analyser, and everytime the z-axis fall below 0, I would count it as '1 count', I wanted to add up the total number of counts. Do I use an array to store the 'count'? I try using shift register and it only gives me the current count plus the previous, i.e. I get 2 everytime I do a count.
Solved! Go to Solution.
04-14-2014 08:06 PM
Is it possible to create a local variable to store them instead?
04-14-2014 08:27 PM - edited 04-14-2014 08:27 PM
If you just want a count, then a scalar value should be what you put into the shift register, not an array.
If the condition is true, add one to the value in the shift register and put it back in. If the condition is false, then just put the current value in the shift register back in.
04-14-2014 08:43 PM
Thanks, you are the best 🙂
04-14-2014 08:48 PM
Absolute kudos for going through hours of training and tutorials. You are still going to have questions! If you ever learn everything about anything ... tell me all about it!
So, the big question is why you would evaluate one condition as "A = +1 " and another as "B = -1." There aren't a few more conditions you can consider? What about thowing two die plus six with an agility of +7?
Did I make the point clearly? What you do depends on what you want to do and your experince. Your code offers little for us to evaluate your end means. - and your end means are not stated!
What is the "Z Axis?" what are X and Y? what if any, relationship would you like them to have with the user?