Home > Software engineering >  Reads the data in a serial port using MFC TeeChart draw dynamic waveform
Reads the data in a serial port using MFC TeeChart draw dynamic waveform

Time:10-06

MCU every 2.5 ms up a machine sends a frame (3 bytes) data, a frame format is as follows:

One of the first byte AA for the frame head, the second byte of data is high, the third byte of data low, such as AA0235, the data has a value of 0 x0235, continuously receives the data for 565, the upper machine AA 02 35 AA 45 AA 06 03 25...
Refer to the online application, are OnCommMscomm1 (in) drawing, namely each received a drawing, which is feasible in sending frequency is slow, but due to the sending frequency too fast, each received a drawing, waveform refresh will be very fast, this kind of circumstance how to dynamically draw the wave form, please?

CodePudding user response:

You can't receive the data in the cache, when hit a certain amount of time, on the drawing? If the frequency of fast ~

CodePudding user response:

Draw a time can set the buffer size
  • Related