From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-13-2014 08:50 AM
Hello All,
I don't know if i'm just having an off day or what but I'm Working on someone else's code (3-subVI layers Deep) and it keeps giving me this Data Type Error. This VI is supposed to read/unflatten from the XML document. I've tried setting the type differently on the unflatten from XML function, i also tried adding just an indicator to see what file type it should be expecting out, and a few other things. can someone show me where i should go next with this?
Thank you
06-13-2014 09:01 AM
Well, let's see:
Mike...
06-13-2014 09:08 AM - edited 06-13-2014 09:08 AM
I was also thinking Type def. im researching how to do thise as we type, any tips? and here is the XML file it is a Machine config file (Can't upload XML converted to Text file hope thats ok)
06-13-2014 09:23 AM
First thing, is which of the two clusters is the data supposed to be? That is the cluster to make a typedef. A good way to see why an XML string isn't converting is to convert the cluster you think it is supposed to be into an XML string and compare them.
Second, once you have the typedef created you will need to modify the routine that is writing the XML string to use the same typedef.
Third, unless you have a really good reason for using XML, JSON strings are smaller, easier to read and also supported natively in LV2013.
Mike...
06-13-2014 09:27 AM
Solved!
Thank you for your Wisdom MikePorter 🙂 it turns out what i was missing was that data type on the front had those extra integer types and one extra boolean type that the previous intern added without making use of the controls. After removing those everything connected as it should be.
Thank you