05-08-2020 08:04 AM - edited 05-08-2020 08:20 AM
Hi everyone,
I've been trying to run myself VI Analyzer Tasks, but it looks like the paths generated by the VI Analyzer when saving are different from the XML Parser Library.
It seems that VI Analyzer is not using UTF-8 encoding, instead appears to be using some Western encoding.
The workaround is to get the XML string convert to LVtext (using Unicode from Tools Network) and use the Write to Text File.vi function, but it does not work so good either.
Did anyone experience that?
Regards,
Solved! Go to Solution.
05-08-2020 10:50 AM
I haven't heard of anyone else having trouble with the encoding of the VI Analyzer XML files. Note that at the lowest level, the contents of the file are generated entirely with the string functions in LabVIEW. If you want to dig through the code yourself, I'm pretty sure the entire hierarchy of the XML generation is not password-protected. You can start with this VI:
vi.lib\addons\analyzer\VIAnCFGDataStructure\Tree Manager\API\Flatten XML String.vi
05-08-2020 11:09 AM
Thank you, Darren.
I didn't know these functions were not password protected. But I'll take a look into it.
So far I was using the XML Parser Library from LV shipping example, and it was incompatible with VI Analyzer, as I shortly see the VIs you indicated me do not use these functions.
Anyways, I'll keep digging into this toolkit code, but that workaround is satisfying my needs.
The idea is launching a VI Analyzer Config for git changed files, and the proof of concept work, so now I'm working on the code.
05-11-2020 01:03 PM