08-29-2025 02:16 AM
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?
Thanks in advance for your help!
10-20-2025 10:04 AM
Hello Python007,
When you pass a LabVIEW Variant into TestStand, the resulting string like the one you obtained it might be a serialized representation of the variant data. This format is not human-readable and is used internally by LabVIEW and TestStand to preserve complex data structures. If you want to extract the original string from this variant in TestStand or LabVIEW:
To do so, from LabVIEW follow the next link: Product Documentation
It will guide you through the software to allow you to convert properly the desired characters.
Have a good day,
Hugo
10-21-2025 02:42 AM
@Hugo_Hauet wrote:
Hello Python007,
When you pass a LabVIEW Variant into TestStand, the resulting string like the one you obtained it might be a serialized representation of the variant data. This format is not human-readable and is used internally by LabVIEW and TestStand to preserve complex data structures. If you want to extract the original string from this variant in TestStand or LabVIEW:
- Use LabVIEW’s Variant to Data function to convert it back to the original type.
- In TestStand, you can:
- Pass the variant back to a LabVIEW VI that knows the expected type.
To do so, from LabVIEW follow the next link: Product Documentation
It will guide you through the software to allow you to convert properly the desired characters.
Have a good day,
Hugo
Hey Hugo thanks for your reply
I fallowed your link: To do so, from LabVIEW follow the next link: Product Documentation
I created this VI:
If I pass a string in TestStand to the variant input LabVIEW recognise the type as "External Data" and not as "String":
Best regards
10-22-2025 10:22 AM - edited 10-22-2025 11:09 AM
Those Variant Data Type Parsing VIs works only within LabVIEW.
Doesn't work when the caller is a TestStand sequence. At least not in TS2017.