Shop OBEX P1 Docs P2 Docs Learn Events
Help with error (148)message. — Parallax Forums

Help with error (148)message.

ArchiverArchiver Posts: 46,084
edited 2003-05-24 18:10 in General Discussion
Attempting to run a program I obtained to control a servo thru
MiniSSC. Each time I attempt to 'run', I receive an error window-
'expect a label' noted 'error 148'. The '[noparse][[/noparse]' is highlighted. The line
is: serin 8, 16572, 1200,[noparse][[/noparse]wait("GPRMC,"),wait............ I am brand
new to this and have looked and can not find any reference to error
messages, what it means, of how to resolve.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-05-24 16:31
    At 03:30 PM 5/24/03 +0000, wsmalley2001 wrote:
    >Attempting to run a program I obtained to control a servo thru
    >MiniSSC. Each time I attempt to 'run', I receive an error window-
    >'expect a label' noted 'error 148'. The '[noparse][[/noparse]' is highlighted. The line
    >is: serin 8, 16572, 1200,[noparse][[/noparse]wait("GPRMC,"),wait............ I am brand
    >new to this and have looked and can not find any reference to error
    >messages, what it means, of how to resolve.
    Presuming the second WAIT is actually in your code, remove it, as WAIT
    is a PBASIC Reserved Word:
    serin 8, 16572, 1200,[noparse][[/noparse]wait("GPRMC,"),wait
    ^^^
    Regards,

    Bruce Bates



    >To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    >from the same email address that you subscribed. Text in the Subject and
    >Body of the message will be ignored.
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2003-05-24 18:10
    Your code is specifying a Timeout of 1200 milliseconds but not telling the
    program where to go if the SERIN times out. The label would come after the
    timeout period and right before the data section -- that's why the compiler is
    highlighting what it does. See the SERIN description in the online documentation

    or manual for details.

    -- Jon Williams
    -- Parallax

    In a message dated 5/24/2003 10:53:44 AM Central Standard Time,
    wsmalley@c... writes:

    > Attempting to run a program I obtained to control a servo thru
    > MiniSSC. Each time I attempt to 'run', I receive an error window-
    > 'expect a label' noted 'error 148'. The '[noparse][[/noparse]' is highlighted. The line
    > is: serin 8, 16572, 1200,[noparse][[/noparse]wait("GPRMC,"),wait............ I am brand
    > new to this and have looked and can not find any reference to error
    > messages, what it means, of how to resolve.



    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.