06-10-2015 08:57 PM
I am trying to get the readings of a thermometer in Dasylab. The serial string looks like:
C,-9.1
where C is the unit and -9.1 is the numeric value of the temperature.
Thank you in advance
06-11-2015 08:01 AM
I would skip over the C, and then interpret the data.
2x a\r
assuming that the line ends with a return. If it ends with a return linefeed, then
2x a\r\n
If that doesn't work, send a screenshot of the RS232 monitor.
If you want the C, then you can read it as a byte, or store it to a Global String.
06-12-2015 05:37 PM
I have tried both suggestions and it didn't work. I am sending you attached screen shoots of the settings and the RS232 monitor. Thank you very much for your help.
06-13-2015 09:50 AM
Coul you please show as the ASCII format instead of the HEX in the moonitor?
06-13-2015 10:55 AM
Absolutely, here it is the ASCII monitor
06-13-2015 12:31 PM
I think the reason why is not working is that the setting on your COM port are correct.
WHat we are seeing in the screen is nothing like you described. As you can see in the monitor, nowhere there is a "C,-9.1" that means DASYLab cannot detect it.
Please check your port setting again.
06-13-2015 03:56 PM
I get the value "C,-9.1" when I use another software (RS232 DATALOGGER). And the port settings in Dasylab are the same as I used in the previously mentioned software.
06-15-2015 07:31 AM
Could you show us the settings and readout of the datalogger?
06-15-2015 07:39 AM
It really does look like the number of bits or the parity is configured incorrectly. You should clearly see the text in the RS232 monitor.
You could try varying the interface settings, and check the RS232 monitor each time.
06-21-2015 09:36 AM
Attached is the Datalogger settings and the readings.
I have tried several combinations of the interface settings, and I couldn't get it to work. Each time that I tried a different setting the readings on the monitor changes. How can I determine what is the right interface setting?