Hello,
I saved the output to a text file and it has some unsual characters.
This is what I am using:
string b = mySerialPort.ReadExisting();
string desktop = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
string image1 = System.IO.Path.Combine(desktop, "Temperature_LOG.txt");
using (FileStream fs = new FileStream(image1, FileMode.Append, FileAccess.Write))
{
using (BinaryWriter bw = new BinaryWriter(fs))
{
bw.Write(b);
}
}
0040.0
0020.1 0050.0 0000.0 0100.0 0100.0 0000.0 0010.5 0000.0 0009.0 0000.0 0009.0 0000.0 00
09.0 00000000000000000000000000000000
0040.0 0020.1 0050.0 0000.0 0100.0 0100.0 0000.0 0010.5 0000.0 0009.0 0000.0 0009.0 0000.0 0009.0 00000000000000000000000000000000
0040.0 0020.1 0050.0 0000.0 0100.0 0100.0 0000.0 0010.4 0000.0 0009.0 0000.0 0009.0 0000.0 0009.0 00000000000000000000000000000000
0040.0 0020.1 0050.0 0000.0 0100.0 0100.0 0000.0 0010.4 0000.0 0009.0 0000.0 0009.0 0000.0 0009.0 00000000000000000000000000000000
What I have tried:
I am saving it to a text file but it gives out the above mentioned input