Array Manipulation Bug

You can post your problem related to LabView Projects here. We will try our best to help you out.
Post Reply
Helen
Posts: 12
Joined: Sat Feb 18, 2017 8:46 am

Array Manipulation Bug

Post by Helen » Mon Mar 06, 2017 1:23 pm

I''m running into an Array Manipulation bug that sometimes generates an extra element causing a bogus numbers to be added to the array for some odd reason. It doesn't do this all the time, but it does it sometimes. Which is of course is inconstant.

I can't quite see what I'm doing wrong, and why it is inconsistent results. There should never be a "0" in the array's, but it keeps showing up. But it only shows up if an extra element is added to the array. I tried to isolate it using Case statements, but both Array manipulation routines are doing it.

This routine example is intended to exercise Array mathematical operations. However these VI's are sometimes adding elements and inserting "0" at random times. How am I incorrectly using these Array Manipulation VI's?

The problem is in these Sub-VI's:

LOTTO_Shuffle_Balls.vi
LOTTO_Scramble_Balls.vi

With the top level VI being:

LOTTO_Draw_Balls_With_Statistics.vi

Post Reply