07-30-2010 09:16 AM
Hi,
I am a learner in Labview and I am using Labview 8.5 version.
when I use FlattentoXML component to convert floating point numbers ( having more than 5 decimal points) into XML, the output contains alway 5 decimal points.
But, I want exact decimal number to be displayed as XML. i.e 0.263746 should not be displayed as 0.26375 in XML.
Do you have any suggestions ?
07-30-2010 10:29 AM
you can use "Flatten To XML"
07-30-2010 10:42 AM
07-30-2010 10:46 AM
If your output is a number then use a "format into string"
07-30-2010 10:53 AM
Hi,
I would like to receive an XML output like this.
Could you tell how it can be acheived ?
<DBL>
<Name></Name>
<Val>0.79857935879</Val>
</DBL>
07-30-2010 11:04 AM
Simple define like this
07-30-2010 11:11 AM
I tested it and could not see your problem in Labview 2009. So it is perhaps a bug in your Labview version. You can use this VI as a workaround.
07-30-2010 02:11 PM
I checked in LabVIEW 8.6.1 and the XML reports 11 decimal places.
See this post regarding five places of precision:
Floating point precision of "Flatten to XML"
If you're using 8.5, this issue may have been fixed in 8.6...