Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Logging Continuous Data to Multiple Files in LabVIEW SignalExpress

Primary Software: LabVIEW Signal Express>>Development System
Primary Software Version: 2.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I am recording data for a long period of time in LabVIEW SignalExpress.  I want to protect against all my data being lost in the case of a power failure or a system crash.  Is there a way to log my data continuously, but have it be saved in a series of files?

Solution:
There are two ways to do this with LabVIEW SignalExpress.  You can do it by manipulating your recording options, or by having a step that saves the data for you.  Manipulating the recording options gives you the ability to save the data as a TDMS file and is the best solution for recording larger amounts of data.

Figure 1 shows the recording options being manipulated simply to save the file every ten seconds. 
  1. Click on the Recording Options tab.  If it is not visible go to the View menu and select it.
  2. Click on the Stop Conditions category.
  3. Select the Condition source as Duration.
  4. Under the Duration(s) setting input the time you want to have each file record.
  5. Make sure to check Restart Log Automatically

Figure 1: Manipulating Log Recording Options

 

The other option is to have a LabVIEW SignalExpress project that includes the Save to ASCII step.  This step is called every iteration of the program and can be used to write a new file every time through.  The main challenge with this solution is storing an ASCII file, which takes up much more space per data point than a TDMS file. Figure 2 shows the Save to ASCII step.

Figure 2: Save to ASCII Step



Related Links:
KnowledgeBase 4749D2UK LabVIEW SignalExpress 2.0 Known Issues
KnowledgeBase 47T8OQ84: Optimizing LabVIEW SignalExpress for High Speed or High Channel Count Logging

Attachments:





Report Date: 02/28/2007
Last Updated: 09/05/2008
Document ID: 46RIGRT7

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit