Hello, I'm new to power basic and I was given the task of
fixing this program!!
The program is connecting to a serial buffer device and
polling records out of the device into the program.
It appears that the code is making a clean connection and
the data is comming into the program.
Here is the code that I have a question about...
Open "COM1:1200,N,8,1" AS #2
Open "CALLREC" For Append As #3
DELAY 3
Rem
Rem ********* BEGIN DATA COLLECTION ***********
Rem
MAIN:
If Loc(2) > 20 Then
'perform logic
End If
Through debugging my program using an evaluate on Loc(2), I
noticed that the value is '?????'
Does anyone know of any reason that Loc(2) is never receiving
any of the data from the buffer device?
Thanks so much for your assistance.
Bob
------------------
fixing this program!!
The program is connecting to a serial buffer device and
polling records out of the device into the program.
It appears that the code is making a clean connection and
the data is comming into the program.
Here is the code that I have a question about...
Open "COM1:1200,N,8,1" AS #2
Open "CALLREC" For Append As #3
DELAY 3
Rem
Rem ********* BEGIN DATA COLLECTION ***********
Rem
MAIN:
If Loc(2) > 20 Then
'perform logic
End If
Through debugging my program using an evaluate on Loc(2), I
noticed that the value is '?????'
Does anyone know of any reason that Loc(2) is never receiving
any of the data from the buffer device?
Thanks so much for your assistance.
Bob
------------------
Comment