Re: [Kicad-developers] Integrated Simulator

2016-08-12 Thread firewalker
Something really really minor.

There is no icon for the Simulator menu (Tools -> Simulator). :D :D :D

Excellent work btw.
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-12 Thread Wayne Stambaugh
On 8/12/2016 10:44 AM, Maciej Sumiński wrote:
> On 08/12/2016 04:38 PM, Wayne Stambaugh wrote:
> [snip]
>>> Hi Orson,
>>>
>>> I saw your commit.  Thanks for addressing this issue in a timely mannor.
>>>  I have on minor comment.  FindFoo.cmake files should always have an
>>> option to override the default find location which should take
>>> precedence over the default locations.  Typically this is done with an
>>> environment variable and a definition such as FOO_ROOT.  This allows
>>> developers to use development libraries without having to overwrite
>>> their system default libraries.  I know many of the find modules that
>>> ship with cmake do not do this.  We should not be repeating this bad habit.
> 
> Currently there are variables NGSPICE_INCLUDE_PATH and
> NGSPICE_LIBRARY_PATH serving this purpose. I will have a look how is it
> done in other modules and try to make it coherent.
> 
>> Whoops!  I forgot to mention, version testing is always a good idea.  At
>> some point it will be an issue and you will have to add support for it.
> 
> I thought about this, but the information is not stored anywhere in the
> header file, and the library always gets 0.0.0 number (e.g.
> libngspice.so.0.0.0), so currently I am out of ideas.
> 
> Regards,
> Orson

Yuck!  This is not my idea of a quality library.  The next time you talk
to them, ask them to please include a version string somewhere in their
header files and version their libraries.  Better yet, tell them to
generate this automatically with their build configuration tools.  I
can't believe one of the distros hasn't beat them over the head about
this yet.

> 
>>> Thanks,
>>>
>>> Wayne
>>>

> Thanks again everyone for your hard work.
>
> Cheers,
>
> Wayne


>>>
>>
> 
> 


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-12 Thread Maciej Sumiński
On 08/12/2016 04:38 PM, Wayne Stambaugh wrote:
[snip]
>> Hi Orson,
>>
>> I saw your commit.  Thanks for addressing this issue in a timely mannor.
>>  I have on minor comment.  FindFoo.cmake files should always have an
>> option to override the default find location which should take
>> precedence over the default locations.  Typically this is done with an
>> environment variable and a definition such as FOO_ROOT.  This allows
>> developers to use development libraries without having to overwrite
>> their system default libraries.  I know many of the find modules that
>> ship with cmake do not do this.  We should not be repeating this bad habit.

Currently there are variables NGSPICE_INCLUDE_PATH and
NGSPICE_LIBRARY_PATH serving this purpose. I will have a look how is it
done in other modules and try to make it coherent.

> Whoops!  I forgot to mention, version testing is always a good idea.  At
> some point it will be an issue and you will have to add support for it.

I thought about this, but the information is not stored anywhere in the
header file, and the library always gets 0.0.0 number (e.g.
libngspice.so.0.0.0), so currently I am out of ideas.

Regards,
Orson

>> Thanks,
>>
>> Wayne
>>
>>>
 Thanks again everyone for your hard work.

 Cheers,

 Wayne
>>>
>>>
>>
> 




signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-12 Thread Wayne Stambaugh
On 8/12/2016 10:36 AM, Wayne Stambaugh wrote:
> On 8/12/2016 10:10 AM, Maciej Sumiński wrote:
>> On 08/11/2016 05:37 PM, Wayne Stambaugh wrote:
>>> Congratulations on everyone who made the is happen.  This is a nice
>>> feature for KiCad and hopefully users will find it useful.
>>>
>>> There are a few things will need to addressed that I missed when I
>>> initially evaluated the code.
>>>
>>> Maybe I missed it but I do not see any indication that the ngspice
>>> headers and libraries are detected during cmake configuration (see
>>> attachment).  This is a major no-no.  All external dependencies must be
>>> found during configuration.  As a developer, there are few things that
>>> make kick a software package to the curb faster than getting 3/4 of way
>>> through a 30+ minute build only have the build fail because there is a
>>> missing dependency header or library.  This should fail during
>>> configuration to inform the developer that there are missing
>>> dependencies.  Please write a FindNgSpice.cmake file.  I know I've said
>>> this in the past but I will reiterate it, if you add a new dependency to
>>> KiCad you *must* add the configuration code to ensure that all of the
>>> required headers and/or libraries can be found before a valid
>>> configuration can be completed.
>>>
>>> Also, please update the Documentation/development/compiling.md file with
>>> the added optional ng-spice dependency.  This is the official compiling
>>> document that gets pushed to the kicad website so it needs to be kept up
>>> to date.
>>
>> Hi Wayne,
>>
>> Sure, both issues are fixed in revisions 7025 & 7027. Again, I had a
>> chance to test the patches only under Windows and Linux, so their status
>> for OS X is currently unknown.
>>
>> Regards,
>> Orson
> 
> Hi Orson,
> 
> I saw your commit.  Thanks for addressing this issue in a timely mannor.
>  I have on minor comment.  FindFoo.cmake files should always have an
> option to override the default find location which should take
> precedence over the default locations.  Typically this is done with an
> environment variable and a definition such as FOO_ROOT.  This allows
> developers to use development libraries without having to overwrite
> their system default libraries.  I know many of the find modules that
> ship with cmake do not do this.  We should not be repeating this bad habit.

Whoops!  I forgot to mention, version testing is always a good idea.  At
some point it will be an issue and you will have to add support for it.

> 
> Thanks,
> 
> Wayne
> 
>>
>>> Thanks again everyone for your hard work.
>>>
>>> Cheers,
>>>
>>> Wayne
>>
>>
> 


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-12 Thread Wayne Stambaugh
On 8/12/2016 10:10 AM, Maciej Sumiński wrote:
> On 08/11/2016 05:37 PM, Wayne Stambaugh wrote:
>> Congratulations on everyone who made the is happen.  This is a nice
>> feature for KiCad and hopefully users will find it useful.
>>
>> There are a few things will need to addressed that I missed when I
>> initially evaluated the code.
>>
>> Maybe I missed it but I do not see any indication that the ngspice
>> headers and libraries are detected during cmake configuration (see
>> attachment).  This is a major no-no.  All external dependencies must be
>> found during configuration.  As a developer, there are few things that
>> make kick a software package to the curb faster than getting 3/4 of way
>> through a 30+ minute build only have the build fail because there is a
>> missing dependency header or library.  This should fail during
>> configuration to inform the developer that there are missing
>> dependencies.  Please write a FindNgSpice.cmake file.  I know I've said
>> this in the past but I will reiterate it, if you add a new dependency to
>> KiCad you *must* add the configuration code to ensure that all of the
>> required headers and/or libraries can be found before a valid
>> configuration can be completed.
>>
>> Also, please update the Documentation/development/compiling.md file with
>> the added optional ng-spice dependency.  This is the official compiling
>> document that gets pushed to the kicad website so it needs to be kept up
>> to date.
> 
> Hi Wayne,
> 
> Sure, both issues are fixed in revisions 7025 & 7027. Again, I had a
> chance to test the patches only under Windows and Linux, so their status
> for OS X is currently unknown.
> 
> Regards,
> Orson

Hi Orson,

I saw your commit.  Thanks for addressing this issue in a timely mannor.
 I have on minor comment.  FindFoo.cmake files should always have an
option to override the default find location which should take
precedence over the default locations.  Typically this is done with an
environment variable and a definition such as FOO_ROOT.  This allows
developers to use development libraries without having to overwrite
their system default libraries.  I know many of the find modules that
ship with cmake do not do this.  We should not be repeating this bad habit.

Thanks,

Wayne

> 
>> Thanks again everyone for your hard work.
>>
>> Cheers,
>>
>> Wayne
> 
> 


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-12 Thread Maciej Sumiński
On 08/11/2016 05:37 PM, Wayne Stambaugh wrote:
> Congratulations on everyone who made the is happen.  This is a nice
> feature for KiCad and hopefully users will find it useful.
> 
> There are a few things will need to addressed that I missed when I
> initially evaluated the code.
> 
> Maybe I missed it but I do not see any indication that the ngspice
> headers and libraries are detected during cmake configuration (see
> attachment).  This is a major no-no.  All external dependencies must be
> found during configuration.  As a developer, there are few things that
> make kick a software package to the curb faster than getting 3/4 of way
> through a 30+ minute build only have the build fail because there is a
> missing dependency header or library.  This should fail during
> configuration to inform the developer that there are missing
> dependencies.  Please write a FindNgSpice.cmake file.  I know I've said
> this in the past but I will reiterate it, if you add a new dependency to
> KiCad you *must* add the configuration code to ensure that all of the
> required headers and/or libraries can be found before a valid
> configuration can be completed.
> 
> Also, please update the Documentation/development/compiling.md file with
> the added optional ng-spice dependency.  This is the official compiling
> document that gets pushed to the kicad website so it needs to be kept up
> to date.

Hi Wayne,

Sure, both issues are fixed in revisions 7025 & 7027. Again, I had a
chance to test the patches only under Windows and Linux, so their status
for OS X is currently unknown.

Regards,
Orson

> Thanks again everyone for your hard work.
> 
> Cheers,
> 
> Wayne




signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-11 Thread Simon Wells
When there is a FindNgspice.cmake file it would also allow removal of
#include <../share/ngspice/include/ngspice/sharedspice.h> as it is a
horrible include and should really be added to the -I path

On Fri, Aug 12, 2016 at 3:37 AM, Wayne Stambaugh  wrote:
> Congratulations on everyone who made the is happen.  This is a nice
> feature for KiCad and hopefully users will find it useful.
>
> There are a few things will need to addressed that I missed when I
> initially evaluated the code.
>
> Maybe I missed it but I do not see any indication that the ngspice
> headers and libraries are detected during cmake configuration (see
> attachment).  This is a major no-no.  All external dependencies must be
> found during configuration.  As a developer, there are few things that
> make kick a software package to the curb faster than getting 3/4 of way
> through a 30+ minute build only have the build fail because there is a
> missing dependency header or library.  This should fail during
> configuration to inform the developer that there are missing
> dependencies.  Please write a FindNgSpice.cmake file.  I know I've said
> this in the past but I will reiterate it, if you add a new dependency to
> KiCad you *must* add the configuration code to ensure that all of the
> required headers and/or libraries can be found before a valid
> configuration can be completed.
>
> Also, please update the Documentation/development/compiling.md file with
> the added optional ng-spice dependency.  This is the official compiling
> document that gets pushed to the kicad website so it needs to be kept up
> to date.
>
> Thanks again everyone for your hard work.
>
> Cheers,
>
> Wayne
>
>
> On 8/11/2016 9:07 AM, Maciej Sumiński wrote:
>> I have just merged the ngspice branch. It is still required to enable
>> KICAD_SPICE switch in cmake in order to use it, so it does not cause
>> problems on systems without ngspice library installed.
>>
>> Regards,
>> Orson
>>
>> On 08/05/2016 09:40 PM, Maciej Sumiński wrote:
>>> I had spoken with ngspice devs and they have suggested me a workaround
>>> for the bug. Unfortunately, it requires a patch that is currently not
>>> included in the release version, so we resort to building from the
>>> source again.
>>>
>>> To ease the pain, I have updated get_libngspice_so.sh [1]. Now it should
>>> build the correct library version for Linux, Windows (mingw64) & OS X. I
>>> have managed to run the script successfully on all the mentioned
>>> platforms, but I still do not have KiCad compiled on OS X, so I was not
>>> able to test it there.
>>>
>>> I have updated the ngspice branch in my github repository [2]:
>>> - applied fixes for Win7 & OS X (thank you Jean-Pierre & Johannes)
>>> - resized dialogs, so all the fields are visible and windows fit 1024x768
>>> - fixed a few minor bugs
>>> - corrected demo circuits
>>> - cleared, formatted & documented the code
>>>  & added some documentation
>>> I consider the code ready for merge. If there are no objections, I would
>>> like to proceed next week.
>>>
>>> Regards,
>>> Orson
>>>
>>> 1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh
>>> 2. https://github.com/orsonmmz/kicad-source-mirror/tree/ngspice
>>>
>>> On 07/21/2016 11:16 PM, Chris Pavlina wrote:
 Really, really nice! I made it do a thing! 
 https://misc.c4757p.com/kicad_sim.png

 I feel bad to provide a bug report on my very first communcation on
 this, but... found one: not sure if this sort of thing is actually
 standard SPICE or an LTspice extension, but I tried parameterizing a
 component value, setting a resistor's value to {R} - that sort of thing
 leads to irrecoverable lockups here.

 On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:
> Hi,
>
> As some of you have noticed, we've been working on a "secret" feature
> during the hackathon at CERN. The feature we're talking about is an
> integrated circuit simulator. Currently it features:
> - Seamless integration into schematic editor,
> - AC/Transient/DC sweep simulations,
> - Voltage probing from the schematics,
> - Live tuning of component values.
>
> A video demonstrating the capabilities of the new simulator is available
> on Tom's YouTube channel [1].
>
> The code is currently available in the ngspice branch on Tom's GitHub
> [2] for review & testing. It's a big feature, so we didn't want to push
> it immediately to the product branch. We'll greatly appreciate your
> feedback!
>
> The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
> ngspice developers for providing a DLL interface which made seamless
> integration of ngspice into Kicad possible.
>
> In order to get started:
> - install ngspice shared library (is not provided by many Linux distros,
> Arch Linux is a known exception, so you might have to compile it from
> the sources with 

Re: [Kicad-developers] Integrated Simulator

2016-08-11 Thread Wayne Stambaugh
Congratulations on everyone who made the is happen.  This is a nice
feature for KiCad and hopefully users will find it useful.

There are a few things will need to addressed that I missed when I
initially evaluated the code.

Maybe I missed it but I do not see any indication that the ngspice
headers and libraries are detected during cmake configuration (see
attachment).  This is a major no-no.  All external dependencies must be
found during configuration.  As a developer, there are few things that
make kick a software package to the curb faster than getting 3/4 of way
through a 30+ minute build only have the build fail because there is a
missing dependency header or library.  This should fail during
configuration to inform the developer that there are missing
dependencies.  Please write a FindNgSpice.cmake file.  I know I've said
this in the past but I will reiterate it, if you add a new dependency to
KiCad you *must* add the configuration code to ensure that all of the
required headers and/or libraries can be found before a valid
configuration can be completed.

Also, please update the Documentation/development/compiling.md file with
the added optional ng-spice dependency.  This is the official compiling
document that gets pushed to the kicad website so it needs to be kept up
to date.

Thanks again everyone for your hard work.

Cheers,

Wayne


On 8/11/2016 9:07 AM, Maciej Sumiński wrote:
> I have just merged the ngspice branch. It is still required to enable
> KICAD_SPICE switch in cmake in order to use it, so it does not cause
> problems on systems without ngspice library installed.
> 
> Regards,
> Orson
> 
> On 08/05/2016 09:40 PM, Maciej Sumiński wrote:
>> I had spoken with ngspice devs and they have suggested me a workaround
>> for the bug. Unfortunately, it requires a patch that is currently not
>> included in the release version, so we resort to building from the
>> source again.
>>
>> To ease the pain, I have updated get_libngspice_so.sh [1]. Now it should
>> build the correct library version for Linux, Windows (mingw64) & OS X. I
>> have managed to run the script successfully on all the mentioned
>> platforms, but I still do not have KiCad compiled on OS X, so I was not
>> able to test it there.
>>
>> I have updated the ngspice branch in my github repository [2]:
>> - applied fixes for Win7 & OS X (thank you Jean-Pierre & Johannes)
>> - resized dialogs, so all the fields are visible and windows fit 1024x768
>> - fixed a few minor bugs
>> - corrected demo circuits
>> - cleared, formatted & documented the code
>>  & added some documentation
>> I consider the code ready for merge. If there are no objections, I would
>> like to proceed next week.
>>
>> Regards,
>> Orson
>>
>> 1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh
>> 2. https://github.com/orsonmmz/kicad-source-mirror/tree/ngspice
>>
>> On 07/21/2016 11:16 PM, Chris Pavlina wrote:
>>> Really, really nice! I made it do a thing! 
>>> https://misc.c4757p.com/kicad_sim.png
>>>
>>> I feel bad to provide a bug report on my very first communcation on
>>> this, but... found one: not sure if this sort of thing is actually
>>> standard SPICE or an LTspice extension, but I tried parameterizing a
>>> component value, setting a resistor's value to {R} - that sort of thing
>>> leads to irrecoverable lockups here.
>>>
>>> On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:
 Hi,

 As some of you have noticed, we've been working on a "secret" feature
 during the hackathon at CERN. The feature we're talking about is an
 integrated circuit simulator. Currently it features:
 - Seamless integration into schematic editor,
 - AC/Transient/DC sweep simulations,
 - Voltage probing from the schematics,
 - Live tuning of component values.

 A video demonstrating the capabilities of the new simulator is available
 on Tom's YouTube channel [1].

 The code is currently available in the ngspice branch on Tom's GitHub
 [2] for review & testing. It's a big feature, so we didn't want to push
 it immediately to the product branch. We'll greatly appreciate your
 feedback!

 The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
 ngspice developers for providing a DLL interface which made seamless
 integration of ngspice into Kicad possible.

 In order to get started:
 - install ngspice shared library (is not provided by many Linux distros,
 Arch Linux is a known exception, so you might have to compile it from
 the sources with --with-ngshared --enable-xspice options).  Windows
 DLLs, msys2 PKGBUILD & binary packages (to be included soon in
 the official msys2 repo, currently merged to
 https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
 library are available at [4].
 - compile eeschema with -DKICAD_SPICE=ON option,
 - have a look at some examples in demos/simulation directory.

 

Re: [Kicad-developers] Integrated Simulator

2016-08-11 Thread Maciej Sumiński
I have just merged the ngspice branch. It is still required to enable
KICAD_SPICE switch in cmake in order to use it, so it does not cause
problems on systems without ngspice library installed.

Regards,
Orson

On 08/05/2016 09:40 PM, Maciej Sumiński wrote:
> I had spoken with ngspice devs and they have suggested me a workaround
> for the bug. Unfortunately, it requires a patch that is currently not
> included in the release version, so we resort to building from the
> source again.
> 
> To ease the pain, I have updated get_libngspice_so.sh [1]. Now it should
> build the correct library version for Linux, Windows (mingw64) & OS X. I
> have managed to run the script successfully on all the mentioned
> platforms, but I still do not have KiCad compiled on OS X, so I was not
> able to test it there.
> 
> I have updated the ngspice branch in my github repository [2]:
> - applied fixes for Win7 & OS X (thank you Jean-Pierre & Johannes)
> - resized dialogs, so all the fields are visible and windows fit 1024x768
> - fixed a few minor bugs
> - corrected demo circuits
> - cleared, formatted & documented the code
>  & added some documentation
> I consider the code ready for merge. If there are no objections, I would
> like to proceed next week.
> 
> Regards,
> Orson
> 
> 1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh
> 2. https://github.com/orsonmmz/kicad-source-mirror/tree/ngspice
> 
> On 07/21/2016 11:16 PM, Chris Pavlina wrote:
>> Really, really nice! I made it do a thing! 
>> https://misc.c4757p.com/kicad_sim.png
>>
>> I feel bad to provide a bug report on my very first communcation on
>> this, but... found one: not sure if this sort of thing is actually
>> standard SPICE or an LTspice extension, but I tried parameterizing a
>> component value, setting a resistor's value to {R} - that sort of thing
>> leads to irrecoverable lockups here.
>>
>> On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:
>>> Hi,
>>>
>>> As some of you have noticed, we've been working on a "secret" feature
>>> during the hackathon at CERN. The feature we're talking about is an
>>> integrated circuit simulator. Currently it features:
>>> - Seamless integration into schematic editor,
>>> - AC/Transient/DC sweep simulations,
>>> - Voltage probing from the schematics,
>>> - Live tuning of component values.
>>>
>>> A video demonstrating the capabilities of the new simulator is available
>>> on Tom's YouTube channel [1].
>>>
>>> The code is currently available in the ngspice branch on Tom's GitHub
>>> [2] for review & testing. It's a big feature, so we didn't want to push
>>> it immediately to the product branch. We'll greatly appreciate your
>>> feedback!
>>>
>>> The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
>>> ngspice developers for providing a DLL interface which made seamless
>>> integration of ngspice into Kicad possible.
>>>
>>> In order to get started:
>>> - install ngspice shared library (is not provided by many Linux distros,
>>> Arch Linux is a known exception, so you might have to compile it from
>>> the sources with --with-ngshared --enable-xspice options).  Windows
>>> DLLs, msys2 PKGBUILD & binary packages (to be included soon in
>>> the official msys2 repo, currently merged to
>>> https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
>>> library are available at [4].
>>> - compile eeschema with -DKICAD_SPICE=ON option,
>>> - have a look at some examples in demos/simulation directory.
>>>
>>> Happy simulating,
>>> Tom
>>>
>>> [1] https://youtu.be/A2_-hdRcf4U
>>> [2] https://github.com/twlostow/kicad-dev/tree/ngspice
>>> [3] http://ngspice.sourceforge.net/
>>> [4] https://orson.net.pl/pub/libngspice
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~kicad-developers
>>> Post to : kicad-developers@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>> More help   : https://help.launchpad.net/ListHelp
>>
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>>
> 
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 




signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-10 Thread jp charras
Le 10/08/2016 à 14:47, Maciej Sumiński a écrit :
> On 08/10/2016 02:43 PM, jp charras wrote:
>> Le 10/08/2016 à 10:21, jp charras a écrit :
>>> Le 10/08/2016 à 09:43, jp charras a écrit :
 Le 10/08/2016 à 09:03, Maciej Sumiński a écrit :
> Hi Jean-Pierre,
>
> This is strange. I had the problem you describe (Windows 7 x86_64) and
> fixed it in commit ee24275f [1]. 
> 1.
> https://github.com/orsonmmz/kicad-source-mirror/commit/ee24275fc8fd78fe47428d6b45a41684dae9f6f2
>
>>>
>>> Hi Orson,
>>>
>>> I am trying your spice branch, but I cannot compile your code: a file is 
>>> missing:
>>> in eeschema/sim/ngspice.h:
>>> "#include <../share/ngspice/include/ngspice/sharedspice.h>"
>>> fails (no such file).
>>>
>>> Sorry.
>>>
>>
>> Hi Orson,
>>
>> After copying the missing file sharedspice.h from
>> https://github.com/twlostow/kicad-dev (ngspice branch)
>> all compiles and works fine.
>> Thanks.
>>
> 
> Hi Jean-Pierre,
> 
> I removed the header file intentionally, as it is supposed to be
> delivered with (lib)ngspice package. How did you obtain the libngspice
> library?

I built it from sources, with your explanations in a previous mail.

> 
> I have just tested a package generated with ngspice mingw64 PKGBUILD [1]
> and the new version of get_libngspice_so.sh [2] and they both installed
> the header file.
> 
> Regards,
> Orson
> 
> 1.
> https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-ngspice/PKGBUILD
> 2. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh

-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-10 Thread Maciej Sumiński
On 08/10/2016 02:43 PM, jp charras wrote:
> Le 10/08/2016 à 10:21, jp charras a écrit :
>> Le 10/08/2016 à 09:43, jp charras a écrit :
>>> Le 10/08/2016 à 09:03, Maciej Sumiński a écrit :
 Hi Jean-Pierre,

 This is strange. I had the problem you describe (Windows 7 x86_64) and
 fixed it in commit ee24275f [1]. 
 1.
 https://github.com/orsonmmz/kicad-source-mirror/commit/ee24275fc8fd78fe47428d6b45a41684dae9f6f2

>>
>> Hi Orson,
>>
>> I am trying your spice branch, but I cannot compile your code: a file is 
>> missing:
>> in eeschema/sim/ngspice.h:
>> "#include <../share/ngspice/include/ngspice/sharedspice.h>"
>> fails (no such file).
>>
>> Sorry.
>>
> 
> Hi Orson,
> 
> After copying the missing file sharedspice.h from
> https://github.com/twlostow/kicad-dev (ngspice branch)
> all compiles and works fine.
> Thanks.
> 

Hi Jean-Pierre,

I removed the header file intentionally, as it is supposed to be
delivered with (lib)ngspice package. How did you obtain the libngspice
library?

I have just tested a package generated with ngspice mingw64 PKGBUILD [1]
and the new version of get_libngspice_so.sh [2] and they both installed
the header file.

Regards,
Orson

1.
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-ngspice/PKGBUILD
2. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh



signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-10 Thread jp charras
Le 10/08/2016 à 10:21, jp charras a écrit :
> Le 10/08/2016 à 09:43, jp charras a écrit :
>> Le 10/08/2016 à 09:03, Maciej Sumiński a écrit :
>>> Hi Jean-Pierre,
>>>
>>> This is strange. I had the problem you describe (Windows 7 x86_64) and
>>> fixed it in commit ee24275f [1]. 
>>> 1.
>>> https://github.com/orsonmmz/kicad-source-mirror/commit/ee24275fc8fd78fe47428d6b45a41684dae9f6f2
>>>
> 
> Hi Orson,
> 
> I am trying your spice branch, but I cannot compile your code: a file is 
> missing:
> in eeschema/sim/ngspice.h:
> "#include <../share/ngspice/include/ngspice/sharedspice.h>"
> fails (no such file).
> 
> Sorry.
> 

Hi Orson,

After copying the missing file sharedspice.h from
https://github.com/twlostow/kicad-dev (ngspice branch)
all compiles and works fine.
Thanks.

-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-10 Thread jp charras
Le 10/08/2016 à 09:43, jp charras a écrit :
> Le 10/08/2016 à 09:03, Maciej Sumiński a écrit :
>> Hi Jean-Pierre,
>>
>> This is strange. I had the problem you describe (Windows 7 x86_64) and
>> fixed it in commit ee24275f [1]. 
>> 1.
>> https://github.com/orsonmmz/kicad-source-mirror/commit/ee24275fc8fd78fe47428d6b45a41684dae9f6f2
>>

Hi Orson,

I am trying your spice branch, but I cannot compile your code: a file is 
missing:
in eeschema/sim/ngspice.h:
"#include <../share/ngspice/include/ngspice/sharedspice.h>"
fails (no such file).

Sorry.

-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-10 Thread jp charras
Le 10/08/2016 à 09:03, Maciej Sumiński a écrit :
> Hi Jean-Pierre,
> 
> This is strange. I had the problem you describe (Windows 7 x86_64) and
> fixed it in commit ee24275f [1]. Does the cursor look fine if you revert
> the commit? What wxWidgets & Windows versions do you use?

Yes, the cursor looks fine, just with your code.
Thanks.

I am using W7 32 bits, wxWidgets 3.1 (and sometimes 3.02)

With initial code, the problem was on both wxWidgets versions.
(code from https://github.com/twlostow/kicad-dev)

> 
> Regards,
> Orson
> 
> 1.
> https://github.com/orsonmmz/kicad-source-mirror/commit/ee24275fc8fd78fe47428d6b45a41684dae9f6f2
> 
> On 08/09/2016 12:10 PM, jp charras wrote:
>> Hi Orson,
>>
>> At least on Windows (and perhaps on others OS) the cursor mask looks like it 
>> is inverted (0 instead
>> of 1 and 1 instead of 0)
>> Therefore the probes are not visible on a white background, and are a 
>> negative shape on a black
>> background.
>>
>> Here is a patch to use the right (inverted) mask.
>> (sorry, the initial mask is not modified, due to my lazyness, the right mask 
>> is built on the fly).
>> Not tested on OSX.
>>
>> Thanks,


-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-10 Thread Maciej Sumiński
Hi Jean-Pierre,

This is strange. I had the problem you describe (Windows 7 x86_64) and
fixed it in commit ee24275f [1]. Does the cursor look fine if you revert
the commit? What wxWidgets & Windows versions do you use?

Regards,
Orson

1.
https://github.com/orsonmmz/kicad-source-mirror/commit/ee24275fc8fd78fe47428d6b45a41684dae9f6f2

On 08/09/2016 12:10 PM, jp charras wrote:
> Hi Orson,
> 
> At least on Windows (and perhaps on others OS) the cursor mask looks like it 
> is inverted (0 instead
> of 1 and 1 instead of 0)
> Therefore the probes are not visible on a white background, and are a 
> negative shape on a black
> background.
> 
> Here is a patch to use the right (inverted) mask.
> (sorry, the initial mask is not modified, due to my lazyness, the right mask 
> is built on the fly).
> Not tested on OSX.
> 
> Thanks,
> 
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 




signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-09 Thread jp charras
Hi Orson,

At least on Windows (and perhaps on others OS) the cursor mask looks like it is 
inverted (0 instead
of 1 and 1 instead of 0)
Therefore the probes are not visible on a white background, and are a negative 
shape on a black
background.

Here is a patch to use the right (inverted) mask.
(sorry, the initial mask is not modified, due to my lazyness, the right mask is 
built on the fly).
Not tested on OSX.

Thanks,

-- 
Jean-Pierre CHARRAS
diff --git a/eeschema/sim/simulate.cpp b/eeschema/sim/simulate.cpp
index c67b570..8a85b23 100644
--- a/eeschema/sim/simulate.cpp
+++ b/eeschema/sim/simulate.cpp
@@ -104,7 +104,11 @@ public:
 if( probe_image == NULL )
 {
 wxBitmap probe_bitmap( (const char*) cursor_probe, 32, 32 );
-wxBitmap probe_mask_bitmap( (const char*) cursor_probe_mask, 32, 
32 );
+// Due to a mistake, the cursor_probe_mask is inverted. build the 
right one
+unsigned char mask[sizeof(cursor_probe_mask)];
+for( unsigned ii = 0; ii < sizeof(mask); ii++ )
+mask[ii] = ~cursor_probe_mask[ii];
+wxBitmap probe_mask_bitmap( (const char*) mask, 32, 32 );
 probe_bitmap.SetMask( new wxMask( probe_mask_bitmap ) );
 probe_image = new wxImage( probe_bitmap.ConvertToImage() );
 probe_image->SetOption( wxIMAGE_OPTION_CUR_HOTSPOT_X, 0 );
@@ -121,7 +125,11 @@ public:
 if( tune_image == NULL )
 {
 wxBitmap tune_bitmap( (const char*) cursor_tune, 32, 32 );
-wxBitmap tune_mask_bitmap( (const char*) cursor_tune_mask, 32, 32 
);
+// Due to a mistake, the cursor_tune_mask is inverted. build the 
right one
+unsigned char mask[sizeof(cursor_tune_mask)];
+for( unsigned ii = 0; ii < sizeof(mask); ii++ )
+mask[ii] = ~cursor_tune_mask[ii];
+wxBitmap tune_mask_bitmap( (const char*) mask, 32, 32 );
 tune_bitmap.SetMask( new wxMask( tune_mask_bitmap ) );
 tune_image = new wxImage( tune_bitmap.ConvertToImage() );
 tune_image->SetOption( wxIMAGE_OPTION_CUR_HOTSPOT_X, 0 );
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-06 Thread Eldar Khayrullin

Now the script works fine on Linux.
Maybe instead:
# make install
it will be good to use:
# checkinstall [...] ?

В Пятница, 5 авг. 2016 в 10:40 , Maciej Sumiński 
 написал:

I had spoken with ngspice devs and they have suggested me a workaround
for the bug. Unfortunately, it requires a patch that is currently not
included in the release version, so we resort to building from the
source again.

To ease the pain, I have updated get_libngspice_so.sh [1]. Now it 
should
build the correct library version for Linux, Windows (mingw64) & OS 
X. I

have managed to run the script successfully on all the mentioned
platforms, but I still do not have KiCad compiled on OS X, so I was 
not

able to test it there.

I have updated the ngspice branch in my github repository [2]:
- applied fixes for Win7 & OS X (thank you Jean-Pierre & Johannes)
- resized dialogs, so all the fields are visible and windows fit 
1024x768

- fixed a few minor bugs
- corrected demo circuits
- cleared, formatted & documented the code
 & added some documentation
I consider the code ready for merge. If there are no objections, I 
would

like to proceed next week.

Regards,
Orson

1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh
2. https://github.com/orsonmmz/kicad-source-mirror/tree/ngspice

On 07/21/2016 11:16 PM, Chris Pavlina wrote:
 Really, really nice! I made it do a thing! 
https://misc.c4757p.com/kicad_sim.png


 I feel bad to provide a bug report on my very first communcation on
 this, but... found one: not sure if this sort of thing is actually
 standard SPICE or an LTspice extension, but I tried parameterizing a
 component value, setting a resistor's value to {R} - that sort of 
thing

 leads to irrecoverable lockups here.

 On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:

 Hi,

 As some of you have noticed, we've been working on a "secret" 
feature

 during the hackathon at CERN. The feature we're talking about is an
 integrated circuit simulator. Currently it features:
 - Seamless integration into schematic editor,
 - AC/Transient/DC sweep simulations,
 - Voltage probing from the schematics,
 - Live tuning of component values.

 A video demonstrating the capabilities of the new simulator is 
available

 on Tom's YouTube channel [1].

 The code is currently available in the ngspice branch on Tom's 
GitHub
 [2] for review & testing. It's a big feature, so we didn't want to 
push

 it immediately to the product branch. We'll greatly appreciate your
 feedback!

 The simulator uses ngspice [3] as the Spice kernel. We'd like to 
thank
 ngspice developers for providing a DLL interface which made 
seamless

 integration of ngspice into Kicad possible.

 In order to get started:
 - install ngspice shared library (is not provided by many Linux 
distros,
 Arch Linux is a known exception, so you might have to compile it 
from

 the sources with --with-ngshared --enable-xspice options).  Windows
 DLLs, msys2 PKGBUILD & binary packages (to be included soon in
 the official msys2 repo, currently merged to
 https://github.com/Alexpux/MINGW-packages/) & Linux script to 
build the

 library are available at [4].
 - compile eeschema with -DKICAD_SPICE=ON option,
 - have a look at some examples in demos/simulation directory.

 Happy simulating,
 Tom

 [1] https://youtu.be/A2_-hdRcf4U
 [2] https://github.com/twlostow/kicad-dev/tree/ngspice
 [3] http://ngspice.sourceforge.net/
 [4] https://orson.net.pl/pub/libngspice

 ___
 Mailing list: https://launchpad.net/~kicad-developers
 Post to : kicad-developers@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~kicad-developers
 More help   : https://help.launchpad.net/ListHelp


 ___
 Mailing list: https://launchpad.net/~kicad-developers
 Post to : kicad-developers@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~kicad-developers
 More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-05 Thread Maciej Sumiński
I had spoken with ngspice devs and they have suggested me a workaround
for the bug. Unfortunately, it requires a patch that is currently not
included in the release version, so we resort to building from the
source again.

To ease the pain, I have updated get_libngspice_so.sh [1]. Now it should
build the correct library version for Linux, Windows (mingw64) & OS X. I
have managed to run the script successfully on all the mentioned
platforms, but I still do not have KiCad compiled on OS X, so I was not
able to test it there.

I have updated the ngspice branch in my github repository [2]:
- applied fixes for Win7 & OS X (thank you Jean-Pierre & Johannes)
- resized dialogs, so all the fields are visible and windows fit 1024x768
- fixed a few minor bugs
- corrected demo circuits
- cleared, formatted & documented the code
 & added some documentation
I consider the code ready for merge. If there are no objections, I would
like to proceed next week.

Regards,
Orson

1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh
2. https://github.com/orsonmmz/kicad-source-mirror/tree/ngspice

On 07/21/2016 11:16 PM, Chris Pavlina wrote:
> Really, really nice! I made it do a thing! 
> https://misc.c4757p.com/kicad_sim.png
> 
> I feel bad to provide a bug report on my very first communcation on
> this, but... found one: not sure if this sort of thing is actually
> standard SPICE or an LTspice extension, but I tried parameterizing a
> component value, setting a resistor's value to {R} - that sort of thing
> leads to irrecoverable lockups here.
> 
> On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:
>> Hi,
>>
>> As some of you have noticed, we've been working on a "secret" feature
>> during the hackathon at CERN. The feature we're talking about is an
>> integrated circuit simulator. Currently it features:
>> - Seamless integration into schematic editor,
>> - AC/Transient/DC sweep simulations,
>> - Voltage probing from the schematics,
>> - Live tuning of component values.
>>
>> A video demonstrating the capabilities of the new simulator is available
>> on Tom's YouTube channel [1].
>>
>> The code is currently available in the ngspice branch on Tom's GitHub
>> [2] for review & testing. It's a big feature, so we didn't want to push
>> it immediately to the product branch. We'll greatly appreciate your
>> feedback!
>>
>> The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
>> ngspice developers for providing a DLL interface which made seamless
>> integration of ngspice into Kicad possible.
>>
>> In order to get started:
>> - install ngspice shared library (is not provided by many Linux distros,
>> Arch Linux is a known exception, so you might have to compile it from
>> the sources with --with-ngshared --enable-xspice options).  Windows
>> DLLs, msys2 PKGBUILD & binary packages (to be included soon in
>> the official msys2 repo, currently merged to
>> https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
>> library are available at [4].
>> - compile eeschema with -DKICAD_SPICE=ON option,
>> - have a look at some examples in demos/simulation directory.
>>
>> Happy simulating,
>> Tom
>>
>> [1] https://youtu.be/A2_-hdRcf4U
>> [2] https://github.com/twlostow/kicad-dev/tree/ngspice
>> [3] http://ngspice.sourceforge.net/
>> [4] https://orson.net.pl/pub/libngspice
>>
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 



signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-04 Thread Cirilo Bernardo
I think your proposal is the best way.  I had to do something similar
many years ago with another scientist's FORTRAN code - in that case
the code either asked for user input or simply called exit() - both of
those being extremely bad behavior for a shared library. From my point
of view your proposed change should be an improvement to the ngspice
code (I hope it doesn't require as much refactoring as the fortran code
I had to deal with).

- Cirilo

On Wed, Aug 3, 2016 at 10:06 PM, Maciej Sumiński 
wrote:

> TL;DR: I consider preparing a script that builds patched ngspice DLL to
> solve the problem.
>
> The bug stems from the fact that when an error occurs user is expected
> to answer whether the simulation should be continued with y/n. As there
> is no way we can answer the question when ngspice runs from a shared
> library, the simulation hangs.
>
> There is no directive to skip the question. The only way is to run in
> batch mode, but it might be done only by running ngspice with -b parameter.
>
> Ideally it should be patched in the ngspice source code (I am going to
> propose it to the ngspice devs), but once it is accepted, it will take a
> lot of time before the code is included the next release.
>
> What I consider right now, is to modify get_libngspice_so.sh, to make it
> multiplatform and add the required patch there. Currently, it should not
> be a big deal as the shared library is only delivered by Arch Linux (and
> I believe Arch users are able to cope with such problem anyway).
>
> What do you think? Does anyone see a better solution?
>
> Regards,
> Orson
>
> On 07/21/2016 11:16 PM, Chris Pavlina wrote:
> > Really, really nice! I made it do a thing!
> https://misc.c4757p.com/kicad_sim.png
> >
> > I feel bad to provide a bug report on my very first communcation on
> > this, but... found one: not sure if this sort of thing is actually
> > standard SPICE or an LTspice extension, but I tried parameterizing a
> > component value, setting a resistor's value to {R} - that sort of thing
> > leads to irrecoverable lockups here.
> >
> > On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:
> >> Hi,
> >>
> >> As some of you have noticed, we've been working on a "secret" feature
> >> during the hackathon at CERN. The feature we're talking about is an
> >> integrated circuit simulator. Currently it features:
> >> - Seamless integration into schematic editor,
> >> - AC/Transient/DC sweep simulations,
> >> - Voltage probing from the schematics,
> >> - Live tuning of component values.
> >>
> >> A video demonstrating the capabilities of the new simulator is available
> >> on Tom's YouTube channel [1].
> >>
> >> The code is currently available in the ngspice branch on Tom's GitHub
> >> [2] for review & testing. It's a big feature, so we didn't want to push
> >> it immediately to the product branch. We'll greatly appreciate your
> >> feedback!
> >>
> >> The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
> >> ngspice developers for providing a DLL interface which made seamless
> >> integration of ngspice into Kicad possible.
> >>
> >> In order to get started:
> >> - install ngspice shared library (is not provided by many Linux distros,
> >> Arch Linux is a known exception, so you might have to compile it from
> >> the sources with --with-ngshared --enable-xspice options).  Windows
> >> DLLs, msys2 PKGBUILD & binary packages (to be included soon in
> >> the official msys2 repo, currently merged to
> >> https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
> >> library are available at [4].
> >> - compile eeschema with -DKICAD_SPICE=ON option,
> >> - have a look at some examples in demos/simulation directory.
> >>
> >> Happy simulating,
> >> Tom
> >>
> >> [1] https://youtu.be/A2_-hdRcf4U
> >> [2] https://github.com/twlostow/kicad-dev/tree/ngspice
> >> [3] http://ngspice.sourceforge.net/
> >> [4] https://orson.net.pl/pub/libngspice
> >>
> >> ___
> >> Mailing list: https://launchpad.net/~kicad-developers
> >> Post to : kicad-developers@lists.launchpad.net
> >> Unsubscribe : https://launchpad.net/~kicad-developers
> >> More help   : https://help.launchpad.net/ListHelp
> >
> > ___
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to : kicad-developers@lists.launchpad.net
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help   : https://help.launchpad.net/ListHelp
> >
>
>
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : 

Re: [Kicad-developers] Integrated Simulator

2016-08-04 Thread Maciej Sumiński
On 08/02/2016 09:23 AM, Johannes Maibaum wrote:
> Hi Orson,
> 
>> Am 01.08.2016 um 15:08 schrieb Maciej Sumiński > >:
>>
>> Hi Jean-Pierre,
>>
>> Thank you for the wxWidgets patch, I have already applied it in my
>> branch [1]. This week I would like to check & fix the remaining issues
>> and if nobody raises an objection, I will merge it to the product
>> branch. It still has to be explicitly enabled, so it should not cause
>> any problems.
> 
> There is a minor issue with the simulator that I came across: the initial
> framesize is set to 1280x900 which is too big for my 13" notebook screen
> (which is 1280x800).  Usually that is not a problem, but in this case the
> window gets placed so that the title and the menu with all the button
> controls is off-screen at the top (see attached screenshot).
> 
> This is bad as on OSX, without special hotkey knowledge, a user can not
> move the window down to get access to the menu bar.  In fact I had to
> google for a solution (when holding ALT while resizing the window from
> the bottom edge, the window also shrinks symmetrically from the top,
> which eventually exposes the title bar).
> 
> I see that my screen resolution is probably not the typical size for
> serious PCB design and layout work, so I won’t ask for a smaller initial
> size.  But perhaps there is the possibility to at least assure that the
> title bar of the window will be placed on a visible part of the screen?
> Moving and resizing would then be a lot easier for normal users.
> 
> Best,
> Johannes

Hi Johannes,

Thank you for the message. As the current system requirements specify
that KiCad should work with 1024x768 resolution, I am going to resize
the window.

Regards,
Orson



signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-03 Thread Maciej Sumiński
TL;DR: I consider preparing a script that builds patched ngspice DLL to
solve the problem.

The bug stems from the fact that when an error occurs user is expected
to answer whether the simulation should be continued with y/n. As there
is no way we can answer the question when ngspice runs from a shared
library, the simulation hangs.

There is no directive to skip the question. The only way is to run in
batch mode, but it might be done only by running ngspice with -b parameter.

Ideally it should be patched in the ngspice source code (I am going to
propose it to the ngspice devs), but once it is accepted, it will take a
lot of time before the code is included the next release.

What I consider right now, is to modify get_libngspice_so.sh, to make it
multiplatform and add the required patch there. Currently, it should not
be a big deal as the shared library is only delivered by Arch Linux (and
I believe Arch users are able to cope with such problem anyway).

What do you think? Does anyone see a better solution?

Regards,
Orson

On 07/21/2016 11:16 PM, Chris Pavlina wrote:
> Really, really nice! I made it do a thing! 
> https://misc.c4757p.com/kicad_sim.png
> 
> I feel bad to provide a bug report on my very first communcation on
> this, but... found one: not sure if this sort of thing is actually
> standard SPICE or an LTspice extension, but I tried parameterizing a
> component value, setting a resistor's value to {R} - that sort of thing
> leads to irrecoverable lockups here.
> 
> On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:
>> Hi,
>>
>> As some of you have noticed, we've been working on a "secret" feature
>> during the hackathon at CERN. The feature we're talking about is an
>> integrated circuit simulator. Currently it features:
>> - Seamless integration into schematic editor,
>> - AC/Transient/DC sweep simulations,
>> - Voltage probing from the schematics,
>> - Live tuning of component values.
>>
>> A video demonstrating the capabilities of the new simulator is available
>> on Tom's YouTube channel [1].
>>
>> The code is currently available in the ngspice branch on Tom's GitHub
>> [2] for review & testing. It's a big feature, so we didn't want to push
>> it immediately to the product branch. We'll greatly appreciate your
>> feedback!
>>
>> The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
>> ngspice developers for providing a DLL interface which made seamless
>> integration of ngspice into Kicad possible.
>>
>> In order to get started:
>> - install ngspice shared library (is not provided by many Linux distros,
>> Arch Linux is a known exception, so you might have to compile it from
>> the sources with --with-ngshared --enable-xspice options).  Windows
>> DLLs, msys2 PKGBUILD & binary packages (to be included soon in
>> the official msys2 repo, currently merged to
>> https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
>> library are available at [4].
>> - compile eeschema with -DKICAD_SPICE=ON option,
>> - have a look at some examples in demos/simulation directory.
>>
>> Happy simulating,
>> Tom
>>
>> [1] https://youtu.be/A2_-hdRcf4U
>> [2] https://github.com/twlostow/kicad-dev/tree/ngspice
>> [3] http://ngspice.sourceforge.net/
>> [4] https://orson.net.pl/pub/libngspice
>>
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 




signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-02 Thread Johannes Maibaum
Hi Orson,

> Am 01.08.2016 um 15:08 schrieb Maciej Sumiński :
> 
> Hi Jean-Pierre,
> 
> Thank you for the wxWidgets patch, I have already applied it in my
> branch [1]. This week I would like to check & fix the remaining issues
> and if nobody raises an objection, I will merge it to the product
> branch. It still has to be explicitly enabled, so it should not cause
> any problems.

There is a minor issue with the simulator that I came across: the initial
framesize is set to 1280x900 which is too big for my 13" notebook screen
(which is 1280x800).  Usually that is not a problem, but in this case the
window gets placed so that the title and the menu with all the button
controls is off-screen at the top (see attached screenshot).

This is bad as on OSX, without special hotkey knowledge, a user can not
move the window down to get access to the menu bar.  In fact I had to
google for a solution (when holding ALT while resizing the window from
the bottom edge, the window also shrinks symmetrically from the top,
which eventually exposes the title bar).

I see that my screen resolution is probably not the typical size for
serious PCB design and layout work, so I won’t ask for a smaller initial
size.  But perhaps there is the possibility to at least assure that the
title bar of the window will be placed on a visible part of the screen?
Moving and resizing would then be a lot easier for normal users.

Best,
Johannes



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-01 Thread Maciej Sumiński
Thank you, it should be corrected now. Now the script is as pure as it
can be.

Regards,
Orson

On 08/01/2016 03:51 PM, Eldar Khayrullin wrote:
> After:
> $ rm -r /tmp/libngspice_so/
> I see:
> $ LANG=C ./get_libngspice_so.sh
> ./get_libngspice_so.sh: 13: ./get_libngspice_so.sh: [[: not found
> ./get_libngspice_so.sh: 41: ./get_libngspice_so.sh: [[: not found
> -e \e[34mDownloading ngspice tarball..\e[0m
> --2016-08-01 16:50:20-- 
> http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz
> 
> Resolving downloads.sourceforge.net (downloads.sourceforge.net)...
> 52.85.142.110, 52.85.142.253, 52.85.142.13, ...
> Connecting to downloads.sourceforge.net
> (downloads.sourceforge.net)|52.85.142.110|:80... connected.
> HTTP request sent, awaiting response... 302 Moved Temporarily
> Location:
> http://downloads.sourceforge.net/#!/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz
> [following]
> --2016-08-01 16:50:21--  http://downloads.sourceforge.net/
> Reusing existing connection to downloads.sourceforge.net:80.
> HTTP request sent, awaiting response... 200 OK
> Length: 639 [text/html]
> Saving to: 'ngspice-26.tar.gz'
> 
> ngspice-26.tar.gz   
> 100%[>] 639
> --.-KB/sin 0s
> 
> 2016-08-01 16:50:21 (89,0 MB/s) - 'ngspice-26.tar.gz' saved [639/639]
> 
> ./get_libngspice_so.sh: 49: ./get_libngspice_so.sh: [[: not found
> ./get_libngspice_so.sh: 56: ./get_libngspice_so.sh: [[: not found
> 
> gzip: stdin: not in gzip format
> tar: Child returned status 1
> tar: Error is not recoverable: exiting now
> ./get_libngspice_so.sh: 62: cd: can't cd to ngspice-26
> -e \e[34mBuilding libngspice shared library..\e[0m
> ./get_libngspice_so.sh: 66: ./get_libngspice_so.sh: ./configure: not found
> make: *** No targets specified and no makefile found.  Stop.
> ./get_libngspice_so.sh: 69: ./get_libngspice_so.sh: [[: not found
> 
> -e \e[32mngspice shared library has been built successfully!\e[0m
> 
> Now, to finish the installation run the script as root with 'install'
> parameter:
> sudo ./get_libngspice_so.sh install
> 
> В Понедельник, 1 авг. 2016 в 4:19 , Maciej Sumiński
>  написал:
>> Hi Eldar,
>>
>> I would rather install the libraries to /usr/local, so they do not
>> interfere with libraries installed by package managers. I guess I know
>> what I kind of issue you have faced, and now it should be fixed in the
>> new version get_libngspice_so.sh script [1].
>>
>> Regards,
>> Orson
>>
>> 1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh
>>
>> On 07/22/2016 04:44 PM, Eldar Khayrullin wrote:
>>>  If whom need I send libngspice install script with my modifications
>>>
>>>  В Пятница, 22 июл. 2016 в 5:30 , Eldar Khayrullin
>>>   написал:
  After adding option --prefix=/usr (if install path is /usr/local need
  to add it to LD_PRELOAD) I saw in sallen_key.sch (without .include
  diodes):

  **
  ** ngspice-26 shared library
  ** Creation Date: Fri Jul 22 17:17:51 MSK 2016
  **
  Circuit: KiCad schematic
  Reducing trtol to 1 for xspice 'A' devices
  Doing analysis at TEMP = 27,00 and TNOM = 27,00
  Warning: vv1: has no value, DC 0 assumed
   Reference value :  1,0e+00
  No. of Data Rows : 61

  В Пятница, 22 июл. 2016 в 12:11 , Eldar Khayrullin
   написал:
>  Opening the sallen_key.sch with eeschema show in the log window:
>
>  1) Note: can't find init file.
>
>  2) Error: .include filename missing
>  If delete ".include diodes.lib" - OK.
>
>  3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd (
>  xu1.3 2 ) a$poly$e.xu1.eos
>  MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
>  Warning: Model issue on line 0 : .model a$poly$e.xu1.eos spice2poly
>  coef = [ 1.7e-3 1 ] ...
>  Unknown model type spice2poly - ignored
>  Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 0 )
>  a$poly$e.xu1.eref1
>  MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
>  Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 spice2poly
>  coef = [ 0 0.5 0.5  ...
>  Unknown model type spice2poly - ignored
>  Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 0 )
>  a$poly$e.xu1.eref2
>  MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
>  Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 spice2poly
>  coef = [ 0 0.5 0.5  ...
>  Unknown model type spice2poly - ignored
>  Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4
>  xu1.42 ) a$poly$e.xu1.eo3
>  MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
>  Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3 spice2poly
>  coef = [ 0.7175 0.5 ] ...
>  Unknown model type 

Re: [Kicad-developers] Integrated Simulator

2016-08-01 Thread Eldar Khayrullin

Script doesn't download the ngspice archive anymore.

В Понедельник, 1 авг. 2016 в 4:19 , Maciej Sumiński 
 написал:

Hi Eldar,

I would rather install the libraries to /usr/local, so they do not
interfere with libraries installed by package managers. I guess I know
what I kind of issue you have faced, and now it should be fixed in the
new version get_libngspice_so.sh script [1].

Regards,
Orson

1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh

On 07/22/2016 04:44 PM, Eldar Khayrullin wrote:

 If whom need I send libngspice install script with my modifications

 В Пятница, 22 июл. 2016 в 5:30 , Eldar Khayrullin
  написал:
 After adding option --prefix=/usr (if install path is /usr/local 
need

 to add it to LD_PRELOAD) I saw in sallen_key.sch (without .include
 diodes):

 **
 ** ngspice-26 shared library
 ** Creation Date: Fri Jul 22 17:17:51 MSK 2016
 **
 Circuit: KiCad schematic
 Reducing trtol to 1 for xspice 'A' devices
 Doing analysis at TEMP = 27,00 and TNOM = 27,00
 Warning: vv1: has no value, DC 0 assumed
  Reference value :  1,0e+00
 No. of Data Rows : 61

 В Пятница, 22 июл. 2016 в 12:11 , Eldar Khayrullin
  написал:

 Opening the sallen_key.sch with eeschema show in the log window:

 1) Note: can't find init file.

 2) Error: .include filename missing
 If delete ".include diodes.lib" - OK.

 3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd (
 xu1.3 2 ) a$poly$e.xu1.eos
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eos 
spice2poly

 coef = [ 1.7e-3 1 ] ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 
0 )

 a$poly$e.xu1.eref1
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 
spice2poly

 coef = [ 0 0.5 0.5  ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 
0 )

 a$poly$e.xu1.eref2
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 
spice2poly

 coef = [ 0 0.5 0.5  ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4
 xu1.42 ) a$poly$e.xu1.eo3
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3 
spice2poly

 coef = [ 0.7175 0.5 ] ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eo4 %vd [ xu1.30 xu1.98 ] %vd ( 
xu1.44

 5 ) a$poly$e.xu1.eo4
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo4
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eo4 
spice2poly

 coef = [ 0.7355 0.5 ] ...
 Unknown model type spice2poly - ignored
 Reducing trtol to 1 for xspice 'A' devices
 Doing analysis at TEMP = 27,00 and TNOM = 27,00
 Warning: vv1: has no value, DC 0 assumed
  Reference value :  1,0e+00
 No. of Data Rows : 61

 But the simulation and the tune and the probe work.
 It will be nice to have the select of visibility of signals 
(checkbox).



 В Четверг, 21 июл. 2016 в 10:37 , Tomasz Wlostowski
  написал:

 Hi,




 ___
 Mailing list: https://launchpad.net/~kicad-developers
 Post to : kicad-developers@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~kicad-developers
 More help   : https://help.launchpad.net/ListHelp




___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-01 Thread Eldar Khayrullin

After:
$ rm -r /tmp/libngspice_so/
I see:
$ LANG=C ./get_libngspice_so.sh
./get_libngspice_so.sh: 13: ./get_libngspice_so.sh: [[: not found
./get_libngspice_so.sh: 41: ./get_libngspice_so.sh: [[: not found
-e \e[34mDownloading ngspice tarball..\e[0m
--2016-08-01 16:50:20--  
http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 
52.85.142.110, 52.85.142.253, 52.85.142.13, ...
Connecting to downloads.sourceforge.net 
(downloads.sourceforge.net)|52.85.142.110|:80... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily
Location: 
http://downloads.sourceforge.net/#!/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz 
[following]

--2016-08-01 16:50:21--  http://downloads.sourceforge.net/
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 200 OK
Length: 639 [text/html]
Saving to: 'ngspice-26.tar.gz'

ngspice-26.tar.gz
100%[>] 639 
--.-KB/sin 0s


2016-08-01 16:50:21 (89,0 MB/s) - 'ngspice-26.tar.gz' saved [639/639]

./get_libngspice_so.sh: 49: ./get_libngspice_so.sh: [[: not found
./get_libngspice_so.sh: 56: ./get_libngspice_so.sh: [[: not found

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
./get_libngspice_so.sh: 62: cd: can't cd to ngspice-26
-e \e[34mBuilding libngspice shared library..\e[0m
./get_libngspice_so.sh: 66: ./get_libngspice_so.sh: ./configure: not 
found

make: *** No targets specified and no makefile found.  Stop.
./get_libngspice_so.sh: 69: ./get_libngspice_so.sh: [[: not found

-e \e[32mngspice shared library has been built successfully!\e[0m

Now, to finish the installation run the script as root with 'install' 
parameter:

sudo ./get_libngspice_so.sh install

В Понедельник, 1 авг. 2016 в 4:19 , Maciej Sumiński 
 написал:

Hi Eldar,

I would rather install the libraries to /usr/local, so they do not
interfere with libraries installed by package managers. I guess I know
what I kind of issue you have faced, and now it should be fixed in the
new version get_libngspice_so.sh script [1].

Regards,
Orson

1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh

On 07/22/2016 04:44 PM, Eldar Khayrullin wrote:

 If whom need I send libngspice install script with my modifications

 В Пятница, 22 июл. 2016 в 5:30 , Eldar Khayrullin
  написал:
 After adding option --prefix=/usr (if install path is /usr/local 
need

 to add it to LD_PRELOAD) I saw in sallen_key.sch (without .include
 diodes):

 **
 ** ngspice-26 shared library
 ** Creation Date: Fri Jul 22 17:17:51 MSK 2016
 **
 Circuit: KiCad schematic
 Reducing trtol to 1 for xspice 'A' devices
 Doing analysis at TEMP = 27,00 and TNOM = 27,00
 Warning: vv1: has no value, DC 0 assumed
  Reference value :  1,0e+00
 No. of Data Rows : 61

 В Пятница, 22 июл. 2016 в 12:11 , Eldar Khayrullin
  написал:

 Opening the sallen_key.sch with eeschema show in the log window:

 1) Note: can't find init file.

 2) Error: .include filename missing
 If delete ".include diodes.lib" - OK.

 3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd (
 xu1.3 2 ) a$poly$e.xu1.eos
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eos 
spice2poly

 coef = [ 1.7e-3 1 ] ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 
0 )

 a$poly$e.xu1.eref1
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 
spice2poly

 coef = [ 0 0.5 0.5  ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 
0 )

 a$poly$e.xu1.eref2
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 
spice2poly

 coef = [ 0 0.5 0.5  ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4
 xu1.42 ) a$poly$e.xu1.eo3
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3 
spice2poly

 coef = [ 0.7175 0.5 ] ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eo4 %vd [ xu1.30 xu1.98 ] %vd ( 
xu1.44

 5 ) a$poly$e.xu1.eo4
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo4
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eo4 
spice2poly

 coef = [ 0.7355 0.5 ] ...
 Unknown model type spice2poly - ignored
 Reducing trtol to 1 for xspice 'A' devices
 Doing analysis at TEMP = 27,00 and TNOM = 27,00
 Warning: vv1: has no value, DC 0 assumed
  Reference value :  1,0e+00
 No. of Data Rows : 61

 But the 

Re: [Kicad-developers] Integrated Simulator

2016-08-01 Thread Eldar Khayrullin

With your new script:
$ LANG=C ./get_libngspice_so.sh
./get_libngspice_so.sh: 13: ./get_libngspice_so.sh: [[: not found
./get_libngspice_so.sh: 41: ./get_libngspice_so.sh: [[: not found
-e \e[34mDownloading ngspice tarball..\e[0m
--2016-08-01 16:47:54--  
http://downloads.sourceforge.net/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 
52.85.142.110, 52.85.142.253, 52.85.142.13, ...
Connecting to downloads.sourceforge.net 
(downloads.sourceforge.net)|52.85.142.110|:80... connected.

HTTP request sent, awaiting response... 302 Moved Temporarily
Location: 
http://downloads.sourceforge.net/#!/project/ngspice/ng-spice-rework/26/ngspice-26.tar.gz 
[following]

--2016-08-01 16:47:55--  http://downloads.sourceforge.net/
Reusing existing connection to downloads.sourceforge.net:80.
HTTP request sent, awaiting response... 200 OK
Length: 639 [text/html]
Saving to: 'ngspice-26.tar.gz.2'

ngspice-26.tar.gz.2  
100%[>] 639 
--.-KB/sin 0s


2016-08-01 16:47:55 (93,8 MB/s) - 'ngspice-26.tar.gz.2' saved [639/639]

./get_libngspice_so.sh: 49: ./get_libngspice_so.sh: [[: not found
./get_libngspice_so.sh: 56: ./get_libngspice_so.sh: [[: not found

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
./get_libngspice_so.sh: 62: cd: can't cd to ngspice-26
-e \e[34mBuilding libngspice shared library..\e[0m
./get_libngspice_so.sh: 66: ./get_libngspice_so.sh: ./configure: not 
found

make: *** No targets specified and no makefile found.  Stop.
./get_libngspice_so.sh: 69: ./get_libngspice_so.sh: [[: not found

-e \e[32mngspice shared library has been built successfully!\e[0m

Now, to finish the installation run the script as root with 'install' 
parameter:

sudo ./get_libngspice_so.sh install

В Понедельник, 1 авг. 2016 в 4:19 , Maciej Sumiński 
 написал:

Hi Eldar,

I would rather install the libraries to /usr/local, so they do not
interfere with libraries installed by package managers. I guess I know
what I kind of issue you have faced, and now it should be fixed in the
new version get_libngspice_so.sh script [1].

Regards,
Orson

1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh

On 07/22/2016 04:44 PM, Eldar Khayrullin wrote:

 If whom need I send libngspice install script with my modifications

 В Пятница, 22 июл. 2016 в 5:30 , Eldar Khayrullin
  написал:
 After adding option --prefix=/usr (if install path is /usr/local 
need

 to add it to LD_PRELOAD) I saw in sallen_key.sch (without .include
 diodes):

 **
 ** ngspice-26 shared library
 ** Creation Date: Fri Jul 22 17:17:51 MSK 2016
 **
 Circuit: KiCad schematic
 Reducing trtol to 1 for xspice 'A' devices
 Doing analysis at TEMP = 27,00 and TNOM = 27,00
 Warning: vv1: has no value, DC 0 assumed
  Reference value :  1,0e+00
 No. of Data Rows : 61

 В Пятница, 22 июл. 2016 в 12:11 , Eldar Khayrullin
  написал:

 Opening the sallen_key.sch with eeschema show in the log window:

 1) Note: can't find init file.

 2) Error: .include filename missing
 If delete ".include diodes.lib" - OK.

 3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd (
 xu1.3 2 ) a$poly$e.xu1.eos
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eos 
spice2poly

 coef = [ 1.7e-3 1 ] ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 
0 )

 a$poly$e.xu1.eref1
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 
spice2poly

 coef = [ 0 0.5 0.5  ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 
0 )

 a$poly$e.xu1.eref2
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 
spice2poly

 coef = [ 0 0.5 0.5  ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4
 xu1.42 ) a$poly$e.xu1.eo3
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3 
spice2poly

 coef = [ 0.7175 0.5 ] ...
 Unknown model type spice2poly - ignored
 Error on line 0 : a$poly$e.xu1.eo4 %vd [ xu1.30 xu1.98 ] %vd ( 
xu1.44

 5 ) a$poly$e.xu1.eo4
 MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo4
 Warning: Model issue on line 0 : .model a$poly$e.xu1.eo4 
spice2poly

 coef = [ 0.7355 0.5 ] ...
 Unknown model type spice2poly - ignored
 Reducing trtol to 1 for xspice 'A' devices
 Doing analysis at TEMP = 27,00 and TNOM = 27,00
 Warning: vv1: has no value, DC 0 assumed
  Reference value :  1,0e+00
 No. of Data Rows : 61

 But the simulation and the tune 

Re: [Kicad-developers] Integrated Simulator

2016-08-01 Thread Maciej Sumiński
Hi Eldar,

I would rather install the libraries to /usr/local, so they do not
interfere with libraries installed by package managers. I guess I know
what I kind of issue you have faced, and now it should be fixed in the
new version get_libngspice_so.sh script [1].

Regards,
Orson

1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh

On 07/22/2016 04:44 PM, Eldar Khayrullin wrote:
> If whom need I send libngspice install script with my modifications
> 
> В Пятница, 22 июл. 2016 в 5:30 , Eldar Khayrullin
>  написал:
>> After adding option --prefix=/usr (if install path is /usr/local need
>> to add it to LD_PRELOAD) I saw in sallen_key.sch (without .include
>> diodes):
>>
>> **
>> ** ngspice-26 shared library
>> ** Creation Date: Fri Jul 22 17:17:51 MSK 2016
>> **
>> Circuit: KiCad schematic
>> Reducing trtol to 1 for xspice 'A' devices
>> Doing analysis at TEMP = 27,00 and TNOM = 27,00
>> Warning: vv1: has no value, DC 0 assumed
>>  Reference value :  1,0e+00
>> No. of Data Rows : 61
>>
>> В Пятница, 22 июл. 2016 в 12:11 , Eldar Khayrullin
>>  написал:
>>> Opening the sallen_key.sch with eeschema show in the log window:
>>>
>>> 1) Note: can't find init file.
>>>
>>> 2) Error: .include filename missing
>>> If delete ".include diodes.lib" - OK.
>>>
>>> 3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd (
>>> xu1.3 2 ) a$poly$e.xu1.eos
>>> MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
>>> Warning: Model issue on line 0 : .model a$poly$e.xu1.eos spice2poly
>>> coef = [ 1.7e-3 1 ] ...
>>> Unknown model type spice2poly - ignored
>>> Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 0 )
>>> a$poly$e.xu1.eref1
>>> MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
>>> Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 spice2poly
>>> coef = [ 0 0.5 0.5  ...
>>> Unknown model type spice2poly - ignored
>>> Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 0 )
>>> a$poly$e.xu1.eref2
>>> MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
>>> Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 spice2poly
>>> coef = [ 0 0.5 0.5  ...
>>> Unknown model type spice2poly - ignored
>>> Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4
>>> xu1.42 ) a$poly$e.xu1.eo3
>>> MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
>>> Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3 spice2poly
>>> coef = [ 0.7175 0.5 ] ...
>>> Unknown model type spice2poly - ignored
>>> Error on line 0 : a$poly$e.xu1.eo4 %vd [ xu1.30 xu1.98 ] %vd ( xu1.44
>>> 5 ) a$poly$e.xu1.eo4
>>> MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo4
>>> Warning: Model issue on line 0 : .model a$poly$e.xu1.eo4 spice2poly
>>> coef = [ 0.7355 0.5 ] ...
>>> Unknown model type spice2poly - ignored
>>> Reducing trtol to 1 for xspice 'A' devices
>>> Doing analysis at TEMP = 27,00 and TNOM = 27,00
>>> Warning: vv1: has no value, DC 0 assumed
>>>  Reference value :  1,0e+00
>>> No. of Data Rows : 61
>>>
>>> But the simulation and the tune and the probe work.
>>> It will be nice to have the select of visibility of signals (checkbox).
>>>
>>>
>>> В Четверг, 21 июл. 2016 в 10:37 , Tomasz Wlostowski
>>>  написал:
 Hi,
> 
> 
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 




signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-01 Thread Maciej Sumiński
On 07/23/2016 01:17 PM, jp charras wrote:
> Le 22/07/2016 à 13:49, Tomasz Wlostowski a écrit :
>> On 22.07.2016 13:36, jp charras wrote:
>>> Le 22/07/2016 à 13:15, jp charras a écrit :
 Le 22/07/2016 à 11:59, Tomasz Wlostowski a écrit :
> On 22.07.2016 11:56, Eldar Khayrullin wrote:
>> Note: can't find init file.
>
> This is the problem, ngspice can't find its internal init file. Did you
> install it in your system or just copied the DLL?
>
> Tom
>

 Because I have the same issue:

 I just copied the dll.

 What is the internal init file?
 And where it should be copied.

 One cannot expect it is in a system folder, especially on windows.

>>>
>>> Hi Tom,
>>>
>>> After more tests:
>>>
>>> In all cases I have the message:
>>> Note: can't find init file.
>>>
>>> However:
>>> * sallen_key does not work at all (as said previously)
>>> * laser_driver runs but gives the message:
>>> doAnalyses: Too many iterations without convergence
>>> run simulation(s) aborted
>>> * rectifier works!
>>>
>> Hi JP,
>>
>> You need the init files and XSPICE extensions. I'll provide an updated
>> Windows package.
>>
>> Tom
>>
> 
> Hi Tom and Orson,
> 
> After a few trials, I fixed my issues:
> * sallen_key.sch demo has a bug: the text ".include diodes.lib" should be 
> ".include 8051.lib".
>   Of course, this is obvious, bot not easy to find at a first glance.
> * I rebuilt libngspice-0.dll on my msys2 install, just copied this dll in 
> kicad/bin dir (instead of
> Orson'one) and I do not have the issue about init files (perhaps it is built 
> with different options).

Hi Jean-Pierre,

Thank you for the wxWidgets patch, I have already applied it in my
branch [1]. This week I would like to check & fix the remaining issues
and if nobody raises an objection, I will merge it to the product
branch. It still has to be explicitly enabled, so it should not cause
any problems.

I hope ngspice package will be soon provided by mingw64. The PKGBUILD is
already available in the official repository, so I hope the package will
be there soon. Before it happens, we can still use the PKGBUILD [1].
Mine could have been built with an ancient mingw64 version, so that
might have resulted in a package that does not work with other
installations.

Regards,
Orson

1.
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-ngspice/PKGBUILD



signature.asc
Description: OpenPGP digital signature
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-08-01 Thread Maciej Sumiński
Hi Tom,

Thank you for the report. I have just updated the get_libngspice_so.sh
[1] script. Would you try it again?

Regards,
Orson

1. https://orson.net.pl/pub/libngspice/get_libngspice_so.sh

On 07/22/2016 03:30 PM, Tom Andrews wrote:
> Hi guys,
> 
> Thanks very much for adding this feature for a start, definitely something
> I've been wishing for.
> 
> Run into an issue off the bat;
> Used the script to download/compile the shared lib, and compiled eeschema
> with -DKICAD_SPICE=ON, all good.
> Loaded up eeschema and opened up sallen_key.sch, opened the simulation
> window and set setting to transient with 1n step and 1s finish time,
> clicked OK and pressed Run/Stop Simulation, it said no circuits loaded, I
> stopped and restart the simulation and the program segfaulted, with this
> error in GDB.
> (I'm running LMDE 64 bit, kernel 3.16.0-4-amd64)
> 
> 14:26:35: Debug: LoadAllLibraries SEARCH_STACK:
> 14:26:35: Debug:   [ 0]:/home/tom/kicad-dev/demos/simulation/sallen_key
> 14:26:35: Debug:   [ 1]:/home/tom/kicad-dev/build/debug/template
> 14:26:35: Debug:   [ 2]:/usr/local/share
> OpenProjectFiles: loading schematic
> /home/tom/kicad-dev/demos/simulation/sallen_key/sallen_key.sch
> CheckComponentsToPartsLinks: resync-ing
> /home/tom/kicad-dev/demos/simulation/sallen_key/sallen_key.sch
> Player 4
> Create class 4
> Player 0
> stat 1 immed 0 quit 0
> [New Thread 0x7fffdeffd700 (LWP 3558)]
> [Thread 0x7fffdeffd700 (LWP 3558) exited]
> /usr/local/lib/ngspice/spice2poly.cm: cannot open shared object file: No
> such file or directory
> Error: Library /usr/local/lib/ngspice/spice2poly.cm couldn't be loaded!
> /usr/local/lib/ngspice/analog.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/analog.cm couldn't be loaded!
> /usr/local/lib/ngspice/digital.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/digital.cm couldn't be loaded!
> /usr/local/lib/ngspice/xtradev.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/xtradev.cm couldn't be loaded!
> /usr/local/lib/ngspice/xtraevt.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/xtraevt.cm couldn't be loaded!
> **
> ** ngspice-26 shared library
> ** Creation Date: Fri Jul 22 12:00:06 BST 2016
> **
> Error: .include filename missing
> Error: ngspice.dll cannot recover and awaits to be detached
> Error: there aren't any circuits loaded.
> stat 1 immed 0 quit 0
> [New Thread 0x7fffdeffd700 (LWP 3559)]
> [Thread 0x7fffdeffd700 (LWP 3559) exited]
> /usr/local/lib/ngspice/spice2poly.cm: cannot open shared object file: No
> such file or directory
> Error: Library /usr/local/lib/ngspice/spice2poly.cm couldn't be loaded!
> /usr/local/lib/ngspice/analog.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/analog.cm couldn't be loaded!
> /usr/local/lib/ngspice/digital.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/digital.cm couldn't be loaded!
> /usr/local/lib/ngspice/xtradev.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/xtradev.cm couldn't be loaded!
> /usr/local/lib/ngspice/xtraevt.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/xtraevt.cm couldn't be loaded!
> **
> ** ngspice-26 shared library
> ** Creation Date: Fri Jul 22 12:00:06 BST 2016
> **
> Error: .include filename missing
> Error: ngspice.dll cannot recover and awaits to be detached
> Background thread stopped with timeout = 0
> Error: there aren't any circuits loaded.
> [Thread 0x7fffdf7fe700 (LWP 3553) exited]
> stat 1 immed 0 quit 0
> [New Thread 0x7fffdeffd700 (LWP 3560)]
> [Thread 0x7fffdeffd700 (LWP 3560) exited]
> /usr/local/lib/ngspice/spice2poly.cm: cannot open shared object file: No
> such file or directory
> Error: Library /usr/local/lib/ngspice/spice2poly.cm couldn't be loaded!
> /usr/local/lib/ngspice/analog.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/analog.cm couldn't be loaded!
> /usr/local/lib/ngspice/digital.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/digital.cm couldn't be loaded!
> /usr/local/lib/ngspice/xtradev.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/xtradev.cm couldn't be loaded!
> /usr/local/lib/ngspice/xtraevt.cm: cannot open shared object file: No such
> file or directory
> Error: Library /usr/local/lib/ngspice/xtraevt.cm couldn't be loaded!
> **
> ** ngspice-26 shared library
> ** Creation Date: Fri Jul 22 12:00:06 BST 2016
> **
> Error: .include filename missing
> Error: ngspice.dll cannot recover and awaits to be detached
> Background thread stopped 

Re: [Kicad-developers] Integrated Simulator

2016-07-25 Thread Tomasz Wlostowski
On 22.07.2016 14:28, Chris Pavlina wrote:
> On Fri, Jul 22, 2016 at 10:54:27AM +0200, Tomasz Wlostowski wrote:
>> On 21.07.2016 23:16, Chris Pavlina wrote:
>>> Really, really nice! I made it do a thing! 
>>> https://misc.c4757p.com/kicad_sim.png
>>>
>>> I feel bad to provide a bug report on my very first communcation on
>>> this, but... found one: not sure if this sort of thing is actually
>>> standard SPICE or an LTspice extension, but I tried parameterizing a
>>> component value, setting a resistor's value to {R} - that sort of thing
>>> leads to irrecoverable lockups here.
>>>

Hi Chris,

Check with a debugger if it freezes inside ngspice yes_or_no() function
which prompts the user on the console whether to continue or not. It
seems you have an error in your circuit. NgSPICE DLL does not have all
communication channels redirected to the callback functions, some of
them include reporting problems with parametrizable components.

If this is the case, we should contact NGSpice team to fix this (or send
them a patch ;-)

Tom

PS. Could you upload the circuit that triggers the freeze?


>>
>> Hi Chris,
>>
>> Two quick questions:
>> - Do you have NGspice compiled with XSPICE support?
>> - Could you run eeschema with forced "C" locale?
> 
> Yup, ngspice has XSPICE support compiled in. Forcing C locale changes
> the behavior slightly but doesn't fix it:
> 
> With default locale (en_US.utf8), a simple circuit consisting of a
> voltage source V=12 and a resistor {R} with the parameter left
> unspecified freezes kicad completely (can only be quit by SIGTERM). With
> C locale, this doesn't seem to cause a freeze, but after attempting
> to specify that parameter by adding ".param R 12", *then* it freezes.
> 
>>
>> Tom
>>> On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:
 Hi,

 As some of you have noticed, we've been working on a "secret" feature
 during the hackathon at CERN. The feature we're talking about is an
 integrated circuit simulator. Currently it features:
 - Seamless integration into schematic editor,
 - AC/Transient/DC sweep simulations,
 - Voltage probing from the schematics,
 - Live tuning of component values.

 A video demonstrating the capabilities of the new simulator is available
 on Tom's YouTube channel [1].

 The code is currently available in the ngspice branch on Tom's GitHub
 [2] for review & testing. It's a big feature, so we didn't want to push
 it immediately to the product branch. We'll greatly appreciate your
 feedback!

 The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
 ngspice developers for providing a DLL interface which made seamless
 integration of ngspice into Kicad possible.

 In order to get started:
 - install ngspice shared library (is not provided by many Linux distros,
 Arch Linux is a known exception, so you might have to compile it from
 the sources with --with-ngshared --enable-xspice options).  Windows
 DLLs, msys2 PKGBUILD & binary packages (to be included soon in
 the official msys2 repo, currently merged to
 https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
 library are available at [4].
 - compile eeschema with -DKICAD_SPICE=ON option,
 - have a look at some examples in demos/simulation directory.

 Happy simulating,
 Tom

 [1] https://youtu.be/A2_-hdRcf4U
 [2] https://github.com/twlostow/kicad-dev/tree/ngspice
 [3] http://ngspice.sourceforge.net/
 [4] https://orson.net.pl/pub/libngspice

 ___
 Mailing list: https://launchpad.net/~kicad-developers
 Post to : kicad-developers@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~kicad-developers
 More help   : https://help.launchpad.net/ListHelp
>>


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-24 Thread yann jautard
And the version 5 roadmap should be updated too. Simulation section says 
"no progress" :D



Le 24/07/2016 à 10:55, Eldar Khayrullin a écrit :
Hello guys. I think this news should be announced in 
http://kicad-pcb.org/post/ to promote the interest.


В Суббота, 23 июл. 2016 в 2:17 , jp charras  
написал:

Le 22/07/2016 à 13:49, Tomasz Wlostowski a écrit :

On 22.07.2016 13:36, jp charras wrote:

Le 22/07/2016 à 13:15, jp charras a écrit :

Le 22/07/2016 à 11:59, Tomasz Wlostowski a écrit :

On 22.07.2016 11:56, Eldar Khayrullin wrote:

Note: can't find init file. 


This is the problem, ngspice can't find its internal
init file. Did you install it in your system or just
copied the DLL? Tom 


Because I have the same issue: I just copied the dll.
What is the internal init file? And where it should be
copied. One cannot expect it is in a system folder,
especially on windows. 


Hi Tom, After more tests: In all cases I have the message:
Note: can't find init file. However: * sallen_key does not
work at all (as said previously) * laser_driver runs but
gives the message: doAnalyses: Too many iterations without
convergence run simulation(s) aborted * rectifier works! 


Hi JP, You need the init files and XSPICE extensions. I'll
provide an updated Windows package. Tom 

Hi Tom and Orson, After a few trials, I fixed my issues: * 
sallen_key.sch demo has a bug: the text ".include diodes.lib" should 
be ".include 8051.lib". Of course, this is obvious, bot not easy to 
find at a first glance. * I rebuilt libngspice-0.dll on my msys2 
install, just copied this dll in kicad/bin dir (instead of Orson'one) 
and I do not have the issue about init files (perhaps it is built 
with different options).

--
Jean-Pierre CHARRAS ___ 
Mailing list: https://launchpad.net/~kicad-developers 
 Post to : 
kicad-developers@lists.launchpad.net 
 Unsubscribe : 
https://launchpad.net/~kicad-developers 
 More help : 
https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-24 Thread Eldar Khayrullin
Hello guys. I think this news should be announced in 
http://kicad-pcb.org/post/ to promote the interest.


В Суббота, 23 июл. 2016 в 2:17 , jp charras 
 написал:

Le 22/07/2016 à 13:49, Tomasz Wlostowski a écrit :

 On 22.07.2016 13:36, jp charras wrote:

 Le 22/07/2016 à 13:15, jp charras a écrit :

 Le 22/07/2016 à 11:59, Tomasz Wlostowski a écrit :

 On 22.07.2016 11:56, Eldar Khayrullin wrote:

 Note: can't find init file.


 This is the problem, ngspice can't find its internal init file. 
Did you

 install it in your system or just copied the DLL?

 Tom



 Because I have the same issue:

 I just copied the dll.

 What is the internal init file?
 And where it should be copied.

 One cannot expect it is in a system folder, especially on windows.



 Hi Tom,

 After more tests:

 In all cases I have the message:
 Note: can't find init file.

 However:
 * sallen_key does not work at all (as said previously)
 * laser_driver runs but gives the message:
 doAnalyses: Too many iterations without convergence
 run simulation(s) aborted
 * rectifier works!


 Hi JP,

 You need the init files and XSPICE extensions. I'll provide an 
updated

 Windows package.

 Tom



Hi Tom and Orson,

After a few trials, I fixed my issues:
* sallen_key.sch demo has a bug: the text ".include diodes.lib" 
should be ".include 8051.lib".

  Of course, this is obvious, bot not easy to find at a first glance.
* I rebuilt libngspice-0.dll on my msys2 install, just copied this 
dll in kicad/bin dir (instead of
Orson'one) and I do not have the issue about init files (perhaps it 
is built with different options).


--
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-23 Thread jp charras
Le 22/07/2016 à 13:49, Tomasz Wlostowski a écrit :
> On 22.07.2016 13:36, jp charras wrote:
>> Le 22/07/2016 à 13:15, jp charras a écrit :
>>> Le 22/07/2016 à 11:59, Tomasz Wlostowski a écrit :
 On 22.07.2016 11:56, Eldar Khayrullin wrote:
> Note: can't find init file.

 This is the problem, ngspice can't find its internal init file. Did you
 install it in your system or just copied the DLL?

 Tom

>>>
>>> Because I have the same issue:
>>>
>>> I just copied the dll.
>>>
>>> What is the internal init file?
>>> And where it should be copied.
>>>
>>> One cannot expect it is in a system folder, especially on windows.
>>>
>>
>> Hi Tom,
>>
>> After more tests:
>>
>> In all cases I have the message:
>> Note: can't find init file.
>>
>> However:
>> * sallen_key does not work at all (as said previously)
>> * laser_driver runs but gives the message:
>> doAnalyses: Too many iterations without convergence
>> run simulation(s) aborted
>> * rectifier works!
>>
> Hi JP,
> 
> You need the init files and XSPICE extensions. I'll provide an updated
> Windows package.
> 
> Tom
> 

Hi Tom and Orson,

After a few trials, I fixed my issues:
* sallen_key.sch demo has a bug: the text ".include diodes.lib" should be 
".include 8051.lib".
  Of course, this is obvious, bot not easy to find at a first glance.
* I rebuilt libngspice-0.dll on my msys2 install, just copied this dll in 
kicad/bin dir (instead of
Orson'one) and I do not have the issue about init files (perhaps it is built 
with different options).

-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Eldar Khayrullin

If whom need I send libngspice install script with my modifications

В Пятница, 22 июл. 2016 в 5:30 , Eldar Khayrullin 
 написал:
After adding option --prefix=/usr (if install path is /usr/local need 
to add it to LD_PRELOAD) I saw in sallen_key.sch (without .include 
diodes):


**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 17:17:51 MSK 2016
**
Circuit: KiCad schematic
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: has no value, DC 0 assumed
 Reference value :  1,0e+00
No. of Data Rows : 61

В Пятница, 22 июл. 2016 в 12:11 , Eldar Khayrullin 
 написал:

Opening the sallen_key.sch with eeschema show in the log window:

1) Note: can't find init file.

2) Error: .include filename missing
If delete ".include diodes.lib" - OK.

3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd ( 
xu1.3 2 ) a$poly$e.xu1.eos

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
Warning: Model issue on line 0 : .model a$poly$e.xu1.eos spice2poly 
coef = [ 1.7e-3 1 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 0 
) a$poly$e.xu1.eref1

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 
spice2poly coef = [ 0 0.5 0.5  ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 0 
) a$poly$e.xu1.eref2

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 
spice2poly coef = [ 0 0.5 0.5  ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4 
xu1.42 ) a$poly$e.xu1.eo3

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3 spice2poly 
coef = [ 0.7175 0.5 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eo4 %vd [ xu1.30 xu1.98 ] %vd ( 
xu1.44 5 ) a$poly$e.xu1.eo4

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo4
Warning: Model issue on line 0 : .model a$poly$e.xu1.eo4 spice2poly 
coef = [ 0.7355 0.5 ] ...

Unknown model type spice2poly - ignored
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: has no value, DC 0 assumed
 Reference value :  1,0e+00
No. of Data Rows : 61

But the simulation and the tune and the probe work.
It will be nice to have the select of visibility of signals 
(checkbox).



В Четверг, 21 июл. 2016 в 10:37 , Tomasz Wlostowski 
 написал:

Hi,


get_libngspice_so.sh
Description: application/shellscript
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Eldar Khayrullin

rectifier.sch - OK. But sometime it hang. And error not found "1n4148":

**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 17:17:51 MSK 2016
**
Circuit: KiCad schematic
Error on line 4 : dd1 2 3 1n4148
Unable to find definition of model 1n4148 - default assumed
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: no DC value, transient time 0 value used
Initial Transient Solution
--
Node   Voltage
   ---
10
2  5,76787e-28
3 -5,76787e-26
vv1#branch-5,76787e-31
Reference value :  0,0e+00
No. of Data Rows : 10008


В Пятница, 22 июл. 2016 в 5:36 , Eldar Khayrullin 
 написал:

laser_driver.sch - OK:
**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 17:17:51 MSK 2016
**
Circuit: KiCad schematic
Warning: Model issue on line 1 : .model laser d(is=1e-22 rs=6 n=1.5 
cjo=50p xti=100 iave= ...

unrecognized parameter (iave) - ignored
unrecognized parameter (vpk) - ignored
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: no DC value, transient time 0 value used
Initial Transient Solution
--
Node   Voltage
   ---
10
5  -10
xu1.30,0100446
xu1.5 0,796298
4   10
xu1.40,0100287
xu1.6-0,776209
2   0,00805251
xu1.98   0
30,0100287
xu1.20-7,93255e-06
xu1.160,475886
xu1.17 2,15373e-07
xu1.18   0
xu1.7 0,512086
xu1.8 8,17
xu1.9-8,17
xu1.30   0,0090406
xu1.140,512086
xu1.150,512086
xu1.19   0
xu1.210,53
xu1.22   0
xu1.24   0,575
xu1.23 -4,5188e-05
xu1.130,512086
xu1.400,478413
xu1.26   0
xu1.27   0
xu1.90  10
xu1.91 -10
xu1.100,512085
6 0,512085
xu1.110,067085
xu1.120,957085
70,0301347
80,0306366
v.xu1.voc#branch   1,07945e-06
v.xu1.vnoise3#branch4,5188e-05
v.xu1.vnoise1#branch   7,93255e-06
v.xu1.vsl#branch9,7897e-07
v.xu1.v1#branch1,95795e-06
e.xu1.epole#branch   0
vv3#branch  -0,0140803
vv2#branch  -0,0142768
v.xu1.vcl4#branch  2,96573e-07
v.xu1.vcl3#branch  2,96597e-07
v.xu1.vo2#branch  -5,39713e-07
v.xu1.vo1#branch   5,39713e-07
v.xu1.vcur2#branch-4,88411e-13
v.xu1.vcur1#branch 1,07945e-06
v.xu1.vnoise4#branch   -4,5188e-05
v.xu1.vnoise2#branch  -7,93255e-06
v.xu1.vcl2#branch  8,69209e-12
v.xu1.vcl1#branch  7,66791e-12
vv1#branch 5,03282e-05
a$poly$e.xu1.ecmref#branch_1_0   0
a$poly$e.xu1.eref#branch_1_0   0,000100602
a$poly$e.xu1.eos#branch_1_0   -1,91959e-10
 Reference value :  0,0e+00
 Reference value :  3,57428e-08
 Reference value :  7,78928e-08
 Reference value :  1,19855e-07
No. of Data Rows : 15020


В Пятница, 22 июл. 2016 в 5:33 , Eldar Khayrullin 
 написал:

Sorry LD_LIBRARY_PATH not LD_PRELOAD

В Пятница, 22 июл. 2016 в 5:30 , Eldar Khayrullin 
 написал:
After adding option --prefix=/usr (if install path is /usr/local 
need to add it to LD_PRELOAD) I saw in sallen_key.sch (without 
.include diodes):


**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 17:17:51 MSK 2016
**
Circuit: KiCad schematic
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00

Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Eldar Khayrullin

laser_driver.sch - OK:
**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 17:17:51 MSK 2016
**
Circuit: KiCad schematic
Warning: Model issue on line 1 : .model laser d(is=1e-22 rs=6 n=1.5 
cjo=50p xti=100 iave= ...

unrecognized parameter (iave) - ignored
unrecognized parameter (vpk) - ignored
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: no DC value, transient time 0 value used
Initial Transient Solution
--
Node   Voltage
   ---
10
5  -10
xu1.30,0100446
xu1.5 0,796298
4   10
xu1.40,0100287
xu1.6-0,776209
2   0,00805251
xu1.98   0
30,0100287
xu1.20-7,93255e-06
xu1.160,475886
xu1.17 2,15373e-07
xu1.18   0
xu1.7 0,512086
xu1.8 8,17
xu1.9-8,17
xu1.30   0,0090406
xu1.140,512086
xu1.150,512086
xu1.19   0
xu1.210,53
xu1.22   0
xu1.24   0,575
xu1.23 -4,5188e-05
xu1.130,512086
xu1.400,478413
xu1.26   0
xu1.27   0
xu1.90  10
xu1.91 -10
xu1.100,512085
6 0,512085
xu1.110,067085
xu1.120,957085
70,0301347
80,0306366
v.xu1.voc#branch   1,07945e-06
v.xu1.vnoise3#branch4,5188e-05
v.xu1.vnoise1#branch   7,93255e-06
v.xu1.vsl#branch9,7897e-07
v.xu1.v1#branch1,95795e-06
e.xu1.epole#branch   0
vv3#branch  -0,0140803
vv2#branch  -0,0142768
v.xu1.vcl4#branch  2,96573e-07
v.xu1.vcl3#branch  2,96597e-07
v.xu1.vo2#branch  -5,39713e-07
v.xu1.vo1#branch   5,39713e-07
v.xu1.vcur2#branch-4,88411e-13
v.xu1.vcur1#branch 1,07945e-06
v.xu1.vnoise4#branch   -4,5188e-05
v.xu1.vnoise2#branch  -7,93255e-06
v.xu1.vcl2#branch  8,69209e-12
v.xu1.vcl1#branch  7,66791e-12
vv1#branch 5,03282e-05
a$poly$e.xu1.ecmref#branch_1_0   0
a$poly$e.xu1.eref#branch_1_0   0,000100602
a$poly$e.xu1.eos#branch_1_0   -1,91959e-10
Reference value :  0,0e+00
Reference value :  3,57428e-08
Reference value :  7,78928e-08
Reference value :  1,19855e-07
No. of Data Rows : 15020


В Пятница, 22 июл. 2016 в 5:33 , Eldar Khayrullin 
 написал:

Sorry LD_LIBRARY_PATH not LD_PRELOAD

В Пятница, 22 июл. 2016 в 5:30 , Eldar Khayrullin 
 написал:
After adding option --prefix=/usr (if install path is /usr/local 
need to add it to LD_PRELOAD) I saw in sallen_key.sch (without 
.include diodes):


**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 17:17:51 MSK 2016
**
Circuit: KiCad schematic
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: has no value, DC 0 assumed
 Reference value :  1,0e+00
No. of Data Rows : 61

В Пятница, 22 июл. 2016 в 12:11 , Eldar Khayrullin 
 написал:

Opening the sallen_key.sch with eeschema show in the log window:

1) Note: can't find init file.

2) Error: .include filename missing
If delete ".include diodes.lib" - OK.

3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd ( 
xu1.3 2 ) a$poly$e.xu1.eos

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
Warning: Model issue on line 0 : .model a$poly$e.xu1.eos spice2poly 
coef = [ 1.7e-3 1 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 0 
) a$poly$e.xu1.eref1

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 
spice2poly 

Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Eldar Khayrullin

Sorry LD_LIBRARY_PATH not LD_PRELOAD

В Пятница, 22 июл. 2016 в 5:30 , Eldar Khayrullin 
 написал:
After adding option --prefix=/usr (if install path is /usr/local need 
to add it to LD_PRELOAD) I saw in sallen_key.sch (without .include 
diodes):


**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 17:17:51 MSK 2016
**
Circuit: KiCad schematic
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: has no value, DC 0 assumed
 Reference value :  1,0e+00
No. of Data Rows : 61

В Пятница, 22 июл. 2016 в 12:11 , Eldar Khayrullin 
 написал:

Opening the sallen_key.sch with eeschema show in the log window:

1) Note: can't find init file.

2) Error: .include filename missing
If delete ".include diodes.lib" - OK.

3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd ( 
xu1.3 2 ) a$poly$e.xu1.eos

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
Warning: Model issue on line 0 : .model a$poly$e.xu1.eos spice2poly 
coef = [ 1.7e-3 1 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 0 
) a$poly$e.xu1.eref1

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 
spice2poly coef = [ 0 0.5 0.5  ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 0 
) a$poly$e.xu1.eref2

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 
spice2poly coef = [ 0 0.5 0.5  ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4 
xu1.42 ) a$poly$e.xu1.eo3

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3 spice2poly 
coef = [ 0.7175 0.5 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eo4 %vd [ xu1.30 xu1.98 ] %vd ( 
xu1.44 5 ) a$poly$e.xu1.eo4

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo4
Warning: Model issue on line 0 : .model a$poly$e.xu1.eo4 spice2poly 
coef = [ 0.7355 0.5 ] ...

Unknown model type spice2poly - ignored
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: has no value, DC 0 assumed
 Reference value :  1,0e+00
No. of Data Rows : 61

But the simulation and the tune and the probe work.
It will be nice to have the select of visibility of signals 
(checkbox).



В Четверг, 21 июл. 2016 в 10:37 , Tomasz Wlostowski 
 написал:

Hi,
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Eldar Khayrullin
After adding option --prefix=/usr (if install path is /usr/local need 
to add it to LD_PRELOAD) I saw in sallen_key.sch (without .include 
diodes):


**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 17:17:51 MSK 2016
**
Circuit: KiCad schematic
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: has no value, DC 0 assumed
Reference value :  1,0e+00
No. of Data Rows : 61

В Пятница, 22 июл. 2016 в 12:11 , Eldar Khayrullin 
 написал:

Opening the sallen_key.sch with eeschema show in the log window:

1) Note: can't find init file.

2) Error: .include filename missing
If delete ".include diodes.lib" - OK.

3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd ( 
xu1.3 2 ) a$poly$e.xu1.eos

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
Warning: Model issue on line 0 : .model a$poly$e.xu1.eos spice2poly 
coef = [ 1.7e-3 1 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 0 ) 
a$poly$e.xu1.eref1

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 spice2poly 
coef = [ 0 0.5 0.5  ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 0 ) 
a$poly$e.xu1.eref2

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 spice2poly 
coef = [ 0 0.5 0.5  ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4 
xu1.42 ) a$poly$e.xu1.eo3

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3 spice2poly 
coef = [ 0.7175 0.5 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eo4 %vd [ xu1.30 xu1.98 ] %vd ( xu1.44 
5 ) a$poly$e.xu1.eo4

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo4
Warning: Model issue on line 0 : .model a$poly$e.xu1.eo4 spice2poly 
coef = [ 0.7355 0.5 ] ...

Unknown model type spice2poly - ignored
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: has no value, DC 0 assumed
 Reference value :  1,0e+00
No. of Data Rows : 61

But the simulation and the tune and the probe work.
It will be nice to have the select of visibility of signals 
(checkbox).



В Четверг, 21 июл. 2016 в 10:37 , Tomasz Wlostowski 
 написал:

Hi,
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Eldar Khayrullin

The script get_libngspice_so.sh gets errors:

./get_libngspice_so.sh: 9: ./get_libngspice_so.sh: [[: not found
./get_libngspice_so.sh: 28: ./get_libngspice_so.sh: [[: not found

and doesn't print colored text and wrong behaviour of "install".

Need change first line from #!/bin/sh to #!/bin/bash .

В Пятница, 22 июл. 2016 в 2:14 , Eldar Khayrullin 
 написал:

Maybe need add to ./configure command the option --prefix=/usr ?


Пятница, 22 июля 2016, 12:59 +03:00 от Tomasz 
Wlostowski :


On 22.07.2016 11:56, Eldar Khayrullin wrote:
> Note: can't find init file.

This is the problem, ngspice can't find its internal init file. Did 
you

install it in your system or just copied the DLL?

Tom




___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Tom Andrews
Hi guys,

Thanks very much for adding this feature for a start, definitely something
I've been wishing for.

Run into an issue off the bat;
Used the script to download/compile the shared lib, and compiled eeschema
with -DKICAD_SPICE=ON, all good.
Loaded up eeschema and opened up sallen_key.sch, opened the simulation
window and set setting to transient with 1n step and 1s finish time,
clicked OK and pressed Run/Stop Simulation, it said no circuits loaded, I
stopped and restart the simulation and the program segfaulted, with this
error in GDB.
(I'm running LMDE 64 bit, kernel 3.16.0-4-amd64)

14:26:35: Debug: LoadAllLibraries SEARCH_STACK:
14:26:35: Debug:   [ 0]:/home/tom/kicad-dev/demos/simulation/sallen_key
14:26:35: Debug:   [ 1]:/home/tom/kicad-dev/build/debug/template
14:26:35: Debug:   [ 2]:/usr/local/share
OpenProjectFiles: loading schematic
/home/tom/kicad-dev/demos/simulation/sallen_key/sallen_key.sch
CheckComponentsToPartsLinks: resync-ing
/home/tom/kicad-dev/demos/simulation/sallen_key/sallen_key.sch
Player 4
Create class 4
Player 0
stat 1 immed 0 quit 0
[New Thread 0x7fffdeffd700 (LWP 3558)]
[Thread 0x7fffdeffd700 (LWP 3558) exited]
/usr/local/lib/ngspice/spice2poly.cm: cannot open shared object file: No
such file or directory
Error: Library /usr/local/lib/ngspice/spice2poly.cm couldn't be loaded!
/usr/local/lib/ngspice/analog.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/analog.cm couldn't be loaded!
/usr/local/lib/ngspice/digital.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/digital.cm couldn't be loaded!
/usr/local/lib/ngspice/xtradev.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/xtradev.cm couldn't be loaded!
/usr/local/lib/ngspice/xtraevt.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/xtraevt.cm couldn't be loaded!
**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 12:00:06 BST 2016
**
Error: .include filename missing
Error: ngspice.dll cannot recover and awaits to be detached
Error: there aren't any circuits loaded.
stat 1 immed 0 quit 0
[New Thread 0x7fffdeffd700 (LWP 3559)]
[Thread 0x7fffdeffd700 (LWP 3559) exited]
/usr/local/lib/ngspice/spice2poly.cm: cannot open shared object file: No
such file or directory
Error: Library /usr/local/lib/ngspice/spice2poly.cm couldn't be loaded!
/usr/local/lib/ngspice/analog.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/analog.cm couldn't be loaded!
/usr/local/lib/ngspice/digital.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/digital.cm couldn't be loaded!
/usr/local/lib/ngspice/xtradev.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/xtradev.cm couldn't be loaded!
/usr/local/lib/ngspice/xtraevt.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/xtraevt.cm couldn't be loaded!
**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 12:00:06 BST 2016
**
Error: .include filename missing
Error: ngspice.dll cannot recover and awaits to be detached
Background thread stopped with timeout = 0
Error: there aren't any circuits loaded.
[Thread 0x7fffdf7fe700 (LWP 3553) exited]
stat 1 immed 0 quit 0
[New Thread 0x7fffdeffd700 (LWP 3560)]
[Thread 0x7fffdeffd700 (LWP 3560) exited]
/usr/local/lib/ngspice/spice2poly.cm: cannot open shared object file: No
such file or directory
Error: Library /usr/local/lib/ngspice/spice2poly.cm couldn't be loaded!
/usr/local/lib/ngspice/analog.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/analog.cm couldn't be loaded!
/usr/local/lib/ngspice/digital.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/digital.cm couldn't be loaded!
/usr/local/lib/ngspice/xtradev.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/xtradev.cm couldn't be loaded!
/usr/local/lib/ngspice/xtraevt.cm: cannot open shared object file: No such
file or directory
Error: Library /usr/local/lib/ngspice/xtraevt.cm couldn't be loaded!
**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 12:00:06 BST 2016
**
Error: .include filename missing
Error: ngspice.dll cannot recover and awaits to be detached
Background thread stopped with timeout = 0
Error: there aren't any circuits loaded.
stat 1 immed 0 quit 0
[New Thread 0x7fffdeffd700 (LWP 3561)]
[Thread 0x7fffdeffd700 (LWP 3561) exited]
/usr/local/lib/ngspice/spice2poly.cm: cannot open shared object file: No
such file or directory
Error: Library /usr/local/lib/ngspice/spice2poly.cm couldn't be loaded!
/usr/local/lib/ngspice/analog.cm: cannot open shared object file: No such
file or directory
Error: Library 

Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Chris Pavlina
On Fri, Jul 22, 2016 at 10:54:27AM +0200, Tomasz Wlostowski wrote:
> On 21.07.2016 23:16, Chris Pavlina wrote:
> > Really, really nice! I made it do a thing! 
> > https://misc.c4757p.com/kicad_sim.png
> > 
> > I feel bad to provide a bug report on my very first communcation on
> > this, but... found one: not sure if this sort of thing is actually
> > standard SPICE or an LTspice extension, but I tried parameterizing a
> > component value, setting a resistor's value to {R} - that sort of thing
> > leads to irrecoverable lockups here.
> > 
> 
> Hi Chris,
> 
> Two quick questions:
> - Do you have NGspice compiled with XSPICE support?
> - Could you run eeschema with forced "C" locale?

Yup, ngspice has XSPICE support compiled in. Forcing C locale changes
the behavior slightly but doesn't fix it:

With default locale (en_US.utf8), a simple circuit consisting of a
voltage source V=12 and a resistor {R} with the parameter left
unspecified freezes kicad completely (can only be quit by SIGTERM). With
C locale, this doesn't seem to cause a freeze, but after attempting
to specify that parameter by adding ".param R 12", *then* it freezes.

> 
> Tom
> > On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:
> >> Hi,
> >>
> >> As some of you have noticed, we've been working on a "secret" feature
> >> during the hackathon at CERN. The feature we're talking about is an
> >> integrated circuit simulator. Currently it features:
> >> - Seamless integration into schematic editor,
> >> - AC/Transient/DC sweep simulations,
> >> - Voltage probing from the schematics,
> >> - Live tuning of component values.
> >>
> >> A video demonstrating the capabilities of the new simulator is available
> >> on Tom's YouTube channel [1].
> >>
> >> The code is currently available in the ngspice branch on Tom's GitHub
> >> [2] for review & testing. It's a big feature, so we didn't want to push
> >> it immediately to the product branch. We'll greatly appreciate your
> >> feedback!
> >>
> >> The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
> >> ngspice developers for providing a DLL interface which made seamless
> >> integration of ngspice into Kicad possible.
> >>
> >> In order to get started:
> >> - install ngspice shared library (is not provided by many Linux distros,
> >> Arch Linux is a known exception, so you might have to compile it from
> >> the sources with --with-ngshared --enable-xspice options).  Windows
> >> DLLs, msys2 PKGBUILD & binary packages (to be included soon in
> >> the official msys2 repo, currently merged to
> >> https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
> >> library are available at [4].
> >> - compile eeschema with -DKICAD_SPICE=ON option,
> >> - have a look at some examples in demos/simulation directory.
> >>
> >> Happy simulating,
> >> Tom
> >>
> >> [1] https://youtu.be/A2_-hdRcf4U
> >> [2] https://github.com/twlostow/kicad-dev/tree/ngspice
> >> [3] http://ngspice.sourceforge.net/
> >> [4] https://orson.net.pl/pub/libngspice
> >>
> >> ___
> >> Mailing list: https://launchpad.net/~kicad-developers
> >> Post to : kicad-developers@lists.launchpad.net
> >> Unsubscribe : https://launchpad.net/~kicad-developers
> >> More help   : https://help.launchpad.net/ListHelp
> 

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Tomasz Wlostowski
On 22.07.2016 13:36, jp charras wrote:
> Le 22/07/2016 à 13:15, jp charras a écrit :
>> Le 22/07/2016 à 11:59, Tomasz Wlostowski a écrit :
>>> On 22.07.2016 11:56, Eldar Khayrullin wrote:
 Note: can't find init file.
>>>
>>> This is the problem, ngspice can't find its internal init file. Did you
>>> install it in your system or just copied the DLL?
>>>
>>> Tom
>>>
>>
>> Because I have the same issue:
>>
>> I just copied the dll.
>>
>> What is the internal init file?
>> And where it should be copied.
>>
>> One cannot expect it is in a system folder, especially on windows.
>>
> 
> Hi Tom,
> 
> After more tests:
> 
> In all cases I have the message:
> Note: can't find init file.
> 
> However:
> * sallen_key does not work at all (as said previously)
> * laser_driver runs but gives the message:
> doAnalyses: Too many iterations without convergence
> run simulation(s) aborted
> * rectifier works!
> 
Hi JP,

You need the init files and XSPICE extensions. I'll provide an updated
Windows package.

Tom


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Wayne Stambaugh
Thank you CERN for contributing this excellent addition to KiCad.
Needless to say that I was shocked at how far along the simulator was
when I arrived at CERN since I had no idea they were even working on
simulation.  It moves KiCad one step closer to world domination! ;)

On 7/21/2016 3:37 PM, Tomasz Wlostowski wrote:
> Hi,
> 
> As some of you have noticed, we've been working on a "secret" feature
> during the hackathon at CERN. The feature we're talking about is an
> integrated circuit simulator. Currently it features:
> - Seamless integration into schematic editor,
> - AC/Transient/DC sweep simulations,
> - Voltage probing from the schematics,
> - Live tuning of component values.
> 
> A video demonstrating the capabilities of the new simulator is available
> on Tom's YouTube channel [1].
> 
> The code is currently available in the ngspice branch on Tom's GitHub
> [2] for review & testing. It's a big feature, so we didn't want to push
> it immediately to the product branch. We'll greatly appreciate your
> feedback!
> 
> The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
> ngspice developers for providing a DLL interface which made seamless
> integration of ngspice into Kicad possible.
> 
> In order to get started:
> - install ngspice shared library (is not provided by many Linux distros,
> Arch Linux is a known exception, so you might have to compile it from
> the sources with --with-ngshared --enable-xspice options).  Windows
> DLLs, msys2 PKGBUILD & binary packages (to be included soon in
> the official msys2 repo, currently merged to
> https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
> library are available at [4].
> - compile eeschema with -DKICAD_SPICE=ON option,
> - have a look at some examples in demos/simulation directory.
> 
> Happy simulating,
> Tom
> 
> [1] https://youtu.be/A2_-hdRcf4U
> [2] https://github.com/twlostow/kicad-dev/tree/ngspice
> [3] http://ngspice.sourceforge.net/
> [4] https://orson.net.pl/pub/libngspice
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread jp charras
>> Le 22/07/2016 à 11:59, Tomasz Wlostowski a écrit :

I forgot:

Really a *great* work.
Thanks.

-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread jp charras
Le 22/07/2016 à 13:15, jp charras a écrit :
> Le 22/07/2016 à 11:59, Tomasz Wlostowski a écrit :
>> On 22.07.2016 11:56, Eldar Khayrullin wrote:
>>> Note: can't find init file.
>>
>> This is the problem, ngspice can't find its internal init file. Did you
>> install it in your system or just copied the DLL?
>>
>> Tom
>>
> 
> Because I have the same issue:
> 
> I just copied the dll.
> 
> What is the internal init file?
> And where it should be copied.
> 
> One cannot expect it is in a system folder, especially on windows.
> 

Hi Tom,

After more tests:

In all cases I have the message:
Note: can't find init file.

However:
* sallen_key does not work at all (as said previously)
* laser_driver runs but gives the message:
doAnalyses: Too many iterations without convergence
run simulation(s) aborted
* rectifier works!

-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread jp charras
Le 22/07/2016 à 11:59, Tomasz Wlostowski a écrit :
> On 22.07.2016 11:56, Eldar Khayrullin wrote:
>> Note: can't find init file.
> 
> This is the problem, ngspice can't find its internal init file. Did you
> install it in your system or just copied the DLL?
> 
> Tom
> 

Because I have the same issue:

I just copied the dll.

What is the internal init file?
And where it should be copied.

One cannot expect it is in a system folder, especially on windows.

-- 
Jean-Pierre CHARRAS

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Eldar Khayrullin
 Maybe need add to ./configure command the option --prefix=/usr ?


>Пятница, 22 июля 2016, 12:59 +03:00 от Tomasz Wlostowski 
>:
>
>On 22.07.2016 11:56, Eldar Khayrullin wrote:
>> Note: can't find init file.
>
>This is the problem, ngspice can't find its internal init file. Did you
>install it in your system or just copied the DLL?
>
>Tom



___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Eldar Khayrullin
 I did:
sudo apt install ngspice
sudo ./get_libngspice_so.sh

Then I manual did:
sudo cp /tmp/libngspice_so/ngspice-26/src/.libs/libngspice.so.0.0.0 /usr/lib
sudo ln -s libngspice.so.0.0.0 /usr/lib/libngspice.so
sudo ln -s libngspice.so.0.0.0 /usr/lib/libngspice.so.0

>Пятница, 22 июля 2016, 12:59 +03:00 от Tomasz Wlostowski 
>:
>
>On 22.07.2016 11:56, Eldar Khayrullin wrote:
>> Note: can't find init file.
>
>This is the problem, ngspice can't find its internal init file. Did you
>install it in your system or just copied the DLL?
>
>Tom



___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Eldar Khayrullin

Simulating of rectifier.sch - OK:

Note: can't find init file.
**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 09:44:52 MSK 2016
**
Circuit: KiCad schematic
Error on line 4 : dd1 2 3 1n4148
Unable to find definition of model 1n4148 - default assumed
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: no DC value, transient time 0 value used
Initial Transient Solution
--
Node   Voltage
   ---
10
2  5,76787e-28
3 -5,76787e-26
vv1#branch-5,76787e-31
Reference value :  0,0e+00
No. of Data Rows : 10008

В Пятница, 22 июл. 2016 в 12:56 , Eldar Khayrullin 
 написал:

laser-driver.sch don't simulated:


В Четверг, 21 июл. 2016 в 10:37 , Tomasz Wlostowski 
 написал:

Hi,

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Tomasz Wlostowski
On 22.07.2016 11:56, Eldar Khayrullin wrote:
> Note: can't find init file.

This is the problem, ngspice can't find its internal init file. Did you
install it in your system or just copied the DLL?

Tom

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Eldar Khayrullin

laser-driver.sch don't simulated:

Note: can't find init file.
**
** ngspice-26 shared library
** Creation Date: Fri Jul 22 09:44:52 MSK 2016
**
Circuit: KiCad schematic
Warning: Model issue on line 1 : .model laser d(is=1e-22 rs=6 n=1.5 
cjo=50p xti=100 iave= ...

unrecognized parameter (iave) - ignored
unrecognized parameter (vpk) - ignored
Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.20 xu1.98 ] %vd ( xu1.3 2 
) a$poly$e.xu1.eos

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
Warning: Model issue on line 0 : .model a$poly$e.xu1.eos spice2poly 
coef = [ 2e-3 1 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$f.xu1.fbn %vnam [ v.xu1.vnoise3 ] %id ( 3 
xu1.98 ) a$poly$f.xu1.fbn

MIF-ERROR - unable to find definition of model a$poly$f.xu1.fbn
Warning: Model issue on line 0 : .model a$poly$f.xu1.fbn spice2poly 
coef = [ 50e-6 1e-3 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$f.xu1.fbp %vnam [ v.xu1.vnoise3 ] %id ( 2 
xu1.98 ) a$poly$f.xu1.fbp

MIF-ERROR - unable to find definition of model a$poly$f.xu1.fbp
Warning: Model issue on line 0 : .model a$poly$f.xu1.fbp spice2poly 
coef = [ 50e-6 1e-3 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$g.xu1.gcm %vd [ xu1.98 0 xu1.30 0 ] %id ( 
xu1.98 xu1.7 ) a$poly$g.xu1.gcm

MIF-ERROR - unable to find definition of model a$poly$g.xu1.gcm
Warning: Model issue on line 0 : .model a$poly$g.xu1.gcm spice2poly 
coef = [ 0 1e-5 1e-5  ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.eref %vd [ 4 0 5 0 ] %vd ( xu1.98 0 ) 
a$poly$e.xu1.eref

MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref
Warning: Model issue on line 0 : .model a$poly$e.xu1.eref spice2poly 
coef = [ 0 0.5 0.5 ] ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$e.xu1.ecmref %vd [ 2 0 3 0 ] %vd ( xu1.30 0 ) 
a$poly$e.xu1.ecmref

MIF-ERROR - unable to find definition of model a$poly$e.xu1.ecmref
Warning: Model issue on line 0 : .model a$poly$e.xu1.ecmref spice2poly 
coef = [ 0 0.5 0.5 ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$f.xu1.fout1 %vnam [ v.xu1.vo1 v.xu1.vcur1 ] 
%id ( 0 4 ) a$poly$f.xu1.fout1

MIF-ERROR - unable to find definition of model a$poly$f.xu1.fout1
Warning: Model issue on line 0 : .model a$poly$f.xu1.fout1 spice2poly 
coef = [ -9.27e-3 1 ...

Unknown model type spice2poly - ignored
Error on line 0 : a$poly$f.xu1.fout2 %vnam [ v.xu1.vo2 v.xu1.vcur2 ] 
%id ( 5 0 ) a$poly$f.xu1.fout2

MIF-ERROR - unable to find definition of model a$poly$f.xu1.fout2
Warning: Model issue on line 0 : .model a$poly$f.xu1.fout2 spice2poly 
coef = [ -9.27e-3 1 ...

Unknown model type spice2poly - ignored
Background thread stopped with timeout = 0
Reducing trtol to 1 for xspice 'A' devices
Doing analysis at TEMP = 27,00 and TNOM = 27,00
Warning: vv1: no DC value, transient time 0 value used
Note: Starting dynamic gmin stepping
Trying gmin =   1,E-03 Note: One successful gmin step
Trying gmin =   1,E-04 Note: One successful gmin step
Trying gmin =   1,E-05 Note: One successful gmin step
Trying gmin =   1,E-06 Note: One successful gmin step
Trying gmin =   1,E-07 Note: One successful gmin step
Trying gmin =   1,E-08 Note: One successful gmin step
Trying gmin =   1,E-09 Note: One successful gmin step
Trying gmin =   1,E-10 Note: One successful gmin step
Trying gmin =   1,E-11 Warning: Further gmin increment
Trying gmin =   5,6234E-11 Note: One successful gmin step
Trying gmin =   2,3714E-11 Note: One successful gmin step
Trying gmin =   6,4938E-12 Warning: Further gmin increment
Trying gmin =   1,7154E-11 Note: One successful gmin step
Trying gmin =   1,0554E-11 Note: One successful gmin step
Trying gmin =   8,2788E-12 Note: One successful gmin step
Trying gmin =   7,3322E-12 Warning: Further gmin increment
Trying gmin =   8,0313E-12 Warning: Further gmin increment
Trying gmin =   8,2162E-12 Note: One successful gmin step
Trying gmin =   8,1541E-12 Warning: Further gmin increment
Trying gmin =   8,2007E-12 Warning: Further gmin increment
Trying gmin =   8,2123E-12 Warning: Further gmin increment
Trying gmin =   8,2153E-12 Warning: Further gmin increment
Trying gmin =   8,2160E-12 Warning: Last gmin step failed
Warning: Dynamic gmin stepping failed
Note: Starting source stepping
Supplies reduced to   0,% Note: One successful source step
Supplies reduced to   0,1000% Note: One successful source step
Supplies reduced to   0,2000% Supplies reduced to   0,1000% Note: One 
successful source step

Supplies reduced to   0,1050% Note: One successful source step
Supplies reduced to   0,1125% Note: One successful source step
Supplies reduced to   0,1237% Note: One successful source step
Supplies reduced to   0,1406% Note: One successful source step
Supplies reduced to   0,1659% Note: One successful source step
Supplies reduced to   0,2039% Note: One successful source step
Supplies reduced to   

Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Tomasz Wlostowski
On 22.07.2016 11:42, Эльдар Хайруллин wrote:
> To compile the libspice I use the script from your
> link https://orson.net.pl/pub/libngspice/linux/.
> 
Does it show an error "unable to execute init file" or something like this?

Tom
> Пятница, 22 июля 2016, 12:14 +03:00 от Tomasz Wlostowski
> :
> 
> On 22.07.2016 11:11, Eldar Khayrullin wrote:
> > Opening the sallen_key.sch with eeschema show in the log window:
> >
> > 1) Note: can't find init file.
> >
> > 2) Error: .include filename missing
> > If delete ".include diodes.lib" - OK.
> >
> > 3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd (
> xu1.3
> > 2 ) a$poly$e.xu1.eos
> 
> Hi Eldar,
> 
> Compile ngspice with --enable-xspice option.
> 
> Tom
> 
> > MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
> > Warning: Model issue on line 0 : .model a$poly$e.xu1.eos
> spice2poly coef
> > = [ 1.7e-3 1 ] ...
> > Unknown model type spice2poly - ignored
> > Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 0 )
> > a$poly$e.xu1.eref1
> > MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
> > Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 spice2poly
> > coef = [ 0 0.5 0.5 ...
> > Unknown model type spice2poly - ignored
> > Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 0 )
> > a$poly$e.xu1.eref2
> > MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
> > Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 spice2poly
> > coef = [ 0 0.5 0.5 ...
> > Unknown model type spice2poly - ignored
> > Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4
> xu1.42
> > ) a$poly$e.xu1.eo3
> > MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
> > Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3
> spice2poly coef
> > = [ 0.7175 0.5 ] ...
> > Unknown model type spice2poly - ignored
> > Error on line 0 : a$poly$e.xu1.eo4 %vd [ xu1.30 xu1.98 ] %vd (
> xu1.44 5
> > ) a$poly$e.xu1.eo4
> > MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo4
> > Warning: Model issue on line 0 : .model a$poly$e.xu1.eo4
> spice2poly coef
> > = [ 0.7355 0.5 ] ...
> > Unknown model type spice2poly - ignored
> > Reducing trtol to 1 for xspice 'A' devices
> > Doing analysis at TEMP = 27,00 and TNOM = 27,00
> > Warning: vv1: has no value, DC 0 assumed
> > Reference value : 1,0e+00
> > No. of Data Rows : 61
> >
> > But the simulation and the tune and the probe work.
> > It will be nice to have the select of visibility of signals
> (checkbox).
> >
> >
> > В Четверг, 21 июл. 2016 в 10:37 , Tomasz Wlostowski
> > >
> написал:
> >> Hi,
> 
> 
> 
> С уважением,
> Эльдар Хайруллин
> eldar.khayrul...@mail.ru


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread jp charras
Le 22/07/2016 à 11:14, Tomasz Wlostowski a écrit :
> On 22.07.2016 11:11, Eldar Khayrullin wrote:
>> Opening the sallen_key.sch with eeschema show in the log window:
>>
>> 1) Note: can't find init file.
>>
>> 2) Error: .include filename missing
>> If delete ".include diodes.lib" - OK.
>>
>> 3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd ( xu1.3
>> 2 ) a$poly$e.xu1.eos
> 
> Hi Eldar,
> 
> Compile ngspice with --enable-xspice option.
> 
> Tom
> 

Hi, tom,

First, great work. Thanks to all CERN guys.

On W7 32 bits I have a similar issue (using sallen_key.sch).
Here is a copy of the message panel:

Note: can't find init file.
**
** ngspice-26 shared library
** Creation Date: Tue Jul 12 14:24:11 CEST 2016
**
Error: .include filename missing
Error: ngspice.dll cannot recover and awaits to be detached
Error: there aren't any circuits loaded.

The libngspice-0.dll comes from 
https://orson.net.pl/pub/libngspice/windows/i686/.
I have just copied in in the kicad/bin folder.

Are there some requirements on Windows I am not aware of?

I had also a compil issue due to the fact mathplot is a bit old.
Attached my (small) fixes to compile it on wxWidgets 3.1 on W7 32 bits (without 
this fix, it does
not compile)

-- 
Jean-Pierre CHARRAS
 common/widgets/mathplot.cpp | 23 ---
 include/widgets/mathplot.h  |  3 ++-
 2 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/common/widgets/mathplot.cpp b/common/widgets/mathplot.cpp
index 22f643e..040ab04 100644
--- a/common/widgets/mathplot.cpp
+++ b/common/widgets/mathplot.cpp
@@ -91,7 +91,7 @@ wxBitmap mpLayer::GetColourSquare(int side)
 {
 wxBitmap square(side, side, -1);
 wxColour filler = m_pen.GetColour();
-wxBrush brush(filler, wxSOLID);
+wxBrush brush(filler, wxBRUSHSTYLE_SOLID );
 wxMemoryDC dc;
 dc.SelectObject(square);
 dc.SetBackground(brush);
@@ -1236,14 +1236,14 @@ void mpScaleXBase::Plot(wxDC & dc, mpWindow & w)
 else
 dc.DrawLine( p, orgy, p, orgy+4);
 } else { // draw grid dotted lines
-m_pen.SetStyle(wxDOT);
+m_pen.SetStyle(wxPENSTYLE_DOT);
 dc.SetPen(m_pen);
 if ((m_flags == mpALIGN_BOTTOM) && !m_drawOutsideMargins) {
 //printf("d1");
-m_pen.SetStyle(wxDOT);
+m_pen.SetStyle(wxPENSTYLE_DOT);
 dc.SetPen(m_pen);
 dc.DrawLine( p, orgy+4, p, minYpx );
-m_pen.SetStyle(wxSOLID);
+m_pen.SetStyle(wxPENSTYLE_SOLID );
 dc.SetPen(m_pen);
 dc.DrawLine( p, orgy+4, p, orgy-4 );
 } else {
@@ -1255,13 +1255,13 @@ void mpScaleXBase::Plot(wxDC & dc, mpWindow & w)
 dc.DrawLine( p, minYpx, p, maxYpx ); 
//0/*-w.GetScrY()*/, p, w.GetScrY() );
 }
 }
-m_pen.SetStyle(wxSOLID);
+m_pen.SetStyle(wxPENSTYLE_SOLID );
 dc.SetPen(m_pen);
 }
 }
 }
 
-m_pen.SetStyle(wxSOLID);
+m_pen.SetStyle(wxPENSTYLE_SOLID );
 dc.SetPen(m_pen);
 dc.DrawLine( startPx, minYpx, endPx, minYpx );
 dc.DrawLine( startPx, maxYpx, endPx, maxYpx );
@@ -1419,7 +1419,7 @@ void mpScaleY::Plot(wxDC & dc, mpWindow & w)
 } else {
 dc.DrawLine( orgx-4, p, orgx+4, p);
 
-m_pen.SetStyle(wxDOT);
+m_pen.SetStyle(wxPENSTYLE_DOT);
 dc.SetPen( m_pen);
 if ((m_flags == mpALIGN_LEFT) && !m_drawOutsideMargins) {
 dc.DrawLine( orgx-4, p, endPx, p);
@@ -1432,7 +1432,7 @@ void mpScaleY::Plot(wxDC & dc, mpWindow & w)
 //dc.DrawLine( orgx-4/*-w.GetScrX()*/, p, 
w.GetScrX(), p);
 }
 }
-m_pen.SetStyle(wxSOLID);
+m_pen.SetStyle(wxPENSTYLE_SOLID );
 dc.SetPen( m_pen);
 }
 // Print ticks labels
@@ -1671,7 +1671,7 @@ void mpWindow::OnMouseMove(wxMouseEvent )
 if (event.m_leftDown) {
 if (m_movingInfoLayer == NULL) {
 wxClientDC dc(this);
-wxPen pen(m_fgColour, 1, wxDOT);
+wxPen pen(m_fgColour, 1, wxPENSTYLE_DOT);
 dc.SetPen(pen);
 dc.SetBrush(*wxTRANSPARENT_BRUSH);
 dc.DrawRectangle(m_mouseLClick.x, m_mouseLClick.y, 
event.GetX() - m_mouseLClick.x, event.GetY() - m_mouseLClick.y);
@@ -2265,7 +2265,7 @@ void mpWindow::OnPaint( wxPaintEvent& WXUNUSED(event) )
 
 if(m_zooming)
 {
-wxPen pen(m_fgColour, 1, wxDOT);
+wxPen pen(m_fgColour, 1, wxPENSTYLE_DOT);

Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Tomasz Wlostowski
On 22.07.2016 11:11, Eldar Khayrullin wrote:
> Opening the sallen_key.sch with eeschema show in the log window:
> 
> 1) Note: can't find init file.
> 
> 2) Error: .include filename missing
> If delete ".include diodes.lib" - OK.
> 
> 3) Error on line 0 : a$poly$e.xu1.eos %vd [ xu1.53 xu1.98 ] %vd ( xu1.3
> 2 ) a$poly$e.xu1.eos

Hi Eldar,

Compile ngspice with --enable-xspice option.

Tom

> MIF-ERROR - unable to find definition of model a$poly$e.xu1.eos
> Warning: Model issue on line 0 : .model a$poly$e.xu1.eos spice2poly coef
> = [ 1.7e-3 1 ] ...
> Unknown model type spice2poly - ignored
> Error on line 0 : a$poly$e.xu1.eref1 %vd [ 4 0 5 0 ] %vd ( xu1.98 0 )
> a$poly$e.xu1.eref1
> MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref1
> Warning: Model issue on line 0 : .model a$poly$e.xu1.eref1 spice2poly
> coef = [ 0 0.5 0.5  ...
> Unknown model type spice2poly - ignored
> Error on line 0 : a$poly$e.xu1.eref2 %vd [ 2 0 3 0 ] %vd ( xu1.97 0 )
> a$poly$e.xu1.eref2
> MIF-ERROR - unable to find definition of model a$poly$e.xu1.eref2
> Warning: Model issue on line 0 : .model a$poly$e.xu1.eref2 spice2poly
> coef = [ 0 0.5 0.5  ...
> Unknown model type spice2poly - ignored
> Error on line 0 : a$poly$e.xu1.eo3 %vd [ xu1.98 xu1.30 ] %vd ( 4 xu1.42
> ) a$poly$e.xu1.eo3
> MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo3
> Warning: Model issue on line 0 : .model a$poly$e.xu1.eo3 spice2poly coef
> = [ 0.7175 0.5 ] ...
> Unknown model type spice2poly - ignored
> Error on line 0 : a$poly$e.xu1.eo4 %vd [ xu1.30 xu1.98 ] %vd ( xu1.44 5
> ) a$poly$e.xu1.eo4
> MIF-ERROR - unable to find definition of model a$poly$e.xu1.eo4
> Warning: Model issue on line 0 : .model a$poly$e.xu1.eo4 spice2poly coef
> = [ 0.7355 0.5 ] ...
> Unknown model type spice2poly - ignored
> Reducing trtol to 1 for xspice 'A' devices
> Doing analysis at TEMP = 27,00 and TNOM = 27,00
> Warning: vv1: has no value, DC 0 assumed
>  Reference value :  1,0e+00
> No. of Data Rows : 61
> 
> But the simulation and the tune and the probe work.
> It will be nice to have the select of visibility of signals (checkbox).
> 
> 
> В Четверг, 21 июл. 2016 в 10:37 , Tomasz Wlostowski
>  написал:
>> Hi, 


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-22 Thread Tomasz Wlostowski
On 21.07.2016 23:16, Chris Pavlina wrote:
> Really, really nice! I made it do a thing! 
> https://misc.c4757p.com/kicad_sim.png
> 
> I feel bad to provide a bug report on my very first communcation on
> this, but... found one: not sure if this sort of thing is actually
> standard SPICE or an LTspice extension, but I tried parameterizing a
> component value, setting a resistor's value to {R} - that sort of thing
> leads to irrecoverable lockups here.
> 

Hi Chris,

Two quick questions:
- Do you have NGspice compiled with XSPICE support?
- Could you run eeschema with forced "C" locale?

Tom
> On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:
>> Hi,
>>
>> As some of you have noticed, we've been working on a "secret" feature
>> during the hackathon at CERN. The feature we're talking about is an
>> integrated circuit simulator. Currently it features:
>> - Seamless integration into schematic editor,
>> - AC/Transient/DC sweep simulations,
>> - Voltage probing from the schematics,
>> - Live tuning of component values.
>>
>> A video demonstrating the capabilities of the new simulator is available
>> on Tom's YouTube channel [1].
>>
>> The code is currently available in the ngspice branch on Tom's GitHub
>> [2] for review & testing. It's a big feature, so we didn't want to push
>> it immediately to the product branch. We'll greatly appreciate your
>> feedback!
>>
>> The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
>> ngspice developers for providing a DLL interface which made seamless
>> integration of ngspice into Kicad possible.
>>
>> In order to get started:
>> - install ngspice shared library (is not provided by many Linux distros,
>> Arch Linux is a known exception, so you might have to compile it from
>> the sources with --with-ngshared --enable-xspice options).  Windows
>> DLLs, msys2 PKGBUILD & binary packages (to be included soon in
>> the official msys2 repo, currently merged to
>> https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
>> library are available at [4].
>> - compile eeschema with -DKICAD_SPICE=ON option,
>> - have a look at some examples in demos/simulation directory.
>>
>> Happy simulating,
>> Tom
>>
>> [1] https://youtu.be/A2_-hdRcf4U
>> [2] https://github.com/twlostow/kicad-dev/tree/ngspice
>> [3] http://ngspice.sourceforge.net/
>> [4] https://orson.net.pl/pub/libngspice
>>
>> ___
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to : kicad-developers@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp


___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-21 Thread Eldar Khayrullin

This is great feature. Thanks for work.

В Четверг, 21 июл. 2016 в 10:37 , Tomasz Wlostowski 
 написал:

Hi,

As some of you have noticed, we've been working on a "secret" feature
during the hackathon at CERN. The feature we're talking about is an
integrated circuit simulator. Currently it features:
- Seamless integration into schematic editor,
- AC/Transient/DC sweep simulations,
- Voltage probing from the schematics,
- Live tuning of component values.

A video demonstrating the capabilities of the new simulator is 
available

on Tom's YouTube channel [1].

The code is currently available in the ngspice branch on Tom's GitHub
[2] for review & testing. It's a big feature, so we didn't want to 
push

it immediately to the product branch. We'll greatly appreciate your
feedback!

The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
ngspice developers for providing a DLL interface which made seamless
integration of ngspice into Kicad possible.

In order to get started:
- install ngspice shared library (is not provided by many Linux 
distros,

Arch Linux is a known exception, so you might have to compile it from
the sources with --with-ngshared --enable-xspice options).  Windows
DLLs, msys2 PKGBUILD & binary packages (to be included soon in
the official msys2 repo, currently merged to
https://github.com/Alexpux/MINGW-packages/) & Linux script to build 
the

library are available at [4].
- compile eeschema with -DKICAD_SPICE=ON option,
- have a look at some examples in demos/simulation directory.

Happy simulating,
Tom

[1] https://youtu.be/A2_-hdRcf4U
[2] https://github.com/twlostow/kicad-dev/tree/ngspice
[3] http://ngspice.sourceforge.net/
[4] https://orson.net.pl/pub/libngspice

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-21 Thread Iñigo

Awesome work!

This is a long waited feature.
Another forward boost for KiCad.
Thank you!

Iñigo.

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-21 Thread yann jautard

WOW very impressive !

Congrats for all this good work !

On 21/07/2016 21:37, Tomasz Wlostowski wrote:

Hi,

As some of you have noticed, we've been working on a "secret" feature
during the hackathon at CERN. The feature we're talking about is an
integrated circuit simulator. Currently it features:
- Seamless integration into schematic editor,
- AC/Transient/DC sweep simulations,
- Voltage probing from the schematics,
- Live tuning of component values.

A video demonstrating the capabilities of the new simulator is available
on Tom's YouTube channel [1].

The code is currently available in the ngspice branch on Tom's GitHub
[2] for review & testing. It's a big feature, so we didn't want to push
it immediately to the product branch. We'll greatly appreciate your
feedback!

The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
ngspice developers for providing a DLL interface which made seamless
integration of ngspice into Kicad possible.

In order to get started:
- install ngspice shared library (is not provided by many Linux distros,
Arch Linux is a known exception, so you might have to compile it from
the sources with --with-ngshared --enable-xspice options).  Windows
DLLs, msys2 PKGBUILD & binary packages (to be included soon in
the official msys2 repo, currently merged to
https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
library are available at [4].
- compile eeschema with -DKICAD_SPICE=ON option,
- have a look at some examples in demos/simulation directory.

Happy simulating,
Tom

[1] https://youtu.be/A2_-hdRcf4U
[2] https://github.com/twlostow/kicad-dev/tree/ngspice
[3] http://ngspice.sourceforge.net/
[4] https://orson.net.pl/pub/libngspice

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-21 Thread Chris Pavlina
Really, really nice! I made it do a thing! https://misc.c4757p.com/kicad_sim.png

I feel bad to provide a bug report on my very first communcation on
this, but... found one: not sure if this sort of thing is actually
standard SPICE or an LTspice extension, but I tried parameterizing a
component value, setting a resistor's value to {R} - that sort of thing
leads to irrecoverable lockups here.

On Thu, Jul 21, 2016 at 09:37:57PM +0200, Tomasz Wlostowski wrote:
> Hi,
> 
> As some of you have noticed, we've been working on a "secret" feature
> during the hackathon at CERN. The feature we're talking about is an
> integrated circuit simulator. Currently it features:
> - Seamless integration into schematic editor,
> - AC/Transient/DC sweep simulations,
> - Voltage probing from the schematics,
> - Live tuning of component values.
> 
> A video demonstrating the capabilities of the new simulator is available
> on Tom's YouTube channel [1].
> 
> The code is currently available in the ngspice branch on Tom's GitHub
> [2] for review & testing. It's a big feature, so we didn't want to push
> it immediately to the product branch. We'll greatly appreciate your
> feedback!
> 
> The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
> ngspice developers for providing a DLL interface which made seamless
> integration of ngspice into Kicad possible.
> 
> In order to get started:
> - install ngspice shared library (is not provided by many Linux distros,
> Arch Linux is a known exception, so you might have to compile it from
> the sources with --with-ngshared --enable-xspice options).  Windows
> DLLs, msys2 PKGBUILD & binary packages (to be included soon in
> the official msys2 repo, currently merged to
> https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
> library are available at [4].
> - compile eeschema with -DKICAD_SPICE=ON option,
> - have a look at some examples in demos/simulation directory.
> 
> Happy simulating,
> Tom
> 
> [1] https://youtu.be/A2_-hdRcf4U
> [2] https://github.com/twlostow/kicad-dev/tree/ngspice
> [3] http://ngspice.sourceforge.net/
> [4] https://orson.net.pl/pub/libngspice
> 
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-21 Thread Mário Luzeiro
Good work CERN hackathons!
I know some people that are looking for this specific feature to start using 
KiCad. I am spreading the word...

Mario


From: Kicad-developers 
[kicad-developers-bounces+mrluzeiro=ua...@lists.launchpad.net] on behalf of 
Tomasz Wlostowski [tomasz.wlostow...@cern.ch]
Sent: 21 July 2016 20:37
To: Kicad Developers
Subject: [Kicad-developers] Integrated Simulator

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-21 Thread Javier Serrano
Orson, Tom, AWESOME work! Congratulations!

On Thu, Jul 21, 2016 at 9:37 PM, Tomasz Wlostowski
 wrote:
...
> The code is currently available in the ngspice branch on Tom's GitHub
> [2] for review & testing. It's a big feature, so we didn't want to push
> it immediately to the product branch. We'll greatly appreciate your
> feedback!

You know this, but for the list: I think once the single schematics
object is in place for eeschema, integrating python scripting with the
simulation would be a really nice feature.

Cheers,

Javier

___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp


Re: [Kicad-developers] Integrated Simulator

2016-07-21 Thread Adam Wolf
Nice work, awesome!

Adam Wolf

On Thu, Jul 21, 2016 at 2:37 PM, Tomasz Wlostowski <
tomasz.wlostow...@cern.ch> wrote:

> Hi,
>
> As some of you have noticed, we've been working on a "secret" feature
> during the hackathon at CERN. The feature we're talking about is an
> integrated circuit simulator. Currently it features:
> - Seamless integration into schematic editor,
> - AC/Transient/DC sweep simulations,
> - Voltage probing from the schematics,
> - Live tuning of component values.
>
> A video demonstrating the capabilities of the new simulator is available
> on Tom's YouTube channel [1].
>
> The code is currently available in the ngspice branch on Tom's GitHub
> [2] for review & testing. It's a big feature, so we didn't want to push
> it immediately to the product branch. We'll greatly appreciate your
> feedback!
>
> The simulator uses ngspice [3] as the Spice kernel. We'd like to thank
> ngspice developers for providing a DLL interface which made seamless
> integration of ngspice into Kicad possible.
>
> In order to get started:
> - install ngspice shared library (is not provided by many Linux distros,
> Arch Linux is a known exception, so you might have to compile it from
> the sources with --with-ngshared --enable-xspice options).  Windows
> DLLs, msys2 PKGBUILD & binary packages (to be included soon in
> the official msys2 repo, currently merged to
> https://github.com/Alexpux/MINGW-packages/) & Linux script to build the
> library are available at [4].
> - compile eeschema with -DKICAD_SPICE=ON option,
> - have a look at some examples in demos/simulation directory.
>
> Happy simulating,
> Tom
>
> [1] https://youtu.be/A2_-hdRcf4U
> [2] https://github.com/twlostow/kicad-dev/tree/ngspice
> [3] http://ngspice.sourceforge.net/
> [4] https://orson.net.pl/pub/libngspice
>
> ___
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~kicad-developers
Post to : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp