From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-20-2012 09:12 AM
Dear all
I'm new to Dasylab and I need a help in adjusting the sampling rate or block in the middle of the experiment.
I want to collect my data for each of:
1 second for the first 30 minutes
1 minute for 5 hours after that
1 hours continuously after that
Currently I used separator to do that, but if 1 stop, the whole experiment stop. If I don't stop it, there will be to much data written for 1 second interval.
Is it possible to change or adjust the sampling rate or block in Dasylab?
Many thanks
Martin Wijaya
Solved! Go to Solution.
02-20-2012 09:34 AM
Attached is a V12 worksheet that does what you want.
You need DASYLab Basic or higher. Your base sample rate must be 10 hz or above for this to work.
The first generator is generating a constant that represents the data rate, specified in seconds. The Mathematics module computes 1/y, to give you frequency.
The Signal Switch is time based, and changes between the data rate signals based on the time duration that you requested. That input is then used as an input to the Generator. The Generator outputs a pulse that controls the Relay.
This effectively reduces the data rate dynamically, based on the time settings that you specify in the Signal Switch module. You can have up to 16 "steps".
The List module represents the File Write module. You can use Global variables to specify the Generator00 values, so that you can modify the data rate each time you start the measurement. The time schedule in the Signal Switch module cannot be replaced with variables, sadly.
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.
02-20-2012 09:05 PM
Is it possible to do that in Daisylab Version 5?Because I don't see the time switch icon in my version.
02-20-2012 09:11 PM
I'm sorry....what I mean is Signal Switch Icon....I can only see switch in here.
02-21-2012 07:30 AM
I honestly don't know if you can do that with DASYLab V5. That version is over 15 years old.
If you can find the Signal Switch module in the Data Reduction group... then, yes, it should. It may be called Time Slice.
I cannot provide any support for this, although other DASYLab customers may be able to.
Are you still using Windows 98 or 95? DASYLab didn't support XP until V6.00.06.
02-21-2012 07:36 AM
If I understood correctly with your test, it could be resolved by using some trigger functions and action lists.
In any case we would really recommend you to first upgrade to V12 also because there are great improvments with the long term stability of the application.
Any examples we create for you would be still requiring an higher veersion of DLab because, even us, would not support V5 anymore
02-21-2012 07:37 AM
Yes. It is wondows 98. It is my University computer, so I can't change it.
Oh, yes. there is a module called time slice...I tried to use separator with different blocked size, and use time slice to combine it. But it is stated that the input data is incorrect. Do you have any idea what kind of input that is compatible with time slice?
02-21-2012 07:40 AM
Data is required to be the same sample and block size when used togetheter.
Why do you need to have different block and sample size?
02-21-2012 07:42 AM
You can't use separate... the Time Slice/Signal Switch module needs all inputs to be the same.
That's why I use it to select the frequency for the Generator module. Then the data separation is done by the Relay.
02-21-2012 07:48 AM
To CJ and TomRizzo
Oh!!! Ok...thanks very much. I'll try it tomorrow..