Home > Community > Forums > PCB SKILL > Can we read an image file(*.bmp)

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Can we read an image file(*.bmp) 

Last post Wed, Apr 2 2014 8:06 PM by baimage. 14 replies.
Started by ELEKVN 17 Jan 2009 01:58 AM. Topic has 14 replies and 6472 views
Page 1 of 1 (15 items)
Sort Posts:
  • Sat, Jan 17 2009 1:58 AM

    • ELEKVN
    • Top 100 Contributor
    • Joined on Mon, Dec 15 2008
    • Califonia, CA
    • Posts 70
    • Points 1,115
    Can we read an image file(*.bmp) Reply

     i want to read in an image file(*.bmp) and inport it to allegro,but i
    found no built-in functions can do this(open a port in binary mode and
    read file bit by bit),
    i also need to write some information in binary mode.

    Elek

    luan.elek@yahoo.com.vn
    • Post Points: 35
  • Sat, Jan 17 2009 12:26 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: Can we read an image file(*.bmp) Reply

    Hi Elek,

    I have written code to do this. See http://www.cadence.com/community/forums/T/10154.aspx

    Cheers, Dave

    Dave Elder, Tait Communications
    • Post Points: 20
  • Mon, Jan 19 2009 6:11 PM

    • ELEKVN
    • Top 100 Contributor
    • Joined on Mon, Dec 15 2008
    • Califonia, CA
    • Posts 70
    • Points 1,115
    Re: Can we read an image file(*.bmp) Reply

     It is great,you are a good man.

    Thank you very much

    Elek

    luan.elek@yahoo.com.vn
    • Post Points: 20
  • Mon, Jan 19 2009 6:17 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: Can we read an image file(*.bmp) Reply

    You're welcome.

    Dave Elder, Tait Communications
    • Post Points: 20
  • Mon, Feb 9 2009 10:16 PM

    • MAAC
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Bangalore, Karnataka
    • Posts 195
    • Points 3,620
    Re: Can we read an image file(*.bmp) Reply

    Hello Dave,

    I`m new to skill.. i am not able to locate any ".ilint" file in the env folder..should i setup anything to retreive this..where should i save all the skill code so that i can give the skill>command in the PCB Editor to perform any action.

     

    Thnx.

    • Post Points: 20
  • Tue, Feb 10 2009 2:15 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: Can we read an image file(*.bmp) Reply

    Hi,

    You will need to create the allegro.ilinit file using a text editor. This should go in your [ALLEGRO_SITE]\pcb\skill folder.

    ie. c:\myAllegroSite\pcb\skill where your ALLEGRO_SITE Windows environment variable is set to c:\myAllegroSite.

    I don't recommend putting it in C:\Cadence\SPB_xx.x\tools\pcb\skill because you will lose that when you update your Allegro version.

    There are several clever features available to you in an ilinit file but you can just add the line:

    load("logoMaker_public.il")

    Cheers, Dave

     

    Dave Elder, Tait Communications
    • Post Points: 20
  • Wed, Feb 11 2009 12:29 AM

    • MAAC
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Bangalore, Karnataka
    • Posts 195
    • Points 3,620
    Re: Can we read an image file(*.bmp) Reply

    Hi Dave,

     Thnx for the reply..

    I tried the steps which u mentioned n copied the logoMaker_public.il file inside the pcb\skill folder(defined under Allegro_Site). Then i added  load("logoMaker_public.il")   inside the allegro.ilinit file, but i am facing the following error

    Skill > logomaker
    E- *Error* toplevel: undefined variable - logomaker
    nil

     

    n this is the 1st time i`m working with skill....Should i set any other path...

    Thnx....

    • Post Points: 20
  • Wed, Feb 11 2009 11:21 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: Can we read an image file(*.bmp) Reply

    Nearly there... 

    You should type logomaker in the command console - not the Skill console.

    Cheers, Dave

    Dave Elder, Tait Communications
    • Post Points: 20
  • Thu, Feb 12 2009 3:58 AM

    • MAAC
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Bangalore, Karnataka
    • Posts 195
    • Points 3,620
    Re: Can we read an image file(*.bmp) Reply

    Dave,

    Still i`m facing the same issue... i think i making some mistake in providing the path..... 

    Command > logomaker
    E- Command not found: logomaker
    Command >

    I have tried with other skill also which are present in sourcelink.. The following is my .ilinit file

     

    load("logoMaker_public.il")

    load("add_symbol.il")

    load("checkWidth.il")

     

    I have this .ilinit file inside Skill folder where the above .il files are copied.

     Can you corrent me...

    Thnx

    • Post Points: 20
  • Thu, Feb 12 2009 10:58 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: Can we read an image file(*.bmp) Reply

    What is your ALLEGRO_SITE variable set to?

    Dave Elder, Tait Communications
    • Post Points: 20
  • Thu, Feb 12 2009 9:24 PM

    • MAAC
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Bangalore, Karnataka
    • Posts 195
    • Points 3,620
    Re: Can we read an image file(*.bmp) Reply

    Allegro Site=d:\Allegrosite..

     Inside this folder i have pcb\skill where i have created the allegro .ilinit file and i have copied all the .il file(i.e. inside the skill folder)

    Thnx..

    • Post Points: 20
  • Fri, Feb 13 2009 12:34 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: Can we read an image file(*.bmp) Reply

    The variable should be ALLEGRO_SITE

    Cheers, Dave

    Dave Elder, Tait Communications
    • Post Points: 20
  • Sun, Feb 15 2009 8:03 PM

    • MAAC
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Bangalore, Karnataka
    • Posts 195
    • Points 3,620
    Re: Can we read an image file(*.bmp) Reply

    It is already set to ALLEGRO_SITE  d:\Allegrosite... n i`m able to see the same thru set of PCB Editor

    Thnx..

    • Post Points: 20
  • Mon, Feb 16 2009 12:27 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 744
    • Points 16,130
    Re: Can we read an image file(*.bmp) Reply

    Ok. I think you need to get your local Cadence AE to take a look at your setup.

    Cheers, Dave

    Dave Elder, Tait Communications
    • Post Points: 5
  • Wed, Apr 2 2014 8:06 PM

    • baimage
    • Not Ranked
    • Joined on Mon, May 27 2013
    • Posts 4
    • Points 35
    Re: Can we read an image file(*.bmp) Reply

     here are some sample codes i'd like to share with you on how to read bmp image file, besides bmp image formats, it supports reading and viewing other image formats as well. these codes save me a lot of time finding a good solution. 

    • Post Points: 5
Page 1 of 1 (15 items)
Sort Posts:
Started by ELEKVN at 17 Jan 2009 01:58 AM. Topic has 14 replies.