LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matrix in feedback node

Hi, I'm currently using Labview 2013 and I am trying to place a matrix in a feedback node. It seems like I found a bug, because it does work for a feedback loop.

I wanted to use a feedback node to prevent labview from calculating the same matrix every loop.

Am I doing something wrong here? Or is this an issue with Labview?


Matrix bug.jpg


0 Kudos
Message 1 of 5
(2,696 Views)

Hi Lennart,

 

with LV2009 I can create a working snippet:

check.png

 

What's the point of using a shift register or FeedbackNode in your example? When the values don't change you don't need them!

 

Interesting side effect: the wires are placed different at the ADD node inputs compared to "usual" wires (like scalars or arrays). They are shifted 3 pixels up/down…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,686 Views)

Hi GerdW,

 

I checked your snippet in 2014. I also got same kind of error.

 

Matrix.png

Munna
0 Kudos
Message 3 of 5
(2,675 Views)

I am seeing the same issue in LabVIEW 2012. 

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 5
(2,671 Views)

Same issue in LV2011…

 

More interesting side effects:

check.png

Apart from visual glitches LabVIEW will create the wrong indicator when right-clicking the (apparently) scalar result wire of the left ADD node…

 

Edit:

The result of the snippet for two matrices of 2×2 "zero" elements is "2.16178E-314" when "x+y" indicator is connected to left ADD node. When adding zero with the right ADD node you receive "3.97926E-316". So adding zero (or creating data copies by adding other functions) will change the result…

Looks like a compiler error to me…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(2,659 Views)