[Ktechlab-devel] todo list.

Alan Grimes agrimes at speakeasy.net
Fri Oct 2 20:43:46 UTC 2009


santiago gonzalez wrote:

#################
> Then previous versions logic was created this way:
> m_pLogicOut =
> picComponent->createLogicOut(picComponent->ecNodeWithID(picPin.pinID)->pin(),
> false);

> In the new versions is done this way:
> m_pLogicOut = new LogicOut(LogicIn::getConfig(), false);
> picComponent->setup1pinElement(m_pLogicOut,
> picComponent->ecNodeWithID(picPin.pinID)->pin());
#################

These changes were inevitable because they were absolutely necessary to
reduce Component to a sane level of complexity. They should have no
effect on the problem at hand.

> This new way worked until rev 297, but something happened in rev 298
> that makes inputs never work and outputs only works until a reload or
> close-open the document.

> It could be a great help if you have an idea of what is causing this.

The logic code has changed so much that it is effectively a rewrite. =(

There are two issues here.

First the loading and saving stuff are a function of strange and
mysterious code in the Document heirarchy. -- it's not loading your PIC
correctly. =\ In theory you should just be able to register your object
and a handful of properties, and it should automajically save and
restore it. Obviously, there's a bug there. That is certainly not my
area of expertise.

Now the logic ins and logic outs....

If you want a logic out to behave like a logic in, the only thing you
should need to do is change the "logic settings" and set the output
impedance up to 1 meg or so... You would have to rebuild the element set
if you wanted to change from a logic in to a logic out, because the
logic in only has one matrix node and the logic out has two. So you
might need a new class if you want to switch between the two in a live
circuit...


-- 
New president: Here we go again...
Chemistry.com: A total rip-off.
Powers are not rights.





More information about the Ktechlab-devel mailing list