Frequency Counter


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Location
    Merango, IL
    Posts
    13


    Did you find this post helpful? Yes | No

    Talking

    Darrel,

    Thank you, I didn't even think of that while I was doing this code. It makes a lot more sense now. Thank you again.


    I have one more question, well it's more of something going on with PBP. I have about 30 PCB board designs and Software for each of them. I have all the file to each board in a dedicated folder including the sch, pcb layout, and PBP files. In this one folder the board has 2 PICs onboard and when I try to compile one it overwrites all the files of the other ones, except for the pbp file. Also, what is stranger is that it takes my sch file and renames it after the file I just compiled, and the sch file has nothing to do with pbp. Has anyone ever seen this occur. It's only on this one folder so it's not a big deal I just made a seperate folder for each PIC inside the main folder.

    Again thank you for all the help everyone. I appreciate the support. Hopefully this new project of mine will continue smoothly for a while.

    Anthony Smith

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


    Did you find this post helpful? Yes | No

    Default

    Yeah, isn't that annoying?
    I lost several files before realizing what was going on.

    When PBP does a compile, it first deletes all the files generated on the last compile.
    But, instead of being Smart about it and verifiying the filenames it needs to delete, it just deletes everything with the same Name.

    But here's the problem ... it uses the old DOS style names when it does it. So everything with the same 8 characters in the beginning of the filename also get deleted.

    Let's say you have the following files ...

    TestProg.PBP
    TestProg.ASM
    TestProg.LST
    TestProg.XRF
    TestProg.HEX
    TestProg.XLS
    TestProg.BRD

    When you compile TestProg.PBP, you will lose the Excel and PC board files (.XLS and .BRD) because they have the same Name.

    You would also lose these files, if they were there.

    TestProg_Try2.HEX
    TestProgram.ASM
    TestProgram3.INC

    or any other file with the same first 8 characters, that isn't a .BAS or .PBP.

    So, you're right. It's best to have each program in it's own folder.
    And, be sure to name anything else in that folder something different than the main program.


    HTH,
    DT

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,175


    Did you find this post helpful? Yes | No

    Default

    Yeah, it is easy to do a:

    del testprog.*

    than check each file with its own extension.

    Now I understand why I lost a project sometime ago and never knew why... pitty.

    Thanks Darrel.

    Ioannis

  4. #4
    Join Date
    Jun 2007
    Location
    Merango, IL
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Thank you for the insight on this issue Darrel. I understand what is going on now. I will be sure to keep everything seperated, or maybe just start the file name with the specific file task instead of end with it. Thanks again.

    Anthony

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 07:14
  2. Audio Frequency Counter
    By mister_e in forum Code Examples
    Replies: 8
    Last Post: - 29th July 2009, 09:25
  3. frequency counter help and pointers
    By comwarrior in forum General
    Replies: 2
    Last Post: - 30th June 2009, 12:51
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 18:27
  5. Frequency Counter using PIC and PicBasic
    By PICtron in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 28th January 2005, 07:20

Members who have read this thread : 1

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