03-24-2024 02:03 PM - edited 03-24-2024 02:03 PM
Actually I was searching for a polymorphic VI with dynamic dispatch input in order to have the same member VI, which can output different datatypes. But since this seems not to be possible I added a polymorphic VI, which holds inlined, reentrant, static SubVI's.
Why does my Measure Poly VI not automatically adapt to the indicators type.
It can switch from VAR to numeric, but not to DBL in particular automatically.
Is this a bug?
03-24-2024 05:31 PM
Polymorphics can adapt to inputs, but not to outputs.
03-25-2024 02:10 AM - edited 03-25-2024 02:11 AM
03-25-2024 03:08 AM - edited 03-25-2024 03:11 AM
@Quiztus2 wrote:
Which mechanism does the 'Variant to Data' then use to adapt to it's output?
Such "back type propagation" is a very specific thing of the "Variant to Data" primitive, you can't get this with polymorphic nor malleable VIs without dedicated input, which will give the information about desired type.
I think, you shall be (probably) able to achieve your goal with XNode, unfortunately I haven't working example in my hands. Use this doc as "getting started" - Labview Xnode output Adapter.
03-25-2024 08:18 AM
Yes here is a thread on LAVA where AQ talks a bit about it. In that thread I link to my Variant Repository which is a set of XNodes for reading and writing variant attributes and it has this backwards type propagation. Pretty neat, but a decent amount of work and uses XNodes which aren't an official technology that NI supports outside of ones they make.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord