Hallo, everyone,
I have a question. I receive "char" type string data from MCU with Labview continuously. The communication is very good, no data lost. But when I try to store the data with Textfile with hex type. when no continuous "00" appears is ok, such as "FF 5E 33 00 4A", but when receive "FF 5E 33 00 00 00 4A", the stored data also "FF 5E 33 00 4A" .
Attached file is the .vi, thanks for any help.
the code in MCU is:
unsigned char cctv[16]=0;
....
printf("%c",cctv[i]);
......
Saved data:
50,67 5507305EFEFE22F0340D01D040901081FF13AC1FB3900
50,72 5507E061FEFF15E02D1B61C04110060C1FF13AC1FB3900
50,77 5507805DFF142220460C71F04060060C1FF13A81FB3900
50,82 55072067FF8111E02413A20425012081FF813981FB3900
50,87 55072067FF8111E0241F61E041100E081FF13A41FB3900
50,92 5504E05BFF8419603219B2E041100E081FF13A41FB3900
50,97 5504A065FF7721A03211726042B00C081FF13A81FB3900
51,02 55054062FF5B15D01517D220415010C1FF13AC1FB3900