ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add arrays with shift register

Solved!
Go to solution

HI,

 

I am trying to add 2 2D arrays using a shift register but it always give me zero out.

 

Here is a very simple piece of code to show.

 

If anyone can tell me what is wrong it would be most appreciated

 

Thanks

Adam

0 Kudos
Message 1 of 3
(5,985 Views)
Solution
Accepted by topic author adamkse

You need initialize the shift register.  Otherwise, you are trying to add to an empty array.

 

edit: add snippet

 

add 2D.png

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 3
(5,982 Views)

Thanks, I see now. Didn't realise you had to do that.

 

P.S. Go Hokies 😉

0 Kudos
Message 3 of 3
(5,949 Views)