Home > Software engineering >  Seek counsel novice! Questions about receive serial data
Seek counsel novice! Questions about receive serial data

Time:09-30

Select Case mEvent MSComm1.Com
Case comEvReceive
Bytreceived1 ()=MSComm1. Input
Txtreceive. Text=txtreceive. Text + CRH (bytreceived1 (I))
Intfilerecord=intfilerecord + 1
B=CRH (bytreceived1 (I))
If Asc (b) & lt;> 10 Then
Transferdata=https://bbs.csdn.net/topics/transferdata + b
The Else
Dataread=True
End the If
End the Select
Instrument every time send is 2.63449 e-03, receive 2.63449 e-032. 63454 e - 032.59587 e-032. 58573 e - 032.55497 e-03 a string of data, how can I behind each data line, and shown in the text?

CodePudding user response:

The code simply don't understand!
An Input to txtreceive spell only one character at a time?
Why with I?
Do you use the variables?

CodePudding user response:

Don't back to the I cross the border in the table below,

CodePudding user response:

You don't want to clarify your code is doing what, how to change?

CodePudding user response:

Is instrument each send a data: 2.63449 e-03, now the code is to display data in a text is not separated: 2.63449 e-032. 63454 e - 032.59587 e-032. 58573 e - 032.55497 e-03, I'd like to add a newline after each data, as for variables, I just to let him not prompt subscript crossing the line, you can ignore the b

CodePudding user response:

Only say expectations as a result, don't you say you now program logic, the actual situation of each problem, let others give you from the beginning to write one?
  • Related