02-10-2005 02:34 PM
02-10-2005 03:10 PM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
02-11-2005 07:02 AM
02-11-2005 09:03 AM
Again, that's too general for me to answer. Take a look at my Portfolio, particularly the first two items (looks like I need to update that). Those are LabVIEW programs designed to analyze and display data.
Your first question has to be: "What does the user want to see from this data?"
Is it graphs? Statistics? Pass/Fail judgements? Printed reports? All of the above?
Start there - Design the final page(s) that your users see and do it first. Make sure you include all options - if he wants to click a button to see a graph, then find that out and include it in your thinking. That's your bottom line. Everything else goes toward filling in those blanks.
It looks as if there are a couple dozen ways of storing and looking at data. I am curious as to what the best approach ( or most common approach) would be
Well, the reason there are a couple dozen ways, is that there is no one "best approach" to all problems. As I said, start ant the end, and work backwards.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
02-11-2005 09:26 AM
02-14-2005
08:25 AM
- last edited on
10-19-2025
01:43 PM
by
Content Cleaner
Be careful with text data storage. I agree that it can be fast to get up and running. It is also compatible with anything, cross-platform or not. However...
If you are storing floating point numbers, be sure to store enough digits of precision. This can really ruin later post processing. This is a real problem with the LabVIEW native XML, since you have no control of this.
If you want random access to the data in the file, it will be very slow, since you need to parse everything before an item to get to the item you need. If analysis speed is an issue, don't use text.
The best solution I have used (many, many times) is HDF5, a self-describing, hierarchical, binary file format. You don't have to remember the format - it is automatically included in the file. You have hierarchy so you can put data of arbitrary complexity in the file. It is binary, so speed is usually hardware limited. HDF5 is a shared library (DLL on Windows) and is available on any platform LabVIEW is available, so you can analyze your data from other programming environments. Best of all, HDF5 is free, since it was developed by the NCSA for supercomputer users (your tax dollars at work). Now for the down side. HDF5 is very low level, so it takes some effort to use it. HDF5 is not multithread safe on Windows, so you need to be very careful in LabVIEW. If this does not scare you, you can check out the Windows LabVIEW port (called sfpfile). The HDF5 main website is here.