signals

How to plot multiple periods using pyplot?

How to plot multiple periods using pyplot? Question: everyone! I’m learning about signals now, but I’m having a tough time trying to plot more than one period using pyplot. I don’t know if the problem is with the mathematical part or with the code itself. I think this is a silly question, but any help …

Total answers: 1

Twisted application ignoring a certain UNIX signal – is it possible?

Twisted application ignoring a certain UNIX signal – is it possible? Question: Let’s say we have the following situation: kill <pid> sends SIGTERM kill -<SIGNAL> <pid> sends <SIGNAL> Sometimes, during development, I need to kill my application and restart it, at the moment – using the first type of command. But, if I have a …

Total answers: 2

Non periodic square function train in python

Non periodic square function train in python Question: How can I plot a square-like (non periodic) signal like the one in the image using python? with0 "n" the number of pulses, "p" the time between them, pulse duration, amplitude and "offset" as variables. Already tried scipy.signal.square but im looking for a non periodic solution. Asked …

Total answers: 1

Manage tow Signals in two different apps in Django

Manage tow Signals in two different apps in Django Question: i have two Django applications, blogApp and accounts, when i created a signal file for blogapp that can slugify title after saving the model into database, this works perfectly. But when i added the second signal file to accounts that can create profile to the …

Total answers: 1

Resume process after signal

Resume process after signal Question: I have implemented a child process in Python that is supposed to do the following steps: (1) Initialize process, (2) Wait for ‘start’ signal from parent, (3) Process some data and write it to shared memory, (4) Send ‘finish’ signal to parent and (5) Goto (2). This is basically my …

Total answers: 1

How to simulate a pwm semnal python script

How to simulate a pwm semnal python script Question: I need to Simulate Saw-Tooth voltage (4.5 – 0.5V) a total of 30 times . And I don’t know how to do it only with python scripts without special library or something. I have this function, but how I do it to work? def PWM(t, frequency, …

Total answers: 1

Killing child process/task without killing main in Python using Pool Executor

Killing child process/task without killing main in Python using Pool Executor Question: I am trying to implement a method to force stop the child that have been started with ThreadPoolExecutor / ProcessPoolExecutor. I would like a cross platform implementation (Windows and Linux). When the signal is triggered from main, the main process exits and I …

Total answers: 2

Logging Signals in Python

Logging Signals in Python Question: I have a single-threaded Python application. The standard way in which this application gets shut down is by sending it SIGINT and letting the various with: and try: finally: blocks handle a safe and graceful shutdown. However, this results in a not-particularly-readable logfile, since you simply start seeing the messages …

Total answers: 2

Register SIGTEM handler only for parent process

Register SIGTEM handler only for parent process Question: I have the following program(this is replicated version of a complex program, but pretty much covers my problem statement). A SIGTERM handler is registered before spanning the new process. I am unable to find a way to restraint the child process from inheriting this handler. I want …

Total answers: 2