07-20-2021 06:12 AM
So I've been experimenting with maps in LabVIEW and found them quite useful for organizing data. However I have some problems with the in-place element structure when trying to modify two element from a single map.
Take a look at the example above. I want to modify 'Element 1' and 'Element 2'. For some reason, the second node forces a feedback node?! The vi is broken as well, giving me the error that the node on the right is missing a required input?! Which one exactly? (the action input is optional, wiring it doesn't fix it either). The terminals of the second node are also on the bottom instead of the sides. Adding a third node is the same problem as the second (forces feedback node).
I guess the simplest solution is the just add another map element, but I want to understand what is happening here. Maybe I'm using it wrong?
Then there is another bug that breaks a wire when undoing actions. Anytime I have the second node wired and I undo a wire for example the ket wire breaks. Rewiring solves it.
Solved! Go to Solution.
07-20-2021 07:40 AM
It looks like the second item's write terminal is set to an output. That is a bug. I am seeing this in 2019 SP1 and 2020 SP1.
07-20-2021 08:48 AM
It's been noticed before:
IPE Map Get/Replace value extended - bug or feature - NI Community
Not sure if there's a BUG yet.
07-20-2021 08:52 AM - edited 07-20-2021 08:52 AM
@Basjong53 wrote:I guess the simplest solution is the just add another map element, but I want to understand what is happening here. Maybe I'm using it wrong?
If (2nd image) you have an array (Element 1 and Element 2), a for loop seems simpler (and appropriate).
Put the map in a shift register, use auto indexing on the array.
07-21-2021 07:26 AM
wiebe@CARYA wrote:
If (2nd image) you have an array (Element 1 and Element 2), a for loop seems simpler (and appropriate).
Put the map in a shift register, use auto indexing on the array.
That make more sense. Thanks for the suggestion.