LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Code generation error when implementing an accumalator

Solved!
Go to solution

Hi everyone,

 

I am implementing an accumalator which implements X = X + Y where X and Y are memories of length say 5. Initially I write 5 values into X and Y using a for loop. Then I perform the addition inside a single cycle timed loop and store the results in a temporary buffer(another memory) again of length 5. In another single cycle timed loop, I copy the data from the temporary buffer to memory X.

 

I changed the arbitration option to never arbitrate for X, but I get a code generation error because of arbitration. Could anybody please tell how to solve this problem.

 

Regards,

Prashant

0 Kudos
Message 1 of 3
(3,232 Views)

Hi Prashant,

 

Can you post your code?


Regards,

Nitzz 

0 Kudos
Message 2 of 3
(3,231 Views)
Solution
Accepted by topic author Prashant_dsp

Hi NitzZ

 

I figured out a way to solve the problem. I chose the "Never Arbitrate" option for all memories and replaced the for loop with a timed loop. Now there are no errors.

 

Thanks,

Prashant

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