03-13-2013 03:50 AM - edited 03-13-2013 04:16 AM
Hi,
My question maybe a bit stupide but Im not figuring the error.
This simple vi should:
- count any paire number und
- build the sume of every paire number
in a given array. Only the select function should be used and not the case select.
Building the sume ist working but counting is not working.
I ll appreciate any advise.
Thanks
Solved! Go to Solution.
03-13-2013 04:16 AM - edited 03-13-2013 04:17 AM
you made a small mistake, when the current value is not "paire" you select "0" and then add 1, it doesn't make sense.
what you need to do is add 1 if "paire" or keep the previous number
see this :
on a side note, it make more sense to use i32 if you are dealing with integers.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
03-13-2013 04:22 AM
Thank you.
That was my mistake.