LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When trying to flatten to XML a larger number of 4194967297 does not flatten properly.

Properly flattened number:
 
<LvVariant>
<Name>Variant</Name>
<U32>
<Name>signal</Name>
<Val>4194967296</Val>
</U32>
</LvVariant>
Improperly flattened number:
 
<LvVariant>
<Name>Variant</Name>
<U32>
<Name>signal</Name>
<Val>4194967297</Val>
</U32>
 
As noted above, the ending </LvVariant> tag is missing.
 
Any one else seen this?
0 Kudos
Message 1 of 5
(2,663 Views)

Hi,

    Where are you seeing the improperly formatted XML? When I run your number through the flatten to xml function (LV7.1.1) and then send it through the write xml to file I get the following in the file:

  <?xml version="1.0" standalone="yes" ?>
- <LVData>
  <Version>7.1.1</Version>
- <U32>
  <Name>Numeric</Name>
  <Val>4194967296</Val>
  </U32>
  </LVData>
 
but the string displayed in a string indicator after the flatten to xml shows:
<U32>
<Name>Numeric</Name>
<Val>4194967296</Val>
</U32>
So I'm not sure where you are seeing the info you are (what introduces the "variant" message)
P.M.

 
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 5
(2,653 Views)
Hi.
 
I've got an update on that.  I am working in LabVIEW 6.1 and I tried 7.1 and the problem does not exist in 7.1.
 
Is there an XML update available for 6.1?
 
Thanks!
0 Kudos
Message 3 of 5
(2,648 Views)
Sorry, I was not able to duplicate on LabVIEW 7.1.1.
Perhaps you could provide a stripped down version of the code?
 
 
0 Kudos
Message 4 of 5
(2,647 Views)
Unfortunately the update is probably called "LabVIEW 7.1".
 
P.M.
 
 
LabVIEW 8.0 is going to be released fairly soon (later this fall?)
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 5 of 5
(2,645 Views)