Broken Wire When Using Matrices with Feedback Nodes

Updated Apr 10, 2018

Reported In

Software

  • LabVIEW

Issue Details

When using matrices with math primitives, such as the LabVIEW Add or Subtract functions, the output of the primitive should be the Matrix datatype. However, I've noticed that if I use a feedback node on one of the inputs to the math primitive that I can no longer wire the output to a matrix indicator. Even right-clicking and choosing Create>>Indicator results in a broken wire.


How can I workaround this problem?

Solution

There are two options to workaround this behavior:
  1. Replace the feedback node with a shift register. This option depends on your logic being contained within a loop of some kind, but results in functionally identical code. 
  1. When using LabVIEW math primitives with matrices, the primitive can be opened as if it were a subVI. Copy the code from the subVI onto the block diagram or into your own subVI instead of using the primitive.

WAS THIS ARTICLE HELPFUL?

Not Helpful