Code Monkey home page Code Monkey logo

inkscapelogicgates's People

Contributors

fsmmlk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

inkscapelogicgates's Issues

Unrecoverable error in gs

When I try to create a flip flop, I get a failure,

I am using that last version of inksapeLogicGates and inkscapeMadeEasy in Inkscape 0.92.3 (2405546, 2018-03-11).

I am running on Ubuntu 16.04 (?), which is a virtual machine on a Windows 10 laptop, using VMware Workstation 14.1.3 build-9474260.

$ uname -a
Linux ubuntu 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linuxi

The traceback is below.

Thank you,
--David

Traceback (most recent call last):
File "logicGates.py", line 681, in
logic.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 283, in affect
self.effect()
File "logicGates.py", line 121, in effect
asynPreset=int(so.latchPreset),asynClear=int(so.latchClear),size=so.latchSize,suppressq=so.latchSuppressq, suppressNOTq=so.latchSuppressNOTq)
File "logicGates.py", line 632, in createLatch
self.createOutput(True,group,position=[x_max,position[1]-dist_signal],extraLength=0.0,label='Q',name='$Q$',fontSizeFactor=fontSizeFactorG)
File "logicGates.py", line 265, in createOutput
self.createSignal(flagTrue,parent,[position[0],position[1]],direction,extraLength,label,name,fontSizeFactor)
File "logicGates.py", line 233, in createSignal
inkDraw.text.latex(self,group,name,position=posText,fontSize=self.fontSize*fontSizeFactor,refPoint=justif,preambleFile=self.preambleFile)
File "/usr/share/inkscape/extensions/inkscapeMadeEasy_Draw.py", line 1230, in latex
tex.affect([r'--text=' + LatexCommands + LaTeXtext, '--scale-factor=1', '--preamble-file=' + preambleFile, tempFilePath], output=False)
File "/usr/share/inkscape/extensions/inkex.py", line 283, in affect
self.effect()
File "/usr/share/inkscape/extensions/textextLib/textext.py", line 151, in effect
self.options.scale_factor, converter_cls, old_node)
File "/usr/share/inkscape/extensions/textextLib/textext.py", line 165, in do_convert
new_node = converter.convert(text, preamble_file, scale_factor)
File "/usr/share/inkscape/extensions/textextLib/textext.py", line 533, in convert
self.pdf_to_svg()
File "/usr/share/inkscape/extensions/textextLib/textext.py", line 631, in pdf_to_svg
+ pstoeditOpts)
File "/usr/share/inkscape/extensions/textextLib/textext.py", line 374, in exec_command
% (' '.join(cmd), p.returncode, out + err))
RuntimeError: Command pstoedit -f plot-svg /tmp/tmpJfXvcd/tmp.pdf /tmp/tmpJfXvcd/tmp.svg -dt -ssp -psarg -r9600x9600 failed (code 1): pstoedit: version 3.70 / DLL interface 108 (built: Aug 29 2017 - release build - g++ 7.2.0 - 64-bit) : Copyright (C) 1993 - 2014 Wolfgang Glunz

*** WARNING - the DELAYBIND command has been deprecated, and will be
removed in the next version. For now you can restore
the behaviour by using -dREALLYDEALYBIND but if you
require continued use of this command you should contact
the Ghostscript developers. Commercial customers of
Artifex should email their support contact, free users
are encouraged to talk to us on the #ghostscript IRC
channel on irc.freenode.net.

Unrecoverable error: undefined in DELAYBIND
PostScript/PDF Interpreter finished. Return status 65280 executed command : /usr/bin/gs -q -dDELAYBIND -dWRITESYSTEMDICT -dNODISPLAY -dNOEPS -r9600x9600 "/tmp/psin7W0MOt"
The interpreter seems to have failed, cannot proceed !

Installation difficulties

I recently installed inkscapeLogicGates on a fresh Ubuntu 16.04 system. I had a hard time getting it to work. One thing I needed to install that wasn't mentioned in the documentation was texlive-pictures. I think it was necessary for pict2e. If this is really needed, it would be nice if it was mentioned it in the documentation.

scale difference between logic and transistors

Thanks for all the work making a good looking symbol generator. I do have a few suggestions though. The scale factor between things like transistors and logic gates seems off. For example the flip-flop in this drawing is 12 grid sizes tall compared to 2 for the NMOS (6x the height) and the width is 10 vs about 2 (5x).

image

What is more typical (this is from a fairly representative set of symbols in a high end EDA tool) is something like this:
image
In this case the flip-flip is about 3x the height and a little over 2x the width. In terms of area used on the drawing, that puts the inkscape one at about 30x the area used for a flip-flop than an NMOS and about 6x in the example above. That is pretty huge as even a small amount of logic can totally dwarf the transistors.

Undocumented dependencies

It seems that inkscapeLogicGates requires the following items that, to my knowledge, are not mentioned in the installation instructions. FWIW I'm using Ubuntu 16.04.

pygtk
Tkinter
pdf2svg
pstoedit

Logic Gates Unresponsive After Hitting Apply

image

I have tried a variety of gates/settings, but all attempts to generate gate drawings cause Inkscape to freeze/crash after the window with <2> in its header appears.

Inkscape version: 1.3
Kubuntu version: 22.04
Potentially relevant info: circuitSymbols works without issue

Error when trying logicgates

Hello,
I'm trying to use the extension but I get the following error when clicking in the inkscape menu:

usage: logicGates.py [-h] [--output OUTPUT] [--id IDS]
[--selected-nodes SELECTED_NODES] [--tab TAB]
[--subTab_sigExp SUBTAB_SIGEXP] [--ANDgate ANDGATE]
[--ORgate ORGATE] [--XORgate XORGATE] [--NOTgate NOTGATE]
[--BUFgate BUFGATE] [--NANDgate NANDGATE]
[--NORgate NORGATE] [--XNORgate XNORGATE]
[--nInput NINPUT] [--InputTypes INPUTTYPES]
[--latchType LATCHTYPE] [--latchSize LATCHSIZE]
[--latchSuppressq LATCHSUPPRESSQ]
[--latchSuppressNOTq LATCHSUPPRESSNOTQ]
[--latchGate LATCHGATE] [--latchGateLogic LATCHGATELOGIC]
[--latchPreset LATCHPRESET] [--latchClear LATCHCLEAR]
[--signal SIGNAL] [--signalVal SIGNALVAL]
[--signalRot SIGNALROT] [--signalDrawLine SIGNALDRAWLINE]
[--boolExpression BOOLEXPRESSION]
[INPUT_FILE]
logicGates.py: error: argument INPUT_FILE: File not found: /home/fernando/servidor/UFABC/02_DISCIPLINAS/000_simbolosEletricos_1.0.svg

I can't find the "000_simbolosEletricos_1.0.svg". Any idea what could I be doing wrongly?
Thanks in advance.

Jorge

Logic gates became unresponsive

I was working on a schematic diagram.. I had been using inkscapeLogicGates for a couple of hours. At the moment of the malfunction I'm reporting I was zoomed way in, and the Logic Gates window was not being displayed. I clicked on Extensions->fsmMLK->Circuit Symbols->Logic Gates... . Nothing happened. I tried 3 or 4 times, and still nothing happened. I saved my work, exited Inkscape, restarted Inkscape, and opened the file I had been working on, and all worked fine.

Of course, this could have been a bug in Inkscape or even below. But I'm reporting it for the record.

Here is the info on the environment
Inkscape 0.91.r13725
Running on Ubuntu Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Memory 8.3 GB
Intel Core i-56300U CPU @2.40Ghz X 2
Graphics: Gallium 0.4 on SVGA3D; build: RELEASE; LLVM
OS type 64-bit
Disk 11.9GB
That was running on VMware Workstation 12 Pro 12.5.7 build-5813279
Memory 20300 MB
HOST OS Windows 10, 64-bit (Build 14393) 10.0.14393
And Windows reports:
Windows 10 Enterprise
Processor Intel Core i5-6300U CPU @2.40 GHz 2.50 GHz
Installed RAM 20.0 G (19.8 usable)
System type: 64-bit Operating System x64-based processor
Computer Lenovo T460s

Value error in numpy when creating a D flip flop

I"m brand new to inkscapeLogicGates. I am running on Ubuntu Linux 16.04 LTS. I downloaded all the stuff including inkscapeMadeEasy, and also installed latex (TeXlive), pygtk, Tkinter, and pdf2svg. Then I tried to make a D flip flop (large, no control gates, high logic, active high clear).

I get an error with this traceback

Traceback (most recent call last):
File "logicGates.py", line 671, in
logic.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 268, in affect
self.effect()
File "logicGates.py", line 122, in effect
asynPreset=int(so.latchPreset),asynClear=int(so.latchClear),size=so.latchSize,suppressq=so.latchSuppressq, suppressNOTq=so.latchSuppressNOTq)
File "logicGates.py", line 630, in createLatch
self.createOutput(True,group,position=[x_max,position[1]-dist_signal],extraLength=0.0,label='Q',name='$Q$',fontSizeFactor=fontSizeFactorG)
File "logicGates.py", line 266, in createOutput
self.createSignal(flagTrue,parent,[position[0],position[1]],direction,extraLength,label,name,fontSizeFactor)
File "logicGates.py", line 234, in createSignal
inkDraw.text.latex(self,group,name,position=posText,fontSize=self.fontSize*fontSizeFactor,refPoint=justif,preambleFile=self.preambleFile)
File "/usr/share/inkscape/extensions/inkscapeMadeEasy_Draw.py", line 1253, in latex
BboxMin, BboxMax = ExtensionBaseObj.getBoundingBox(groupLatex)
File "/usr/share/inkscape/extensions/inkscapeMadeEasy_Base.py", line 575, in getBoundingBox
coords = self.getPoints(element)
File "/usr/share/inkscape/extensions/inkscapeMadeEasy_Base.py", line 541, in getPoints
listPoints = self.getPoints(obj)
File "/usr/share/inkscape/extensions/inkscapeMadeEasy_Base.py", line 541, in getPoints
listPoints = self.getPoints(obj)
File "/usr/share/inkscape/extensions/inkscapeMadeEasy_Base.py", line 548, in getPoints
coordsNP = np.hstack((np.array(listCoords), np.ones([len(listCoords), 1]))).transpose()
File "/usr/lib/python2.7/dist-packages/numpy/core/shape_base.py", line 278, in hstack
return _nx.concatenate(arrs, 0)
ValueError: all the input arrays must have same number of dimensions

For whatever it is worth, I can successfully make a 2-input AND gate, so at least something is working correctly.

Added a bit later: If I disable latex, the problem goes away. But that's not a good solution since the labels on the signals are all surrounded by "$", ie. "D" input on the flip flop is labeled "$D$". I can take those out in Inkscape, but a nuisance.

Issue with Latch / FF tab

i am getting following error when i try to place Latch or FF.

Traceback (most recent call last):
File "logicGates.py", line 682, in
logic.affect()
File "C:\Program Files\Inkscape\share\extensions/inkex.py", line 283, in affect
self.effect()
File "logicGates.py", line 122, in effect
asynPreset=int(so.latchPreset),asynClear=int(so.latchClear),size=so.latchSize,suppressq=so.latchSuppressq, suppressNOTq=so.latchSuppressNOTq)
File "logicGates.py", line 637, in createLatch
self.createOutput(True,group,position=[x_max,position[1]+dist_signal],extraLength=0.0,label='notQ',name=u'\u00ACQ',fontSizeFactor=fontSizeFactorG)
File "logicGates.py", line 266, in createOutput
self.createSignal(flagTrue,parent,[position[0],position[1]],direction,extraLength,label,name,fontSizeFactor)
File "logicGates.py", line 234, in createSignal
inkDraw.text.latex(self,group,name,position=posText,fontSize=self.fontSize*fontSizeFactor,refPoint=justif,preambleFile=self.preambleFile)
File "inkscapeMadeEasy_Draw.py", line 1256, in latex
groupLatex = text.write(ExtensionBaseObj, LaTeXtext, [0, 0], parent,textStyle=mytextStyle, fontSize=fontSize/0.76,justification=justification, angleDeg=0.0) # attention! keep angleDeg=0.0 here bc it will be rotated below
File "inkscapeMadeEasy_Draw.py", line 1108, in write
myTspan.text = textLines[n].decode('utf-8')
File "C:\Program Files\Inkscape\lib\python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xac' in position 0: ordinal not in range(128)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.