LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding array by shift register generated from IMAQ image to array function

Solved!
Go to solution

Hi,

 

In my programme a 2d-array has been created inside a while loop. I want to add up this 2d array by using shift register within the while loop as long as the loop continues. But it do not work. The output array is simply blank. It would be very helpful if any one knows the solution.

 

Best regards,

SJ

0 Kudos
Message 1 of 3
(3,122 Views)
Solution
Accepted by topic author SJphys

Hard to tell without seeing your code.  But I'm guessing you've probably got something like figure 1 here:

 

ArrayShiftRegister.png

 

You need to either initialise the shift register with an array of the correct size (number 2), or store the array rather than adding it on the first iteration (number 3).  But if all you're doing is adding the arrays together, you might be better off with number 4 which uses the IMAQ Add function.

 

Message 2 of 3
(3,115 Views)

Thank a lot for your help.

0 Kudos
Message 3 of 3
(3,075 Views)