08-14-2019 09:44 AM
A colleague showed me this:
The datatypes change when you put it into the Diagram Disable structure. It's fine if the string is inside the Enabled case.
Have you seen this? I'm using 32-Bit LabVIEW 2018.
08-14-2019 09:51 AM - edited 08-14-2019 09:53 AM
Same in 2019. Curiously, it works fine once the output are wired with the correct datatypes.
08-14-2019 09:54 AM
I see it in LV 2017 as well.
Very odd.
08-14-2019 10:02 AM - edited 08-14-2019 10:05 AM
Of course the code is still highly ambiguous because there are many integer or floating point datatypes. Once you wire the desired datatype, things work as expected.
As said, is is also sufficient to wire a correct output and the terminals adapt.
08-14-2019 10:40 AM
The first Scan From String works because, at edit time, it can read the value of the constant. It's probably looking for the source of the wire.
When the second Scan From String looks for the wire source, it finds the inside terminal of the tunnel, whose value at edit time is probably an empty string. Since other structures work OK, there is probably a bug in the Diagram Disable Structure that prevents (at edit time) the constant value from propagating through the tunnel.
08-14-2019 10:43 AM
I just thought it was odd. Something about "disable" structures keeps the Scan From String node from finding the Scan string through a tunnel.
08-14-2019 04:22 PM
Thanks for reporting this, Jim
I agree it's odd behavior and have filed CAR #744124 for the appropriate team to review it and follow-up.
Regards,