Hi all,
I have a LabVIEW VI that takes a variant input, converts it to a string using the Variant To Data function, appends a fixed message, and then outputs both the concatenated string and its variant form. The VI works as expected when I run it directly in LabVIEW.
However, when I call this VI from TestStand and pass a string variable (e.g., "Hallo") to the variant input, the output string in TestStand is not what I expect—instead of "Hallo Test!", I get a garbled string like "E@=3@JI0100h]Lc8o<99EG@85YE8:\^GA8=g<C
O<9<4_A460]g48b".
Has anyone encountered this issue?
- Is there a recommended way to pass a string from TestStand to a LabVIEW variant input so that the Variant To Data function in LabVIEW correctly interprets it as a string?
- Are there best practices for handling variants between TestStand and LabVIEW to avoid type mismatches?
Thanks in advance for your help!