Hi,
I need an instruction to create a program about wind gusts as follows:
"When de WS_ms>15 m/s, create a table that provides records at 10 hz for 10 minute, then repeat the cycle".
Thank you!
Take a look at the DataEvent() instruction.
http://www.campbellsci.com/tips-dataevent
and
https://www.campbellsci.com/blog/datalogger-memory-getting-full
Hi again,
with DatEvent() instruction i got the expected result, as follow:
..."- If wind gust over 15m/s is measured, Rachas measurement shall begin for 10 minutes."...
'Define Data Tables
'10hz output
DataTable(Hzx10,True,-1)
DataInterval(0,100,mSec,10)
DataEvent(0,WS_ms>15,1,5999) ' Store 0+1+5999 data after WS:ms above 15 m/s.
CardOut (0,-1)
Sample(1,WS_ms,FP2,False)
Sample(1,WindDir,FP2,False)
Sample(1,WindElev,FP2,False)
EndTable
But now, i need re-programmed considering below
- In case wind gust over 15m/s appears again within above mentioned 10 minutes, 10 minutes shall start again starting from its re-appearance.
Thanks,
PV.
The DataEvent will reset the end timer each measurement that is above your start condition.
So, your will record data until there is 10 minutes without wind above 15ms.
Hi,
I'm still in trouble, when i use the following instruction.....
.."DataTable(Wind_Gusts_Table,True,-1)
DataInterval(0,100,mSec,10)
DataEvent(0,WS_ms>=15,0,6000)
Sample(1,WS_ms,FP2,False
Sample(1,WindDir,FP2,False)
Sample(1,WindElev,FP2,False)
EndTable"...
The results don't satisfy the following sentences;...." In case wind gust over 15 m/s appears again within above mentioned 10 minutes, 10 minutes shall start again starting from its re-appearance."...Because the cycle is restarted when data 6000 is saved and not when it finds another value over 15 m/s between the firts 10 minutes. For example,
RN.- WS_ms
0.- 13.02
1.- 12.95
2.- 13.01
3.- 13.01
4.- 13.05
5.- 13.01
6.- 12.87
7.- 12.97
8.- 12.88
9.- 12.72
10.- 12.64
......
6000.- 11.2 (end firts 10 minutes)
But this example have five data with value over 15 m/s and de last one it´s 5.- 13.01. Therefore, this gusts should end in the data 6005.
please help!!
PV.
Firstly, you need to make sure you have the latest OS in your CR1000 which you can get from the website. This should be > OS31. Downloading this should alos update your CRBasic definitions and Help files.
In the "DataEvent" Help it states :-
RecAfter The RecAfter parameter is used to define the number of records to be stored in the DataTable after the data storage event is stopped. Beginning with OS 31, if the RecAfter parameter is negated (e.g., -N where N is the number of records), then a new event occurring during the RecAfter interval will stop the RecAfter count and begin a new DataEvent.
So, as long as you have the right OS in your CR1000, if you put in:-
DataEvent(0,WS_ms>=15,0,-6000)
This should do what you require.