Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5     Rate this Document

Storing Data with DASYLab in More Than One File

Primary Software: Other NI Software>>DASYLab
Primary Software Version: 6.00.03
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I want to save the acquired data of one measurement run in more than one file.To do this, I have used a Global String for the filename, which I change during the measurement. But at the end of the measurement I see only one file with all of the data. Why does DASYLab not split the data in two files ?

Solution: Before the measurement starts, DASYLab uses the initial content of the string for the filename in the Write Data module. The file is opened at the start of the experiment. If the content of the string changes during the measurement, DASYLab does not automatically close the old file and open a new file. The data continues to be stored in the file with the old name. If you want to save the data under the new name, you have to close the file and reopen it. Use the Action module to force this to happen. Monitor the Global String, and when it has changed, set the Action Module receiver as the Write Data module and select the Open and Close File action. DASYLab will close the current file, and reopen it. If the filename has changed (the Global String, in this case), the file will be opened using the new name.

Related Links:

Attachments:





Report Date: 05/06/2002
Last Updated: 12/07/2004
Document ID: 2L5D950Z

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