I would like to log the wind data of an ultrasonic wind sensor type Young 81000, using a DT80 series 2 (most recent firmware installed). The wind sensor has been programmed as follows:
- it waits for the poll string "MA!"
- it responds with the following string: " 0.52 2.7 -4.4 16.87 0" meaning: windspeed, azimuth, elevation, temperature, error code format: real[m/s], real[deg], real[m], real[degC], integer[-].
The wind sensor is connected to DT80 serial port 2 (9 pins connector on the left of the logger). RS232 connections and port settings seem to be correct: when I program the wind sensor to output continuous results (without polling), and use the DeLogger5 command 'Text' > 'Serial Direct Mode' > '2SERIAL' then I observe a stream of output strings with correct wind speed, azimuth, elevation, temperature and error code zero.
So I conclude that hardware connections and settings are OK. The polling using the poll string 'MA!' does work because I tested it on a pc with a terminal server program. However, I don't manage to log the wind sensor output. FIRST PROGRAM: I try to log into individual variables:
'JOB=JOB1
'COMPILED=2010/03/13 16:14:26
'TYPE=dt80
DT=\d
BEGIN"JOB1"
CATTN
'Spans and polynomial declarations
'Thermistor declarations
'Switches declarations 'Parameter declarations
'Global declarations
RS1S
'schedule definition
RA("B:",ALARMS:OV:100KB,DATA:OV:1MB)2S LOGONA GA
2SERIAL("{MA!}%f[1CV]%f[2CV]%f[3CV]%f[4CV]%d[5CV]\e",=6CV,1.1)
END
'end of program file
The programs (I think) polls every 2 seconds with 'MA!' then waits at least 1.1s for sensor output (It takes the sensor 1s to generate data).
The result is a stream of error messages, every 2 seconds:
'Serial sensor scan error at control string position 13'
The variables are not filled nor stored on disk.
SECOND PROGRAM: I try to log into 1 string
'JOB=JOB1
'COMPILED=2010/03/13 16:14:26
'TYPE=dt80
DT=\d BEGIN"JOB1"
CATTN
'Spans and polynomial declarations
'Thermistor declarations
'Switches declarations
'Parameter declarations
'Global declarations
RS1S
'schedule definition
RA("B:",ALARMS:OV:100KB,DATA:OV:1MB)2S LOGONA GA
2SERIAL("{MA!}%31s[1$]\e",=6CV,1.1)
END
'end of program file
This time, no error occurs, but again no wind data are logged nor displayed. I work exclusively with DeLogger, searched the manual and this forum but although I find similar topics, I did not find a solution how to do this exactly.
Many of the DeLogger options are not clear at all to me. Could anyone help how to do this exactly? I suppose that logging a digital sensor using the RS232 port has been successfully done before...
Thanks,
PME
I would like to log the wind data of an ultrasonic wind sensor type Young 81000, using a DT80 series 2 (most recent firmware installed). The wind sensor has been programmed as follows:
- it waits for the poll string "MA!"
- it responds with the following string: " 0.52 2.7 -4.4 16.87 0" meaning: windspeed, azimuth, elevation, temperature, error code format: real[m/s], real[deg], real[m], real[degC], integer[-].
The wind sensor is connected to DT80 serial port 2 (9 pins connector on the left of the logger). RS232 connections and port settings seem to be correct: when I program the wind sensor to output continuous results (without polling), and use the DeLogger5 command 'Text' > 'Serial Direct Mode' > '2SERIAL' then I observe a stream of output strings with correct wind speed, azimuth, elevation, temperature and error code zero.
So I conclude that hardware connections and settings are OK. The polling using the poll string 'MA!' does work because I tested it on a pc with a terminal server program. However, I don't manage to log the wind sensor output. FIRST PROGRAM: I try to log into individual variables:
````
'JOB=JOB1
'COMPILED=2010/03/13 16:14:26
'TYPE=dt80
DT=\d
BEGIN"JOB1"
CATTN
'Spans and polynomial declarations
'Thermistor declarations
'Switches declarations 'Parameter declarations
'Global declarations
RS1S
'schedule definition
RA("B:",ALARMS:OV:100KB,DATA:OV:1MB)2S LOGONA GA
2SERIAL("{MA!}%f[1CV]%f[2CV]%f[3CV]%f[4CV]%d[5CV]\e",=6CV,1.1)
END
'end of program file
````
The programs (I think) polls every 2 seconds with 'MA!' then waits at least 1.1s for sensor output (It takes the sensor 1s to generate data).
The result is a stream of error messages, every 2 seconds:
````
'Serial sensor scan error at control string position 13'
````
The variables are not filled nor stored on disk.
SECOND PROGRAM: I try to log into 1 string
````
'JOB=JOB1
'COMPILED=2010/03/13 16:14:26
'TYPE=dt80
DT=\d BEGIN"JOB1"
CATTN
'Spans and polynomial declarations
'Thermistor declarations
'Switches declarations
'Parameter declarations
'Global declarations
RS1S
'schedule definition
RA("B:",ALARMS:OV:100KB,DATA:OV:1MB)2S LOGONA GA
2SERIAL("{MA!}%31s[1$]\e",=6CV,1.1)
END
'end of program file
````
This time, no error occurs, but again no wind data are logged nor displayed. I work exclusively with DeLogger, searched the manual and this forum but although I find similar topics, I did not find a solution how to do this exactly.
Many of the DeLogger options are not clear at all to me. Could anyone help how to do this exactly? I suppose that logging a digital sensor using the RS232 port has been successfully done before...
Thanks,
PME