This question is directed towards Peter Anderson. I am trying to execute your BX24 code named T_STAT.bas found at http://www.phanderson.com/basicx/ds1821_programmer.html and get an error. The error I get is "Line 173: Type of actual parameter does not match that of formal parameter". I tried a couple of things but can't seem to get anywhere. I am unclear about the Programming note that you mention on this page about signed and unsigned intergers. Do you have any idea what my problem maybe? Has this program been run anywhere that works? I am using the newer 2.1 version of the BasicX downloader. Thanks in advance for any help you have on this. |
|
DS1821 programming question
Started by ●December 20, 2003
Reply by ●December 21, 20032003-12-21
--- In , "David" <ke4fgw@i...> wrote: > This question is directed towards Peter Anderson. I am trying to > execute your BX24 code named T_STAT.bas found at > http://www.phanderson.com/basicx/ds1821_programmer.html and get an > error. The error I get is "Line 173: Type of actual parameter does > not match that of formal parameter". I tried a couple of things but > can't seem to get anywhere. I am unclear about the Programming note > that you mention on this page about signed and unsigned intergers. > Do you have any idea what my problem maybe? Has this program been > run anywhere that works? I am using the newer 2.1 version of the > BasicX downloader. Thanks in advance for any help you have on this. When the program was written, the syntax checking was not as tight. I have modified the routine. You might download it with this modification. I have sold many systems with this firmware. Peter H Anderson, http://www.phanderson.com |
|
Reply by ●December 21, 20032003-12-21
I down-graded my machine to the BasicX 2.0 Downloader program which has been out for over a year and still get errors. Besides the "Call OpenSerialPort(1, 19200)" error which I just commented out, I am now getting this error, "Line 430: Logical operation allowed only for boolean or unsigned discrete type (Byte UnsignedInterger or UnsignedLong)". Then I tried the code from your site which I assumed is what got modified and get this error, "Line 518: Unknown identifier 'getbyte'". What version of the Basicx Downloader works with your code? Thanks --- In , "pha555" <pha@p...> wrote: > --- In , "David" <ke4fgw@i...> wrote: > > This question is directed towards Peter Anderson. I am trying to > > execute your BX24 code named T_STAT.bas found at > > http://www.phanderson.com/basicx/ds1821_programmer.html and get an > > error. The error I get is "Line 173: Type of actual parameter does > > not match that of formal parameter". I tried a couple of things but > > can't seem to get anywhere. I am unclear about the Programming note > > that you mention on this page about signed and unsigned intergers. > > Do you have any idea what my problem maybe? Has this program been > > run anywhere that works? I am using the newer 2.1 version of the > > BasicX downloader. Thanks in advance for any help you have on this. > > When the program was written, the syntax checking was not as tight. I > have modified the routine. > > You might download it with this modification. > > I have sold many systems with this firmware. > > Peter H Anderson, http://www.phanderson.com |
|
Reply by ●December 21, 20032003-12-21
Works great for me using V 2 or 2.1. Are you compiling with SerialPort.Bas as indicated in the header description. Peter H Anderson, http://www.phanderson.com/basicx/ --- In , "David" <ke4fgw@i...> wrote: > I down-graded my machine to the BasicX 2.0 Downloader program which > has been out for over a year and still get errors. Besides the "Call > OpenSerialPort(1, 19200)" error which I just commented out, I am now > getting this error, "Line 430: Logical operation allowed only for > boolean or unsigned discrete type (Byte UnsignedInterger or > UnsignedLong)". Then I tried the code from your site which I assumed > is what got modified and get this error, "Line 518: Unknown > identifier 'getbyte'". What version of the Basicx Downloader works > with your code? Thanks > > --- In , "pha555" <pha@p...> wrote: > > --- In , "David" <ke4fgw@i...> wrote: > > > This question is directed towards Peter Anderson. I am trying to > > > execute your BX24 code named T_STAT.bas found at > > > http://www.phanderson.com/basicx/ds1821_programmer.html and get > an > > > error. The error I get is "Line 173: Type of actual parameter > does > > > not match that of formal parameter". I tried a couple of things > but > > > can't seem to get anywhere. I am unclear about the Programming > note > > > that you mention on this page about signed and unsigned > intergers. > > > Do you have any idea what my problem maybe? Has this program > been > > > run anywhere that works? I am using the newer 2.1 version of the > > > BasicX downloader. Thanks in advance for any help you have on > this. > > > > When the program was written, the syntax checking was not as > tight. I > > have modified the routine. > > > > You might download it with this modification. > > > > I have sold many systems with this firmware. > > > > Peter H Anderson, http://www.phanderson.com |
|
Reply by ●December 21, 20032003-12-21
No, I guess I'm not familiar with that step. I'll have to do some
reading on that. Thanks --- In , "pha555" <pha@p...> wrote: > > Works great for me using V 2 or 2.1. > > Are you compiling with SerialPort.Bas as indicated in the header > description. > > Peter H Anderson, http://www.phanderson.com/basicx/ > > --- In , "David" <ke4fgw@i...> wrote: > > I down-graded my machine to the BasicX 2.0 Downloader program which > > has been out for over a year and still get errors. Besides the "Call > > OpenSerialPort(1, 19200)" error which I just commented out, I am now > > getting this error, "Line 430: Logical operation allowed only for > > boolean or unsigned discrete type (Byte UnsignedInterger or > > UnsignedLong)". Then I tried the code from your site which I assumed > > is what got modified and get this error, "Line 518: Unknown > > identifier 'getbyte'". What version of the Basicx Downloader works > > with your code? Thanks > > > > --- In , "pha555" <pha@p...> wrote: > > > --- In , "David" <ke4fgw@i...> wrote: > > > > This question is directed towards Peter Anderson. I am trying to > > > > execute your BX24 code named T_STAT.bas found at > > > > http://www.phanderson.com/basicx/ds1821_programmer.html and get > > an > > > > error. The error I get is "Line 173: Type of actual parameter > > does > > > > not match that of formal parameter". I tried a couple of things > > but > > > > can't seem to get anywhere. I am unclear about the Programming > > note > > > > that you mention on this page about signed and unsigned > > intergers. > > > > Do you have any idea what my problem maybe? Has this program > > been > > > > run anywhere that works? I am using the newer 2.1 version of the > > > > BasicX downloader. Thanks in advance for any help you have on > > this. > > > > > > When the program was written, the syntax checking was not as > > tight. I > > > have modified the routine. > > > > > > You might download it with this modification. > > > > > > I have sold many systems with this firmware. > > > > > > Peter H Anderson, http://www.phanderson.com |
|
Reply by ●December 21, 20032003-12-21
I got it Peter. I added this module to the list of modules and it compiled just fine. Thanks for your help. --- In , "David" <ke4fgw@i...> wrote: > No, I guess I'm not familiar with that step. I'll have to do some > reading on that. Thanks > > --- In , "pha555" <pha@p...> wrote: > > > > Works great for me using V 2 or 2.1. > > > > Are you compiling with SerialPort.Bas as indicated in the header > > description. > > > > Peter H Anderson, http://www.phanderson.com/basicx/ > > > > --- In , "David" <ke4fgw@i...> wrote: > > > I down-graded my machine to the BasicX 2.0 Downloader program > which > > > has been out for over a year and still get errors. Besides > the "Call > > > OpenSerialPort(1, 19200)" error which I just commented out, I am > now > > > getting this error, "Line 430: Logical operation allowed only for > > > boolean or unsigned discrete type (Byte UnsignedInterger or > > > UnsignedLong)". Then I tried the code from your site which I > assumed > > > is what got modified and get this error, "Line 518: Unknown > > > identifier 'getbyte'". What version of the Basicx Downloader > works > > > with your code? Thanks > > > > > > --- In , "pha555" <pha@p...> wrote: > > > > --- In , "David" <ke4fgw@i...> wrote: > > > > > This question is directed towards Peter Anderson. I am > trying to > > > > > execute your BX24 code named T_STAT.bas found at > > > > > http://www.phanderson.com/basicx/ds1821_programmer.html and > get > > > an > > > > > error. The error I get is "Line 173: Type of actual > parameter > > > does > > > > > not match that of formal parameter". I tried a couple of > things > > > but > > > > > can't seem to get anywhere. I am unclear about the > Programming > > > note > > > > > that you mention on this page about signed and unsigned > > > intergers. > > > > > Do you have any idea what my problem maybe? Has this program > > > been > > > > > run anywhere that works? I am using the newer 2.1 version of > the > > > > > BasicX downloader. Thanks in advance for any help you have > on > > > this. > > > > > > > > When the program was written, the syntax checking was not as > > > tight. I > > > > have modified the routine. > > > > > > > > You might download it with this modification. > > > > > > > > I have sold many systems with this firmware. > > > > > > > > Peter H Anderson, http://www.phanderson.com |
Reply by ●December 21, 20032003-12-21
From: David <> > [...] > I am now getting this error, "Line 430: Logical operation > allowed only for boolean or unsigned discrete type (Byte > UnsignedInterger or UnsignedLong)". [...] As you probably know by now, you can get rid of this error message by turning off strict syntax checking. The switch was included for programmers who think &HFFFF is the same as -1. I can see their point, sort of, but they keep giving me funny looks when I offer to buy their cars for USD &HFFFF. -- Frank Manning -- NetMedia, Inc. |