I am trying to write an interface to a lab machine. The machine sends test results automatically when they are finished. I can not get the results to display in my VB app. I can use hyper terminal and it will dump the results just fine but it will not in my app. I am using a null modem on serial that I know is good because I can hook it up between two computers and it works fine. We also did a 2 way port test with the lab machine and it sent and received the test data but it will not recieve the actual data. I am using the oncom event to get the input like this:
Private Sub MSComm1_OnComm()
Select Case MSComm1.CommEvent
' Event messages.
Case comEvReceive
Text2.Text = Text2.Text & MSComm1.Input
End Select
End Sub
The machine can also take limited input. The input is supposed to be in a certain format and if the machine receives incorrectly formatted imput it is supposed to generate an error message. I never get the error message when I send data to the machine but the machine just seems to ignore the data as if it was generating errors. All the settings are mirrored from my app to the lab machine, ie 9600,N,8,1, etc. Any ideas of what to check?
Thanks,
Shannan
Private Sub MSComm1_OnComm()
Select Case MSComm1.CommEvent
' Event messages.
Case comEvReceive
Text2.Text = Text2.Text & MSComm1.Input
End Select
End Sub
The machine can also take limited input. The input is supposed to be in a certain format and if the machine receives incorrectly formatted imput it is supposed to generate an error message. I never get the error message when I send data to the machine but the machine just seems to ignore the data as if it was generating errors. All the settings are mirrored from my app to the lab machine, ie 9600,N,8,1, etc. Any ideas of what to check?
Thanks,
Shannan