Support Forums
Connecting Ultrasonic Flow meter with RS232

Hi,

I am currently trying to use an ultrasonic flow meter to determine flow through a pipe, during this time I would like to record the data using the dataTaker DT80. Currently I have connected the flow meter to the DT80 with a RS232 cable using the host port. I have chosen this port as a manual channel and succeeded in the channel setup. The problem arises when I try to read the data. I have tried using sections of previous topics but still no data is returned.

Here is my current code - NOTE: this is not a schedule but only a command.
PS=RS232,9600,N,8,1,NOFC
2SERIAL("\e{DT(CR)}" )'send command to host port - should read the date and time
2SERIAL("%2d","Date" )
2SERIAL(".%2d","Month" )
2SERIAL(".%4d","Year" )
2SERIAL("%*1s%2d","Hour" )
2SERIAL(":%2d","Minute" )
2SERIAL(":%2d","Second" )

This is only my second day of using the dataTaker so would appreciate some help. Thank you.

Hi, I am currently trying to use an ultrasonic flow meter to determine flow through a pipe, during this time I would like to record the data using the dataTaker DT80. Currently I have connected the flow meter to the DT80 with a RS232 cable using the host port. I have chosen this port as a manual channel and succeeded in the channel setup. The problem arises when I try to read the data. I have tried using sections of previous topics but still no data is returned. Here is my current code - NOTE: this is not a schedule but only a command. PS=RS232,9600,N,8,1,NOFC 2SERIAL("\\e{DT(CR)}" )'send command to host port - should read the date and time 2SERIAL("%2d","Date" ) 2SERIAL(".%2d","Month" ) 2SERIAL(".%4d","Year" ) 2SERIAL("%*1s%2d","Hour" ) 2SERIAL(":%2d","Minute" ) 2SERIAL(":%2d","Second" ) This is only my second day of using the dataTaker so would appreciate some help. Thank you.

Hi Karen,

Your code has incorrect declaration.
When you declare PS, it means profile for sersen port in which you must wire the sensor to the serial port terminal in front of the logger.
Furthermore this serial port uses 1SERIAL to trigger it.

When you declare it with 2SERIAL, it refers to host port and the location is at the left side of the logger (DB9 connector).
And because the host port, profile declaration would be PH.

Best regards,
Rudy Gunawan

Hi Karen, Your code has incorrect declaration. When you declare PS, it means profile for sersen port in which you must wire the sensor to the serial port terminal in front of the logger. Furthermore this serial port uses 1SERIAL to trigger it. When you declare it with 2SERIAL, it refers to host port and the location is at the left side of the logger (DB9 connector). And because the host port, profile declaration would be PH. Best regards, Rudy Gunawan
18
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft