LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array and shift register

Hi guys 

 

This is the idea of the program 

I am using a 1D array that has 8 Boolean elements named "attendance", and another 1D array of numeric control each element has a certain number for example  (9,8,7,6,5,4,3,2)  and there is a numeric control to enable the user to enter a number, if the entered number matches one of the numbers in the array, the Boolean of that number goes on....

The shift register is used to maintain the data of the array so that if one of the Boolean goes on it does not go off again 


The problem is that, the comparison happens only to the first 5 elements
The question why the comparison does not happen to the whole array 

Thank you 

0 Kudos
Message 1 of 2
(3,524 Views)

(apparently continued from here)

 

The boolean array you use to initialize the shift register has only five elements. It needs to have 8. You cannot replace something that does not exist. Instead of using a diagram constant, use "initialzie array" with a 8 wired to the size.

 

(Also mind your representations. Your number array is DBL while your numeric control is I64 for some reason.  Pick he same representation for both)

0 Kudos
Message 2 of 2
(3,509 Views)