Hey Roger,
This question is with regard to my ultrasonic anemometer (Vaisala WMT52). Can you please tell me how I would modify the following code to return only the following:
- Wind direction average (2CV)
- Wind speed average (5CV)
- Wind speed max (6CV)
Thanks,
Grant
BEGIN
1SSPWR=1
/T
PS=9600,E,7,1,NOFC
1SERIAL(RS485,"{\\e}")
RA1S LOGONA
1SERIAL(RS485,"\\e{0R1\\013\\010}\\m[,Dn=]%f[1CV],%*3S%f[2CV],%*3S%f[3CV],%*3S%f[4CV],%*3S%f[5CV],%*3S%f[6CV]",2,W)
1CV("Wind Dir Min ~Deg")
2CV("Wind Dir Ave ~Deg")
3CV("Wind Dir Max ~Deg")
4CV("Wind Speed Min ~m/s")
5CV("Wind Speed Ave ~m/s")
6CV("Wind Speed Max ~m/s")
END
Here is also some output which may or may not help:
1SERIAL: RxBuf=3[K\013\010]
1SERIAL: InputAction: "\e"
1SERIAL: RxBuf-0[]
1SERIAL: OutputActions: "0R1\013\010"
1SERIAL: Tx [0R1\013\010]
1SERIAL: InputAction: "\m[,Dn=]"
1SERIAL: RxBuf+53[0R1,Dn=238D,Dm=283D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: RxBuf-46[238D,Dm=283D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%f[1CV]"
1SERIAL: RxBuf-43[D,Dm=283D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: ","
1SERIAL: RxBuf-41[Dm=283D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%*3S"
1SERIAL: RxBuf-38[283D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%f[2CV]"
1SERIAL: RxBuf-35[D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: ","
1SERIAL: RxBuf-33[Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%*3S"
1SERIAL: RxBuf-30[352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%f[3CV]"
1SERIAL: RxBuf-27[D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: ","
1SERIAL: RxBuf-25[Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%*3S"
1SERIAL: RxBuf-22[0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%f[4CV]"
1SERIAL: RxBuf-19[K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: ","
1SERIAL: RxBuf-17[Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%*3S"
1SERIAL: RxBuf-14[0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%f[5CV]"
1SERIAL: RxBuf-11[K,Sx=0.3K\013\010]
1SERIAL: InputAction: ","
1SERIAL: RxBuf-9[Sx=0.3K\013\010]
1SERIAL: InputAction: "%*3S"
1SERIAL: RxBuf-6[0.3K\013\010]
1SERIAL: InputAction: "%f[6CV]"
1SERIAL: RxBuf-3[K\013\010]
Time 13:34:09.000
Wind Dir Min 238.0 Deg
Wind Dir Ave 283.0 Deg
Wind Dir Max 352.0 Deg
Wind Speed Min 0.3 m/s
Wind Speed Ave 0.3 m/s
Wind Speed Max 0.3 m/s
Hey Roger,
This question is with regard to my ultrasonic anemometer (Vaisala WMT52). Can you please tell me how I would modify the following code to return only the following:
- Wind direction average (2CV)
- Wind speed average (5CV)
- Wind speed max (6CV)
Thanks,
Grant
````
BEGIN
1SSPWR=1
/T
PS=9600,E,7,1,NOFC
1SERIAL(RS485,"{\\e}")
RA1S LOGONA
1SERIAL(RS485,"\\e{0R1\\013\\010}\\m[,Dn=]%f[1CV],%*3S%f[2CV],%*3S%f[3CV],%*3S%f[4CV],%*3S%f[5CV],%*3S%f[6CV]",2,W)
1CV("Wind Dir Min ~Deg")
2CV("Wind Dir Ave ~Deg")
3CV("Wind Dir Max ~Deg")
4CV("Wind Speed Min ~m/s")
5CV("Wind Speed Ave ~m/s")
6CV("Wind Speed Max ~m/s")
END
````
Here is also some output which may or may not help:
````
1SERIAL: RxBuf=3[K\013\010]
1SERIAL: InputAction: "\e"
1SERIAL: RxBuf-0[]
1SERIAL: OutputActions: "0R1\013\010"
1SERIAL: Tx [0R1\013\010]
1SERIAL: InputAction: "\m[,Dn=]"
1SERIAL: RxBuf+53[0R1,Dn=238D,Dm=283D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: RxBuf-46[238D,Dm=283D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%f[1CV]"
1SERIAL: RxBuf-43[D,Dm=283D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: ","
1SERIAL: RxBuf-41[Dm=283D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%*3S"
1SERIAL: RxBuf-38[283D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%f[2CV]"
1SERIAL: RxBuf-35[D,Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: ","
1SERIAL: RxBuf-33[Dx=352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%*3S"
1SERIAL: RxBuf-30[352D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%f[3CV]"
1SERIAL: RxBuf-27[D,Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: ","
1SERIAL: RxBuf-25[Sn=0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%*3S"
1SERIAL: RxBuf-22[0.3K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%f[4CV]"
1SERIAL: RxBuf-19[K,Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: ","
1SERIAL: RxBuf-17[Sm=0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%*3S"
1SERIAL: RxBuf-14[0.3K,Sx=0.3K\013\010]
1SERIAL: InputAction: "%f[5CV]"
1SERIAL: RxBuf-11[K,Sx=0.3K\013\010]
1SERIAL: InputAction: ","
1SERIAL: RxBuf-9[Sx=0.3K\013\010]
1SERIAL: InputAction: "%*3S"
1SERIAL: RxBuf-6[0.3K\013\010]
1SERIAL: InputAction: "%f[6CV]"
1SERIAL: RxBuf-3[K\013\010]
Time 13:34:09.000
Wind Dir Min 238.0 Deg
Wind Dir Ave 283.0 Deg
Wind Dir Max 352.0 Deg
Wind Speed Min 0.3 m/s
Wind Speed Ave 0.3 m/s
Wind Speed Max 0.3 m/s
````