LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Read: looping through output

Hello,

 

I am seeking to read a temperature reading from a thermistor.

I am using a Wifi connection with ESP 32.

I am able to send data and plot it on LabView, but it is incorrect.

The output is -273.15 and I get a strange plot of the value looped -273.15, 273.75, 73.15, 3.15, 15.

I've tried all of the modes - Standard, Immediate, CRLF and changed timeout number.

 

There is no error number, just strange behavior.

Thank you,

Maria

 

 

0 Kudos
Message 1 of 3
(432 Views)

Could you give more details on the messaging protocol you programmed into the ESP32?  Supplying code would be even better.  We need those details before we can say anything about how to read it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(425 Views)

Hi - This problem was solved by adding this code on the ESP32 side:

client.print(temp1, 2);
client.print("\r\n");
 
^Under client.print() I had to add client.print("\r\n") in order to break up what I was sending into a "packet" for TCP.

Some of this thread was partially deleted so the response is no longer here.
0 Kudos
Message 3 of 3
(288 Views)