10-24-2005 03:10 PM
10-25-2005 01:44 AM
Jaegen
I have uploaded an example (LV7.1) that shows that the precision is 10us (ten micro-seconds) before it starts to roll over. That would mean that you have better precision available than your 1 second requirement.
Does this help?
David
10-25-2005 11:12 AM
10-25-2005 12:32 PM
10-25-2005 12:39 PM
10-25-2005 12:50 PM
10-25-2005 09:41 PM
The Flatten To XML primitive puposefully cuts off all numbers at 5 digits after the decimal. There are 3 main reasons for this:I suggest that you go ahead and file a new product suggestion by using the "feedback" link on www.ni.com/contact. It would be best if you could give some detailed information on how you would like LabVIEW to handle different scenarios while getting around the above issues.
- Information regarding precision is not propagated on the wire. Therefore, there is no real way to know how many significant digits or even places past the decimal point is appropriate when data is flattened to XML.
- Bloat. If all floating point values printed all of the possible decimal digits all of the time, this would provide for some very large blocks of XML code.
- Given the arbitrarily complex nature of LabVIEW data, it is difficult to provide a method for specifying precision. For example, if a user has a cluster of clusters, each of which contain a single, double and extended representing various measurements of differing accuracy, how can one precision setting be applied to each of these values? The user would have to unbundle (and index if an array was involved), flatten, concatenate, and then the reverse on the unflatten side.
10-26-2005 07:16 AM
Philip,
Thanks for the great response. Maybe a flatten by reference would be a good option, here all the attributes could propagate and be passed as attributes in the XML code. An unflatten by references could return the control back to the original state. I do agree with the issue of bloat. I will have to think about this a little before I submit a request to NI. Thanks,
Paul
10-26-2005 03:26 PM
10-27-2005 08:40 AM