Help Needed! Drawing a Half-Wave Sinusoid in Simulink

Click For Summary
To draw a half-wave sinusoid in Simulink using the equation I(t)=360sin(pi*t/0.4) for 0<=t<=0.4 and I(t)=0 for 0.4<t<=1, it's essential to use a Sine block with the correct amplitude and frequency settings. Users recommend adjusting the time step to increase the number of points for a smoother graph. The desired output color can be achieved by changing the block's properties. Ensuring the frequency is set to 7.85 is crucial for accurate representation. Following these adjustments should yield the correct half-wave sinusoid graph.
cherylt
Messages
1
Reaction score
0
Dear all, I am pretty bad at Simulink and I want to draw out a half wave sinusoid with the equation:
I(t)=360sin(pi*t/0.4), 0<=t<=0.4
I(t)= 0 , 0.4<t<=1

Any help or suggestions?
I've tried using the Sine block with amp=360 and freq=7.85 but the graph looks weird.
I want to get the graph in blue but only managed to get the one in yellow.
z9190q7.jpg
 
Last edited:
Engineering news on Phys.org
You're not using enough points to generate the sine. Reduce the time step.
 
Thread 'I thought it was only Amazon that sold unsafe junk'
I grabbed an under cabinet LED light today at a big box store. Nothing special. 18 inches in length and made to plug several lights together. Here is a pic of the power cord: The drawing on the box led me to believe that it would accept a standard IEC cord which surprised me. But it's a variation of it. I didn't try it, but I would assume you could plug a standard IEC cord into this and have a double male cord AKA suicide cord. And to boot, it's likely going to reverse the hot and...

Similar threads

  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
8K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 6 ·
Replies
6
Views
8K