Combine multiple pulse waves into one source SPICE netlist

Thread Starter

motaha

Joined Jan 24, 2024
4
Hello,

Is there a way to create the wave form in the attached image in a SPICE (Xyce) netlist? Each block is 200ms. So, 20 1V pulses with a 10% duty cycle and 10ms period for the first 200ms, then 0V for another 200m, then -0.9V pulses with 10% duty cycle and 10ms period for another 200ms, then 0V for another 200ms.

I tried created four different voltage sources with setting time delays and connect them to the same node, but Xyce returned an error. Any ideas?

Thanks
 

Attachments

Papabravo

Joined Feb 24, 2006
21,225
Put them in series. All the sources that output 0 when other sources are active will contribute nothing to the result. I used this method when I was playing with modified sine wave inverters.

1706133547570.png
1706133616711.png

FYI, SPICE will not allow you to connect voltage sources in parallel with no source resistance. That would be equivalent to voltage source butt humping.
 
Last edited:

Thread Starter

motaha

Joined Jan 24, 2024
4
Put them in series. All the sources that output 0 when other sources are active will contribute nothing to the result. I used this method when I was playing with modified sine wave inverters.

View attachment 313511
View attachment 313512

FYI, SPICE will not allow you to connect voltage sources in parallel with no source resistance. That would be equivalent to voltage source butt humping.
Thanks! That worked.
 
Top