Re: gEDA-user: (hierarchy-uref-mangle disabled) doesn't seem to work when generting a bom

2010-09-14 Thread Mike Crowe
Hi all

I resolved this issue (given enough time even a monkey can solve his
problems!).  I'm posting just for future reference.

I was using 
(hierarchy-uref-separator _)
instead of
(hierarchy-uref-separator /)

The separator appears to be important even if it is disabled by 
(hierarchy-uref-mangle disabled)

By keeping the separator as a / everything works.  

I was also wrong to say that the operation was different for gnetlist
and gsch2pcb.  The operation appears to be the same.






On Thu, 2010-09-02 at 15:40 -0500, Mike Crowe wrote:
 Hello group
 
 I am doing my first hierarchial design.  In my local gnetlistrc I have
 (hierarchy-uref-mangle disabled) un-commented as I don't want the Sn_
 in the front of the uref.
 
 gsch2pcb does what I desire and correctly drops the Sn_ prefix.
 
 When generating a bom.  The prefix is not dropped which is NOT what I
 want.
 
 If I change from
 (hierarchy-uref-order append)
 to
 (hierarchy-uref-order prepend)
 
 The Sn_ value is placed at the end, so gnetlistrc seem to be picked up,
 but I'm not sure where as I don't see it in the .scm that I'm using. 
 
 My command line syntax is
 gnetlist -g xmlbom circuit.sch -o circuit-bom.xml
 
 I tried the nomunge option, but it didn't seem to have any effect.
 
 gnetlist --nomunge -g xmlbom circuit.sch -o circuit-bom.xml
 
 Yes, I am using a scheme that I hacked from gnet-bom(2?).scm  (see
 attached).  So I'm probably at fault, but I don't know where.  
 
 Could anyone give me some pointers as to what I'm doing wrong?
 
 Thanks in advance
 Mike
 
 
 
 
 
 
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: (hierarchy-uref-mangle disabled) doesn't seem to work when generting a bom

2010-09-02 Thread Mike Crowe
Hello group

I am doing my first hierarchial design.  In my local gnetlistrc I have
(hierarchy-uref-mangle disabled) un-commented as I don't want the Sn_
in the front of the uref.

gsch2pcb does what I desire and correctly drops the Sn_ prefix.

When generating a bom.  The prefix is not dropped which is NOT what I
want.

If I change from
(hierarchy-uref-order append)
to
(hierarchy-uref-order prepend)

The Sn_ value is placed at the end, so gnetlistrc seem to be picked up,
but I'm not sure where as I don't see it in the .scm that I'm using. 

My command line syntax is
gnetlist -g xmlbom circuit.sch -o circuit-bom.xml

I tried the nomunge option, but it didn't seem to have any effect.

gnetlist --nomunge -g xmlbom circuit.sch -o circuit-bom.xml

Yes, I am using a scheme that I hacked from gnet-bom(2?).scm  (see
attached).  So I'm probably at fault, but I don't know where.  

Could anyone give me some pointers as to what I'm doing wrong?

Thanks in advance
Mike







;;; gEDA - GPL Electronic Design Automation
;;; gnetlist - gEDA Netlist
;;; Copyright (C) 1998-2007 Ales Hvezda
;;; Copyright (C) 1998-2007 gEDA Contributors (see ChangeLog for details)
;;;
;;; This program is free software; you can redistribute it and/or modify
;;; it under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 2 of the License, or
;;; (at your option) any later version.
;;;
;;; This program is distributed in the hope that it will be useful,
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with this program; if not, write to the Free Software
;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


;; --
;;
;; Bill of Material backend written by Matt Ettus starts here
;;

;;; Bill Of Materials Generator
;;; You must have a file called attribs in the pwd
;;; The file should be a text list of attributes you want listed,
;;; One per line.  No comments are allowed in the file.
;;; Questions? Contact m...@ettus.com
;;; This software is released under the terms of the GNU GPL

;;  Xml Bill of Materials backend written by Mike Crowe starts here
;; shamelessly changed to format output as an xml document
;; question on xml changes should go to mcr...@gcdataconcepts.com
;; converts a bill of materials to a simple bom where the QNames are the 
;; schematic attribute names and the geda values are xml CText
;; from here one should be able to .xsl to parse the xml bom 
;; to ones own needs.

(use-modules (ice-9 rdelim)) ;; guile-1.8 fix

(define xmlbom
  (lambda (output-filename)
(let ((port (if (string=? - output-filename)
		  (current-output-port)
		  (open-output-file output-filename)))
	  (attriblist (xmlbomparseconfig (open-input-file attribs
;  (xmlbomprintlist (cons 'refdes attriblist) port #\:)
;  (newline port)
	(display ?xml version=\1.0\ encoding=\UTF-8\?\n port)
	(display bom\n port)
	  (display part\n\trefdes port)

		(xmlbomprintbom port (xmlbomcomponents packages attriblist) attriblist)
	(display \n/bom\n port)
  (close-output-port port)
)
  )
)



(define xmlbomprintbom
  (lambda (port bomlist attriblist)
(if (not (null? bomlist))
  (if (not (null? (caar bomlist)))
; here if a reference designator
(begin
  (display (caaar bomlist) port)
  (if (not (null? (cdaar bomlist)))
(write-char #\, port)
  )
  (xmlbomprintbom port (cons (cons (cdaar bomlist)(cdar bomlist))(cdr bomlist)) attriblist)
)
; else if anything else
(begin
	  (display /refdes\n port)
  (xmlbomprintlist (cdar bomlist) port #\: attriblist)
	  ( if (not (null? (cdr bomlist)))
	  	(display \npart\n\trefdes port)
	  )
  (xmlbomprintbom port (cdr bomlist) attriblist)
)
  )
)
  )
)


(define (string-insert s i t) (string-replace s t i i))

(define (xmlsearchandappend s1 sstring rstring spos)
	(let ((fpos1 (string-contains s1 sstring spos)))
	(if fpos1
		(xmlsearchandappend
		(string-insert s1 (+ 1 fpos1) rstring)
		sstring rstring
		(+ fpos1 (string-length rstring)))
		s1)))

(define xmlbomprintlist
  (lambda (ls port delimiter attriblist)
(if (null? ls)
#f
	(begin
	  (display \t port)
	  (display (car attriblist) port)
	  (display  port)
	(display (xmlsearchandappend (car ls)  amp; 0) port)
;	  (display (car ls) port)
	  (display \t/ port)
	  (display (car attriblist) port)
	  (display \n port)
  (if (null? (cdr ls))
		  (display /part port)
	  )
	  (xmlbomprintlist (cdr ls) port delimiter (cdr attriblist)))
)
  )
)


; Parses attrib file. Returns a list of read attributes.
(define xmlbomparseconfig
  (lambda (port)
(let ((read-from-file (read-delimited  \n\t

Re: gEDA-user: Non-linear spice models for power sources operating near stall

2010-06-04 Thread Mike Crowe
Turned out that the mechanical coupling coefffient is so low that a
stall cannot occur.  So Matthew W.'s #1 approach will work for me.  

Thanks everyone for the help!
Mike

On Wed, 2010-06-02 at 20:13 +0200, Armin Faltl wrote:
 
 Mike Crowe wrote:
 3. More complicated models would vary the inductance depending on
 rotation speed, electrical frequency and possibly angular position of
 the rotor...  but hopefully you don't have to go that far.
 All in all...   I think Spice will be a pretty awkward tool to do any
 more than (1.).  I'd look at something like University of South
 Carolina's VTB (Virtual Test Bed).  It's free, but closed source.
  
  Unfortunately, I believe that the model will be more like #3.  The power
  source is a periodic hydraulic one.  My ultimate task is to deliver peak
  power from the mechanical system regardless of the available input power
  (wave action).  In addition to modeling the motor, I will need to model
  the mechanical components.I looked briefly at the SC site, but it
  requires a plug-in that I don't have.  

 How about setting up the differential equations of your dynamic model. 
 If you can formulate
 them as a system of ordinary explicit de's and as initial value problem, 
 you can use a
 Runge-Kutta method, that should be readily available as C-source (or at 
 least FORTRAN).
 
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: Non-linear spice models for power sources operating near stall

2010-06-02 Thread Mike Crowe
Hello
Somewhat off topic, but
I am working on an energy harvesting device which uses a small generator
(100W).  I am looking for a spice model that I can use as a template to
create a model for the motor dynamics near stall.  Can anyone point me
to a good starting point?

Thanks
Mike



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Non-linear spice models for power sources operating near stall

2010-06-02 Thread Mike Crowe
On Wed, 2010-06-02 at 09:17 -0700, Matthew Wilkins wrote:
 I guess it depends how sophisticated you want your model to be.
1.  A simple motor/generator model is a resistor, inductor and voltage
source in series.  The voltage source is proportional to speed.  Torque
is proportional to current through the winding.   You can measure the
values directly from the motor;  keep the rotor stationary for the
resistance and inductance measurements.   This is sufficient for a lot
of motor modelling work.
2.  If you're truly stalling the generator, you might want to map out
the inductance measurements at different rotor positions.   Also, you
might be able to model cogging torque by putting a sinusoidal current
source in parallel with the winding, with phase controlled by a
multiple of rotor position.
3. More complicated models would vary the inductance depending on
rotation speed, electrical frequency and possibly angular position of
the rotor...  but hopefully you don't have to go that far.
All in all...   I think Spice will be a pretty awkward tool to do any
more than (1.).  I'd look at something like University of South
Carolina's VTB (Virtual Test Bed).  It's free, but closed source.
Unfortunately, I believe that the model will be more like #3.  The power
source is a periodic hydraulic one.  My ultimate task is to deliver peak
power from the mechanical system regardless of the available input power
(wave action).  In addition to modeling the motor, I will need to model
the mechanical components.I looked briefly at the SC site, but it
requires a plug-in that I don't have.  
  __
 
From: Mike Crowe mcr...@gcdataconcepts.com
To: gEDA user mailing list geda-user@moria.seul.org
Sent: Wed, June 2, 2010 7:28:43 AM
Subject: gEDA-user: Non-linear spice models for power sources operating
near stall
Hello
Somewhat off topic, but
I am working on an energy harvesting device which uses a small
generator
(100W).  I am looking for a spice model that I can use as a template
to
create a model for the motor dynamics near stall.  Can anyone point me
to a good starting point?
Thanks
Mike
___
geda-user mailing list
[1]geda-u...@moria.seul.org
[2]http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
 
 References
 
1. mailto:geda-user@moria.seul.org
2. http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: new components

2010-02-05 Thread Mike Crowe


On Tue, 2010-02-02 at 15:55 -0800, Ben Jackson wrote:
 On Tue, Feb 02, 2010 at 06:11:44PM -0500, resea...@ottomaneng.com wrote:
  I'm also creating symbols for an FPGA and a DSP which naturally has alot
  of pins. I've once heard of using multiple files for the symbols so you
 
 For a really simple example look at http://ad7gd.net/xc9536/ where I
 split the power and IO.
Very interesting.  I am contemplating my first BGA design with gEDA
tools (AT91SAM9G45, Atmel ARM9).  The part is a 18 x18 =324 ball device
with row designators marked as A-V (missing I,O,Q,S,...).  The Pin
designators are labels K16, R2, G7, .. with the Alpha first, followed
with the number.  I tried to put in a pin label like this, but
encountered problems with the online tool at
(http://vivara.net/cgi-bin/djboxsym.cgi).  

Has anyone been making BGA parts with multiple symbol files?  
If so, what do I need to look out for as I go down the development path?
(Will multiple symbols process as multiple items on the BOM?,  Will the
netlister correctly pickup the different symbols.  Can Alpha-number
designators be used at all?  

Thanks in advance
Mike

 
 The symbols are also at http://gedasymbols.org/user/ben_jackson/
 
 I could upload an Altera EP2C8 set of symbols if that would help.
 One symbol per IO bank, power, and config, iirc.
 



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: Complex footprint creation

2009-05-05 Thread Mike Crowe
Hello All!

I am building a footprint for an Omron Ultra-low Profile Dome Key
membrane switch (PN: b3d see www.omron.com/ecb/products/pdf/en-b3d.pdf
 for details) .  The suggested footprint is a solid disk in the middle
and an annular ring around that inner disk.

How do I generate a footprint with complicated geometries (not a square,
round or oval pad) ?  

I started with ElementArc() but quickly realized that it generates a
silkscreen and not a pad. 

Do I need to freehand the object in PCB (as traces) then copy and paste?

Thanks in advance
-- 
Mike 
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Complex footprint creation

2009-05-05 Thread Mike Crowe
OK  I have written a crude application that generates a footprint with
pads. I still have to work out the details, but the solution looks to be
workable.  Thanks everyone for your ideas!
Mike

On Tue, 2009-05-05 at 15:48 -0400, DJ Delorie wrote:
  Do I need to freehand the object in PCB (as traces) then copy and paste?
 
 Or build the arc out of many short pads.  Otherwise, use a small pad
 as the connect point for the element, and manually add the arc
 later.
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
-- 
Mike 
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: gnetlist backend for xml-bom generation

2009-02-25 Thread Mike Crowe
Hi guys

In my part of the world it's been Mardi Gras, so I've been out of the
office.  Sorry for the late reply.

Thank Peter for your input it helped lots. I really started
understanding things better once I figured out the gnetlist
backend-guile-scheme-lisp lineage.

After following the examples you provided, and much trial and error, I
got the following to do what I need it to do.


(define (string-insert s i t) (string-replace s t i i))

(define xmlsearchandreplace
  (lambda (s1 sstring rstring spos)
(let ((fpos1 (string-contains s1 sstring spos))) 
(if fpos1   
(begin 
(xmlsearchandreplace (string-insert s1 (+ 1
fpos1) rstring ) sstring rstring (+ fpos1 (string-length rstring)))
)
(begin
s1
)
)
)
  )
)  

and then to use it, I do something like this;

(display (xmlsearchandreplace (car ls)  amp; 0) port)

It's not perfect as it doesn't really replace the , but rather
appends the amp;, but it generates correct xml, so I'm happy.

I'll post a patch soon.

Thanks again for your quick reply!

On Tue, 2009-02-24 at 00:03 +, Peter Clifton wrote:
 On Mon, 2009-02-23 at 16:55 -0600, Mike Crowe wrote:
  Hello all
  
  I've generated a preliminary gnetlist backend for generating an xml
  based bill of materials.
  
  It seems to be working except that I have to filter the file with sed
  after generating the netlist to convert  to amp;.
 
  Two questions
  1) Does anyone know how to do this filter conversion directly with the
  backend toolset (guile)?
 
 The hard question... (best ask a scheme guru).
 
 You might find a way with the srfi13 library. There are these examples
 in the docs:
 
 ;;; Convert a string to a list of chars.
 (string-fold-right cons '() s)
 
 ;;; Count the number of lower-case characters in a string.
 (string-fold (lambda (c count)
(if (char-lower-case? c)
(+ count 1)
count))
  0
  s)
 
 ;;; Double every backslash character in S.
 (let* ((ans-len (string-fold (lambda (c sum)
(+ sum (if (char=? c #\\) 2 1)))
  0 s))
(ans (make-string ans-len)))
   (string-fold (lambda (c i)
  (let ((i (if (char=? c #\\)
   (begin (string-set! ans i #\\) (+ i 1))
   i)))
(string-set! ans i c)
(+ i 1)))
0 s)
   ans)
 
 
 You might find some combination of that, and string-append is useful.
 OTOH, I'm no scheme guru, and have no idea how fast either of those
 would be.
 
 You might write a procedure which searches for the  character, splits
 the string on it, then makes a concationation of before amp;after
 .
 
 I suspect you could operate recursively on the split string's second
 half.
 
 Don't ask me to figure out what functions are required to find / split
 the string. You might find something suitable here though:
 
 http://srfi.schemers.org/srfi-13/srfi-13.html
 
 If you're going to use recursion, tail-recursion is best (to avoid
 running out of stack space). If I'm getting the explanation right.. the
 last call (before it returns) in the the recursive procedure should be
 the one which calls its-self.
 
 http://en.wikipedia.org/wiki/Tail_recursion
 
  2) Who do I contact to get my little backend into the main code
  branch? :-)
 
 Send a patch to this list.. talk to Ales, or one of the other developers
 etc..
 
 Post a patch to sourceforge tracker (but prod us on-list if you don't
 want it to get ignored / forgotten).
 
 Best wishes,
 
-- 
+---+
Mike Crowe
Gulf Coast Data Concepts
611 Nicholson Ave
Waveland, MS  39576
e-mail: mcr...@gcdataconcepts.com
phone: 228.424.6307
30d 17.753' North  089d 22.022' West
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html
+---+



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: gnetlist backend for xml-bom generation

2009-02-23 Thread Mike Crowe
Hello all

I've generated a preliminary gnetlist backend for generating an xml
based bill of materials.

It seems to be working except that I have to filter the file with sed
after generating the netlist to convert  to amp;.

Two questions
1) Does anyone know how to do this filter conversion directly with the
backend toolset (guile)?
2) Who do I contact to get my little backend into the main code
branch? :-)

Thanks 
-- 
+---+
Mike Crowe
Gulf Coast Data Concepts
611 Nicholson Ave
Waveland, MS  39576
e-mail: mcr...@gcdataconcepts.com
phone: 228.424.6307
30d 17.753' North  089d 22.022' West
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html
+---+



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: pcb 20081128 hangs when loading element data paste buffer

2009-02-12 Thread Mike Crowe
On Wed, 2009-02-11 at 19:31 -0500, DJ Delorie wrote:
 
 One option is to run pcb under gdb.  When it hangs, hit Ctrl-C in the
 gdb window and type where to see where it's hung.
I started trying to use 'gdb' when I found that other applications where
having similar hang problems when doing file management.  I ended up
rebooting the machine and the problem cleared itself.  Thanks for taking
the time to respond!
Mike
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
-- 
+---+
Mike Crowe
Gulf Coast Data Concepts
611 Nicholson Ave
Waveland, MS  39576
e-mail: mcr...@gcdataconcepts.com
phone: 228.424.6307
30d 17.753' North  089d 22.022' West
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html
+---+



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: pcb 20081128 hangs when loading element data paste buffer

2009-02-11 Thread Mike Crowe
Hello 

I have been using the 20081128 version without problems.  

Today, while developing a new footprint, the group of features under the
file-load layout group started causing the application to hang.  

I can load layouts from the command line at start up without
problems.   
The new footprints are not being developed in the library (they are
moved there after they have been checked for accuracy). 

Any ideas of how to reset what might have going wrong?  
Did some preferences file get corrupted?  
I moved the ~/.pcb/preferences file away, but it did not seem to change
the behavior.

Here are some compile time options that I'm using
- Compile Time Options -
GUI:
gtk : Gtk - The Gimp Toolkit
Exporters:
bom : Exports a Bill of Materials
gerber : RS-274X (Gerber) export.
nelma : Numerical analysis package export.
png : GIF/JPEG/PNG export.
ps : Postscript export.
eps : Encapsulated Postscript
Printers:
lpr : Postscript print.


As usual thanks in advance.

-- 
+---+
Mike Crowe
Gulf Coast Data Concepts
611 Nicholson Ave
Waveland, MS  39576
e-mail: mcr...@gcdataconcepts.com
phone: 228.424.6307
30d 17.753' North  089d 22.022' West
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html
+---+



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Wish list, sort of

2009-01-06 Thread Mike Crowe
On Tue, 2009-01-06 at 12:50 +, Peter Clifton wrote:
 On Tue, 2009-01-06 at 13:45 +0100, Werner Hoch wrote:
 
  libgeda (gschem) has an interface where you can connect a database.
So then I write a backend tool that gschem accesses through libgeda that
allows it to access information?  If so can anyone point me to api docs
(even rough ones) to get me started?
 
 For which Peter Brett deserves the credit for adding.
 
  I've played with it some time ago:
  Here is the mail I wrote:
  http://archives.seul.org/geda/dev/Nov-2007/msg00034.html
  
  The current homepage is here:
  http://www.h-renrew.de/h/spicelib/doc/index.html
 
 That looks very interesting. I'm sure Peter B would appreciate any
 feedback you had on the SCM parts source code, based on your experiences
 so far.
 



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: symbol databases, was Re: Wish list, sort of

2009-01-06 Thread Mike Crowe
On Tue, 2009-01-06 at 20:36 +, Kai-Martin Knaak wrote:
 On Tue, 06 Jan 2009 07:26:08 -0500, Dave McGuire wrote:
 
  But database servers, MySQL servers
  in particular, are pretty ubiquitous, and the API is easy.
 
 No doubt, a data base can be fine and powerful. However, many tasks have 
 to be implemented by the application. From the top of my head:
 searching, editing, versioning,   back-up, character encoding, 
 permissions, 
 import/export, updates, ...
 
 Failure to do these tasks properly would cripple the user experience. A 
 directory based approach can refer the user to the general tools of the 
 OS. No need to spend valuable developer resources on this kind of 
 infrastructure.  
I agree that adding a database adds end user complexity that should
probably be avoided.  I also agree that there are limited developer
resources available, but a new optional interface, largely worked on by
new developers would address these concerns.

I have used some of the comercial schematic packages that allow
integration of attribute information into a database.  It provides
significant improvements for tasks such as; generating purchasing
requests, inventory management, and bill of materials management, and
component obsolescence.  When viewing the attributes on the schematic,
one is looking at the latest component information.

Our company uses an internal part number.  In the parts database, there
is:
an inventory table providing part number - location, quantity keying
bill of material table providing build number - part number keying
component table providing part number keying - general attribute
information
vendor table providing vendor - part nubmer keying.

From these tables we generate 
Build shortages
Bills of materials
Purchase requests

At this point, I use gschem to create a crappy bill of material which I
import into the database.  The schematic becomes depricated over time
because the attribute info in it does not update as the database is
updated.  

My personal desire is to allow some way of maintaining the attributes
through the database, while leaving the graphics and netlist alone as
after a board is designed those aspects become pretty much static.  If I
can do this with gschem then the schematic remains a viable tool.

By the way, I also use external version control to maintain schematics
(subversion).  Works well.

They way the development environment is shaking out it appears that
adding the back-end tools to do these things is pretty straight forward.
(Thanks for the links Werner)

 
 ---(kaimartin)---



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: Sorry double post

2009-01-06 Thread Mike Crowe
Sorry about the double post. 




___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Solaris build problems, 'elp?

2009-01-05 Thread Mike Crowe
I second that.  VERY NICE.  Finally getting away from that dated DOS app
looking output.  

On Mon, 2009-01-05 at 14:25 -0500, Dave McGuire wrote:
 On Jan 5, 2009, at 2:02 PM, Kai-Martin Knaak wrote:
Now if we could only do something about that horrid font.
 
  Your wish is Peter Cliftons command. He managed to make gschem use an
  external font engine for the screen (pango). My blog contains  
  screenshots
  of an early test version of the pango enabled branch:
  http://lilalaser.de/blog/?p=90
  The text size issue has relaxed since then. And Ales decided to push
  these features as soon as possible.
 
Beautiful!  Wow, I can't wait to see that get integrated.
 
   -Dave
 



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: Wish list, sort of

2009-01-05 Thread Mike Crowe
There was talk a while ago about integrating gschem with a database.
Any status change on that?  Any way I can help implement/test with
mysql?
-- 
+---+
Mike Crowe
Gulf Coast Data Concepts
611 Nicholson Ave
Waveland, MS  39576
e-mail: mcr...@gcdataconcepts.com
phone: 228.424.6307
30d 17.753' North  089d 22.022' West
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html
+---+



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Wish list, sort of

2009-01-05 Thread Mike Crowe
On Mon, 2009-01-05 at 22:12 +, r wrote:
 On Mon, Jan 5, 2009 at 10:02 PM, Mike Crowe mcr...@gcdataconcepts.com wrote:
  There was talk a while ago about integrating gschem with a database.
  Any status change on that?  Any way I can help implement/test with
  mysql?
 
 What do you mean by integration with database? AFAIR there were two
 database-related ideas discussed here:
 - attaching to a (online?) symbol database. I don't know details -
 that's PCB guys' toy.
 - storing design data in a database. IMHO a good idea but not very popular 
 here.
This second thing.  

In my (weak) world view of electrical schematics there exist three types
of data
netlist data  - provides component to component connectivity)
graphical data - infomation related to rendering a graphical schematic
component data - additional infomation about the component, not strictly
needed for the schematic (footprint, vendor info, price availability)

I don't know if putting gschem netlist data or the graphics data into a
database helps with much, as relationalism there doesn't seem to be of
much benefit.  Putting the component data into a database can be of
significant benefit, not so much at the design, level, but the
production / project management level.

Most of my schematic attribute data for a component resides in a mysql
database, as it is simpler to maintain.  I am also able to maintain a
part inventory with it and generate per unit board cost data with it.  I
guess that I have fallen in love with relational databases.  Since I'm
quickly heading toward age 50, perhaps love is a little strong, maybe
something more like a strong affection for:-)


 
 Regards,
 -r.
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: pcb anti-environment coating?

2009-01-02 Thread Mike Crowe
I have used these for enclosures in the past.  They seem to work OK (no
complaints with moisture build up)
http://www.gore.com/en_xx/products/venting/protective/telecom/adhesive_holder.html

I don't have a good handle though on where to purchase them in small qty
though.

On Thu, 2009-01-01 at 17:07 -0500, Dave McGuire wrote:
 On Dec 31, 2008, at 8:39 PM, Bob Paddock wrote:
  I'd put them in a sealed box, with a Gore-Tex Vent so that the  
  enclosure
  can 'breath' but not pass water.
 
This is an interesting idea.  Can Gore-Tex be found in small  
 squares for this type of application, or would one be stuck  
 destroying an expensive jacket to get some?
 
   -Dave
 
 --
 Dave McGuire
 Port Charlotte, FL
 
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Attaching trace to a rectangle

2008-12-02 Thread Mike Crowe
On Mon, 2008-12-01 at 22:14 -0500, DJ Delorie wrote:
 Ok, the problem seems to be that your bloat/shrink are set to the
 design rules, instead of just a little less.  Change them to 9.99 mil
 and it works.
I'm not clear where these settings are?  Do edit the ~/.pcb/preferences
file manually?
 Bloat and shrink are *not* the same as line and space.  They're the
 amount that your copper can be expanded or contracted and still
 maintain the same connectivity.  If you shrink your copper traces by
 10 mil, they go away, losing connectivity.  Shrink by 9.99 mil and
 there's still 0.01 mil left.
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Attaching trace to a rectangle

2008-12-02 Thread Mike Crowe
On Tue, 2008-12-02 at 11:34 -0500, DJ Delorie wrote:
  On Mon, 2008-12-01 at 22:14 -0500, DJ Delorie wrote:
   Ok, the problem seems to be that your bloat/shrink are set to the
   design rules, instead of just a little less.  Change them to 9.99 mil
   and it works.
  I'm not clear where these settings are?  Do edit the ~/.pcb/preferences
  file manually?
 
 For the GTK hid, it's File-Preferences
I always hate to show my ignorance, but... 
I compiled the latest released version yesterday using the default
configuration options, 

version 20081128,...
- Compile Time Options -
GUI:
gtk : Gtk - The Gimp Toolkit
Exporters:
bom : Exports a Bill of Materials 

I looked under File-Preferences and don't see anything resembling
bloat / shrink, or preferences for polygons.  Ideas?
 
 For the Lesstif hid, it's Edit-Board Sizes
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: Silkscreen Logo

2008-11-04 Thread Mike Crowe
If an SVG file generated with third party software package (Potrace,
AutoTrace, Inkscape or Delineate, ) exists, then an xslt can in
theory be used to generate output compatible with pcb.  

Is someone working on such an xslt?  
If not, what would be the best way to import the resulting output into
PCB.  What spec would the output need to conform to?  

I've just finished writing a few xslt's to generate build packages from
BOM's stored in relational DB's.  It's a way cool way to handle build
packages.   S,...  what I'm saying is that if no on is working on
this, I might be willing to give it a shot (he says with great
trepidation).



 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
-- 
Mike 
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: External attribute read/write - how?

2008-10-22 Thread Mike Crowe
I'd like to second Franks request.  

Our company has an established  internal parts database (mysql) from
which I'd like to be able to use to stuff attributes with.  I've looked
at the raw schematic file format and it appears to be straight forward
(except for auto placement on the schematic of the hidden text).  Like
gattrib, I see this database-attrib tool as a separate application.
What functionality does libgeda possess toward this application that
would compel me to use it?  Some simple attrib parsing components?

Thanks




On Wed, 2008-10-22 at 17:01 +0100, Peter TB Brett wrote:
 On Wednesday 22 October 2008 16:36:47 Frank Miles wrote:
  While a geda-newbie, over the years I've developed a set of programs which
  use a (Postgresql-based) database to update and error check schematics
  originating in a DOS-based OrCAD.  I would like to have similar
  capabilities in gschem/pcb. A key requirement is to be able to read and
  write component information (attributes) by external programs.
 
  ** Where/how can an external program read and/or write component
  attributes?? **
 
 
 Your best bet is probably either:
 
 (1) Link against libgeda, or
 
 (2) Process the (pretty straightforward) file format yourself.
 
Peter
 
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
-- 
Mike 
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB to IGES converstion?

2008-10-13 Thread Mike Crowe
On Fri, 2008-10-10 at 21:23 +0200, Bert Timmerman wrote:
Cool beans!  I've looked at the code (very briefly) and have a few
questions.  See below.  
 Hi Mike,
 
 On Fri, 2008-10-10 at 09:21 -0500, Mike Crowe wrote:
  Hi all
  
  Another question for the group.  
  
  Is anyone working on a tool or know how to import a pcb layout to an
  IGES file?
  
 
 I've made a start with a DXF exporter for pcb, not an IGES exporter :)
 since the DXF file format is well known.
I've fooled around with DXF formats in the past, but didn't find it to
be very stable as the there seemed to be several versions of DXF
floating around.  That being said, a partially built car is better than
nothing at all :-)
 
 The sources can be found here:
 
 http://github.com/bert/pcb-dxf-hid/tree/master
 
 It's not in a very complete state, let's say halfway, it compiles and
 sometimes segfaults.
It appears that this is a module for PCB.  I was thinking of a separate
application that reads the PCB file directly.  What development
advantage is there to having this application be a module for PCB?
 
 Currently I have no time to debug the code as I'm very busy with
 modifications to the house: extension, new kitchen, etc.
I know how that goes.  Seems to be my life as well.
 
 That will keep me busy until most of December I guess.
 
 Kind regards,
 
 Bert Timmerman.
 
 
  So how about it.  Anyone have this tool half built?
  
  Thanks in advance
 
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: PCB to IGES converstion?

2008-10-10 Thread Mike Crowe
Hi all

Another question for the group.  

Is anyone working on a tool or know how to import a pcb layout to an
IGES file?

Background
I just did my second design with PCB.  Works great! Kudos to you all!  
unfortunately for me, when we assembled the prototype, one of the
components had a mechanical interference with the case.  Grrr.  With the
new artwork we'd like to be able to import an IGES image of it into
Solid Edge (a mechanical cad tool).  Before I start down the path of
writing my own tool, I want to be sure no one else has already started
down this path.
The minimum that I need it to do is:
Parse the file for elements
Look-up height information for elements from a separate file 
Convert the element description to the IGES format with the new height
info 
Optionally take an outline layer and convert it to a board outline 
Somehow provide board thickness info

So how about it.  Anyone have this tool half built?

Thanks in advance
-- 
Mike 
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


gEDA-user: PCB script questions

2008-09-24 Thread Mike Crowe
Hello
I am trying to automate my Gerber generation process through a Makefile
(use the hammer that you know:-).  I see that PCB as a command line
option --script filename  that could potentially be used to export the
Gerber's and then exit.  Something like this

...
export gerber somefileprefix
quit

Problem is that I can't find any sort of script programming reference
that would allow me to do this.  Any direct help(providing the exact
syntax) or indirect help (pointing me to a reference) would be greatly
appreciated. 

Thanks
-- 
Mike 
home of the USB-Accelerometer 
http://www.gcdataconcepts.com/xlr8r-1.html



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


Re: gEDA-user: PCB script questions

2008-09-24 Thread Mike Crowe
On Wed, 2008-09-24 at 12:26 -0400, DJ Delorie wrote:
 You can export directly from the command line:
 
 pcb -x gerber $*.pcb
Wow! just what I was looking for! Thanks. 
 
 
 ___
 geda-user mailing list
 geda-user@moria.seul.org
 http://www.seul.org/cgi-bin/mailman/listinfo/geda-user



___
geda-user mailing list
geda-user@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user