LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for multiple graph logging suggestions

I have a "host program" that is attached to a cRIO platform used for precision controlling of some heavy machinery.  The current host is used to set parameters, but primarily to read values and display trends for the operators and maintenance personnel.  I had previously been looking for a method to put a correct timestamp on my historical charts, which allow the user to scroll back if something odd occurs, but this has become more trouble than it is worth.  One of my main difficulties in all of this is that I have 6 synchronized graphs that need the "roll back" ability, and putting a live timestamp on a chart you must be able to pause and rewind is unfathomably difficult with LabVIEW...

 

So, I have decided to kill 2 birds with 1 stone, so to speak.  I needed to work out logging the graphed signals to file anyhow, so I decided I might as well just do this and externally reference the log files for the "rewind" functionality.  My problem now is finding the best approach to log these 6 graphs of differing types...  The first graph has 3 overlaid analog values, the second graph has 2 overlaid values, and the last 4 are each just a single individual (scaled) sensor reading.  The graphs are updated every 100ms.  Accurate timestamps (date and time) need to be attached to the data as well.

 

This logging is a new arena of LabVIEW for me, but I figured there has to be at least a few experienced users or developers out there who know all of the ins and outs.  Any suggestions on the best way for me to log this data?  Individual files for each chart, or is there a better method to combine the data to keep it cleaner (not multiple files to track)?  Are there pitfalls I should be watching out for?

0 Kudos
Message 1 of 2
(2,281 Views)

Take a look at tdms files.  They are a binary format that is open (www.ni.com/white-paper/5696/en).  You can define groups of channels and they can be logged at different rates.  The LabVIEW API makes it relatively easy to retrieve a channel or group, although it may be more challenging to find a specific time if your files are large.  Besides the examples included with LabVIEW, you can drill down into the TDMS File Viewer that's in the TDMS palette for another example.  Also, there is a plug in for Excel that will allow it to import TDMS files (zone.ni.com/devzone/cda/epd/p/id/2944).

 

 

0 Kudos
Message 2 of 2
(2,267 Views)