good;
I am trying to configure a Ptb300 the datalogger.
I connected to COM1, so that the sensor sends the message need to send the command "ptu" pra this I wrote the following program:
Const num_tam_total = 60
Public instring As String * 61
Public Send As String
DataTable (Instant, True, -1)
Sample (1, instring, String)
EndTable
BeginProg
SerialOpen (Com1, 4800,10,0, num_tam_total)
Send = "ptu"
Scan (1, Sec 0.0)
SerialOut (com1, Send, "", 0.100)
SerialIn (instring, Com1, 100, "", 61)
CallTable Instant
nextScan
EndProg
Returning the response to it is the command (ptu) itself instead of the message sensor. If someone could guide me on how to fix it.
Thank you very much.
* Last updated by: Fran on 12/9/2011 @ 6:51 AM *