Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

How to connect Thies Ultrasonic 2D on CR1000


sonerharnuboglu Sep 25, 2019 08:02 PM

Dear All,

I try to connect Thies Ultrasonic 2D sensor with the version of 4.3820.00.340 on CR1000 data logger.

Manual of the sensor : http://www.skypowerinternational.com/uploads/documents/4.382x.xx.xxx_US-Anemometer-2D_V3.09_e.pdf

Baudrate is 9600, Duplex mode is Full duplex and Data telegram is VDT-Telegram (Telegram2).

I will be using a RS485 to RS232 converter to connect the sensor to data logger. I have been informed by Thies Clima as the sensor is in the library of Short Cut but there is no such sensor in the library.

Can anyone share an example program to be used on CR1000 to read the sensor?

Regards


aks Oct 4, 2019 06:29 PM

If the sensor is configured to push data, no queries fro the logger, then you can use the following program. Just take care to match the com port.

'CR1000 Series Datalogger
'To create a different opening program template, type in new
'instructions and select Template | Save as Default Template
'date:
'program author:

'Declare Public Variables
'Example:
Public PTemp, batt_volt
Public Thies_2d As String *50
Public Thies(2)
Alias Thies(1)=WindSp
Alias Thies(2)=WindDir


Public NBytesReturned


'Declare Other Variables
'Example:
'Dim Counter

'Declare Constants
'Example:
'CONST PI = 3.141592654

'Define Data Tables
DataTable (Test,1,-1)
DataInterval (0,1,Sec,10)
Sample (1,WindSp,FP2)
Sample (1,WindDir,FP2)
EndTable

'Define Subroutines
'Sub
'EnterSub instructions here
'EndSub

'Main Program
BeginProg
Scan (1,Sec,0,0)
SerialOpen (COMRS232,-9600,0,0,50)
PanelTemp (PTemp,250)
Battery (batt_volt)
SerialInRecord (COMRS232,Thies_2d,&H02,8,0,NBytesReturned,01)
SplitStr (Thies(),Thies_2d," ",2,0)
'Enter other measurement instructions
'Call Output Tables
'Example:
CallTable Test
NextScan
EndProg

Log in or register to post/reply in the forum.