Re: [Scilab-users] Faster PWM signal
Mike, Since you are modeling the circuit, it does not have to run in real time. You could get meaningful results by running at (for example) 10sec simulation time = 1sec real time. Gary Nelson, PhD Life is complex. It has real and imaginary parts > On Oct 16, 2015, at 12:50 AM, Serge Steerwrote: > > Try with lower solver tolerances with the Simulate/Confiure menu. > > Serge Steer > Le 15/10/2015 18:53, Michael Greenish a écrit : >> Hello, >> >> I am modeling an electrical circuit. I have a voltage across an inductor >> being switched on the ground side. I am generating a pwm using a sawtooth >> genartor as shown by the attached image. In my circuit, my PWM switches at >> 50kHz. When if I set the sawtooth generator period to > 0.025, the results >> look as expected on the graphs. If the sawtooth generate period is < 0.025, >> the results are flat; the system can't seem to calculate at that interval. >> The period on the timer attached to the scope is 0.0001. >> >> I am only at 25ms, I need to get to 0.02 ms to match my real-life circuit. >> Is there a limit of the system I am running into or do I have a parameter >> wrong? >> >> Thanks, >> >> Mike Greenish >> >> >> >> ___ >> users mailing list >> users@lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > ___ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Faster PWM signal
Try with lower solver tolerances with the Simulate/Confiure menu. Serge Steer Le 15/10/2015 18:53, Michael Greenish a écrit : > Hello, > > I am modeling an electrical circuit. I have a voltage across an > inductor being switched on the ground side. I am generating a pwm > using a sawtooth genartor as shown by the attached image. In my > circuit, my PWM switches at 50kHz. When if I set the sawtooth > generator period to > 0.025, the results look as expected on the > graphs. If the sawtooth generate period is < 0.025, the results are > flat; the system can't seem to calculate at that interval. The period > on the timer attached to the scope is 0.0001. > > I am only at 25ms, I need to get to 0.02 ms to match my real-life > circuit. Is there a limit of the system I am running into or do I > have a parameter wrong? > > Thanks, > > Mike Greenish > > > > ___ > users mailing list > users@lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] Faster PWM signal
@Serge: Thank you for the idea! I found my problem for running faster. It turns out the slope of the triangle waveform is independent of the period so I had to apply a greater gain for the sawtooth for it to cross zero. Now I am running at 50kHz. Thanks, Michael Greenish From: Serge Steer <serge.st...@inria.fr> To: users@lists.scilab.org Sent: Friday, October 16, 2015 9:50 AM Subject: Re: [Scilab-users] Faster PWM signal Try with lower solver tolerances with the Simulate/Confiure menu. Serge Steer Le 15/10/2015 18:53, Michael Greenish a écrit : Hello, I am modeling an electrical circuit. I have a voltage across an inductor being switched on the ground side. I am generating a pwm using a sawtooth genartor as shown by the attached image. In my circuit, my PWM switches at 50kHz. When if I set the sawtooth generator period to > 0.025, the results look as expected on the graphs. If the sawtooth generate period is < 0.025, the results are flat; the system can't seem to calculate at that interval. The period on the timer attached to the scope is 0.0001. I am only at 25ms, I need to get to 0.02 ms to match my real-life circuit. Is there a limit of the system I am running into or do I have a parameter wrong? Thanks, Mike Greenish ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
[Scilab-users] Faster PWM signal
Hello, I am modeling an electrical circuit. I have a voltage across an inductor being switched on the ground side. I am generating a pwm using a sawtooth genartor as shown by the attached image. In my circuit, my PWM switches at 50kHz. When if I set the sawtooth generator period to > 0.025, the results look as expected on the graphs. If the sawtooth generate period is < 0.025, the results are flat; the system can't seem to calculate at that interval. The period on the timer attached to the scope is 0.0001. I am only at 25ms, I need to get to 0.02 ms to match my real-life circuit. Is there a limit of the system I am running into or do I have a parameter wrong? Thanks, Mike Greenish Inductor PWM noise.zcos Description: Binary data ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users