Measurement Computing   Easy to Use | Easy to Integrate | Easy to Support catalog banner

DASYLab Technique - Save data to file using a variable rate and...

Expand / Collapse
 

DASYLab Technique - Save data to file using a variable rate and schedule


 

Question:

I want to save data for each of:

1 second for the first 30 minutes

1 minute for 5 hours after that

1 hours continuously after that

 

Is it possible to change or adjust the sampling rate or block in Dasylab?

 


Answer

 

The attached Code or Example is provided As Is.  It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments.  You assume all risks for use of the Code or Example.



You can configure a Relay module to reduce the amount of data that is stored to the file. The control input (X) of the Relay can be any TTL type signal. 

To create the schedule and data rate above, you can use a frequency modulated generator to create the TTL pulse that will control the  relay.

 

Data rate - configure a Generator with the same number of channels as the desired data rates. Configure each channel as a constant, and enter 1 for 1 second, 60 for one minute and 3600 for one hour. 

 

Use an Arithmetic channel to compute 1/y, to create the frequency.

 

 

Use a Signal Switch (time based) module to configure the schedule. Enter the duration of each step, in seconds, minutes, or hours. 

 

 

The output of the Signal switch controls the frequency of the Generator, configured for Pulse or Impulse for an amplitude of 5 (TTL High).

 

 

The List Display represents the Write Data module, and shows the data with the time stamp, so that you can verify the settings. 

 

The attached example was created in V12, and should run with DASYLab Basic, Full or Pro, but NOT DASYLab Lite. 

 

 

The attached Code or Example is provided As Is.  It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments.  You assume all risks for use of the Code or Example.

 



Rate this Article:
Tags:

Attachments


File save with data reduction.zip File save with data reduction.zip (5.35 KB, 821 views)

Add Your Comments


For comments email TechSupport@mccdaq.com.

Details
Article ID: 50324

Last Modified:5/14/2012 9:30:07 AM

Article has been viewed 5,558 times.

Options