Input Code for programmable voltage supply simulink

3 Ansichten (letzte 30 Tage)
Saurabh Sakpal
Saurabh Sakpal am 17 Dez. 2014
Kommentiert: Orion am 17 Dez. 2014
Hey everyone, I am working on a project on simulink where i have to build a RC circuit. Anyway the voltage source for this has to be 'sin wave for first 0.6 seconds and 0 for the rest of 0.4 seconds. Obviously this requires matlab coding with a script, like an if statement etc.. So how do i go about doing this for a voltage source of an RC circuit in simulink.
Thanks

Antworten (2)

Orion
Orion am 17 Dez. 2014
Hi,
you could also just do it in Simulink:
  2 Kommentare
Saurabh Sakpal
Saurabh Sakpal am 17 Dez. 2014
Like how do i integrate this signal into the circuit, as i tried connecting the 'switch' (scope is not needed as i know how the graph looks) to DC voltage source, but it won't connect, just that dashed red arrow there but no connection. Sorry i am new to simulink.
Orion
Orion am 17 Dez. 2014
I'm guessing you're using a simscape block ?
I don't have this toolbox anymore, but if I recall fine, you need to use the PS-Simulink Converter block to pass the data into first branch of the switch and then get the output and use the Simulink-PS COnverter to reconvert the signal in order to use tit in your circuit.

Melden Sie sich an, um zu kommentieren.


Saurabh Sakpal
Saurabh Sakpal am 17 Dez. 2014
OK then i just connect the 'switch' to the voltage source?

Kategorien

Mehr zu Electrical Sensors finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by