LOOKUP2 not working?


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    409

    Default LOOKUP2 not working?

    I thought I'd experiment a bit with Darrel's DT_Analog. I got my A-D working, then included DT_Analog.pbp and I keep getting a compile time error
    Error[113] c:\pbp\pbpppil43.lib 702 .. Symbol not previously defined (LOOKUP2).

    I'm using PBP 2.6 and the device is a 16F1828. Any ideas?

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: LOOKUP2 not working?

    Charlie,

    Have you been modifying the Libraries?

    There is no such file as pbpppil43.lib.
    DT

  3. #3
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: LOOKUP2 not working?

    Not modifying libraries, but not using spell check either. It should be pbppi14e.lib
    I did recently install MPLAB X for testing, but put it in a completely different directory structure.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: LOOKUP2 not working?

    MPLAB X for testing
    OH NOOOooooooooo......

    Just use the MPLAB that shipped with PBP and save yourself the headache.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: LOOKUP2 not working?

    Quote Originally Posted by mackrackit View Post
    OH NOOOooooooooo......

    Just use the MPLAB that shipped with PBP and save yourself the headache.
    I honestly think I am doing that.
    But this is a very strange error... My next step is to try to recreate the fault without Darrel's code, but first I need to learn about LOOKUP2.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: LOOKUP2 not working?

    LOOKUP2 is just the big brother of LOOKUP, so here are a couple of examples.
    http://melabs.com/samples/PBP-mixed/lookup.htm

    And this will place the value of a string into a variable
    Code:
    BUFFERQ  VAR BYTE[13] 
    B0          VAR BYTE
    B1          VAR BYTE 
    '#####################
    FOR B0 = 0 TO 12
        LOOKUP B0,[" MACKRACKIT",10,13],B1         
        BUFFERQ(B0) = B1
        NEXT B0
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. SERIN Not Working, SEROUT Working
    By cc1984 in forum Serial
    Replies: 11
    Last Post: - 26th October 2010, 19:16
  2. LOOKUP2 please help
    By emilhs in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 12th May 2009, 23:13
  3. lookup2?
    By jonas2 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th February 2009, 12:26
  4. Lookup2 & Lookdown2
    By saladlee in forum Serial
    Replies: 1
    Last Post: - 4th February 2008, 20:41
  5. Lcd Not Working..
    By koossa in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 15th June 2005, 10:36

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts