10-11-2023 08:51 AM
I wonder if it's unreasonably imprudent to omit the "toVar" block when using the "Enqueue Message" block. I do believe that having the "toVar" at this point tends to unnecessarily bloat my block diagram.
This is the Enqueue Message Block from NI's CMH template.
Solved! Go to Solution.
10-11-2023 10:08 AM
That red dot you see is an implicit To Variant node that the LabVIEW compiler adds to the code.
So yes in most cases it is not necessary. Some people have however a sacrosanct rule to never ever have any red coercion dot in a diagram. Personally I'm a little more lenient about that rule. 🙂
10-12-2023 03:20 AM
@rolfk wrote:
That red dot you see is an implicit To Variant node that the LabVIEW compiler adds to the code.
So yes in most cases it is not necessary. Some people have however a sacrosanct rule to never ever have any red coercion dot in a diagram. Personally I'm a little more lenient about that rule. 🙂
There's even instances where it cost performance, so if you have overly zealous coworker add a note that you deliberately left it.