Home    LittleBigPlanet 2 - 3 - Vita - Karting    LittleBigPlanet 2    [LBP2] Help!
#1

Single pulse?

Archive: 9 posts


I searched and couldn't really find the answer to this. I found a thread about using selectors to generate pulses because they don't have the latency that timers and counters do. When I tried this though (wiring the output 1 of a selector to input #2 of the selector so that it pulses once) and it has a solid signal going into it (such as coming out of a selector) it pulses over and over forever.

Here's my dilemma. I am using a selector to cycle through different phases of a vehicle to behave different ways depending on different criteria, and in order to get back to the normal phase, there's stuff that needs to happen in another selector, but because selectors output is always on, this is what happens:

I have an OR with two inputs in one port of the selector and a direct output of the main selector into the 2nd one. When the thing happens to switch to the first output of the selector, it never happens because the OR gate is given signal WHILE the other selector input already has the steady signal at the same time that the OR receives signal.

Basically I need to send a single 'pulse' of signal to the second selector. Since I use the 'cycle' input with positive and negative signal I can't wire what is wired to the selector inputs to the other stuff (so it flashes once) because there's nothing wired into those inputs. only the cycle is used. I need to have the selector's signal be able to pulse once to the other selector and then have no signal (obviously this is going to be something I wire the selector's output to)

How can I make a circuit that will pulse only once?

Thanks! You guys are great.
2011-04-13 21:25:00

Author:
Unknown User


if you want it to go once just kill the power with a imer and a bettery2011-04-13 21:47:00

Author:
Squidge99
Posts: 203


Well, can I add you to see it? You did a good job of explaining but I'll see if I can fix it. OK?2011-04-13 21:49:00

Author:
Unknown User


Wire the output of the first selector though a counter with a count of 1 wired to reset itself. When the counter is activated it will only send a signal for 1/15th of a second.

You could also double the amount of ports on the selector and treat every other one as being "off" but this introduces 0.06 seconds of latency per port.
2011-04-13 22:04:00

Author:
Ayneh
Posts: 2454


if you insist on using a selector you could wire it so that once the input is activated, the out put is wired to the next input, then that output is wired to the other selector aswell as the next ouput which would have an empty output2011-04-14 08:14:00

Author:
Unknown User


@I love logic: sure. I actually made it but didn't connect to anything, i just noticed it pulses forever. I had first made it so that the d-pad activates each port in the selector and hooked the d-pad outputs to circuit nodes. the d-pad was just to test though. if you add me I can show you.

@Ayneh: how is that different from just having a counter by itself with the output wired to reset itself as well as where I need it? I tried a counter but the problem is, as mentioned in a previous thread that it resets itself before getting signal out.
2011-04-14 16:11:00

Author:
Unknown User


I tried a counter but the problem is, as mentioned in a previous thread that it resets itself before getting signal out.

As I said in that thread...


For more complex examples, you may be experiencing race conditions due to latency. If you have a specific example which doesn't work, then publish it in a copyable level, and I'll have a look.
2011-04-15 10:40:00

Author:
Aya042
Posts: 2870


I tried a counter and strangely enough in this case it works.. Aya, what did you mean by "race conditions" by the way?2011-04-15 12:50:00

Author:
Unknown User


I tried a counter and strangely enough in this case it works.. Aya, what did you mean by "race conditions" by the way?

http://en.wikipedia.org/wiki/Race_condition
2011-04-15 15:31:00

Author:
Aya042
Posts: 2870


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.