PLECS User Forum - Recent questions and answers
http://forum.plexim.com/qa
Powered by Question2AnswerHOw to get real-time data with XLM RPC Interface-Python
http://forum.plexim.com/956/how-to-get-real-time-data-with-xlm-rpc-interface-python
I want to simulate a fuzzy logic controller in python with some variables of a simulation in plecs. I have been used the XML RPC interface examples that plecs shows in its manual but it only let me get the output after the simulation ends. There is a way to get real time data without the neccesity of wait the simulation ends to get data?http://forum.plexim.com/956/how-to-get-real-time-data-with-xlm-rpc-interface-pythonTue, 21 May 2019 01:18:12 +0000Answered: Why my simulation shows inconsistent source, state/source dependence ?
http://forum.plexim.com/942/simulation-shows-inconsistent-source-state-source-dependence?show=945#a945
Hi Manoj, <br />
<br />
The current source needs a valid return path at all times, which is not given in your circuit. <br />
<br />
The PLECS documentation states: "A current source may not be open-circuited or connected in series to an inductor or any other current source."<br />
<br />
Hope this helps.<br />
<br />
Falkhttp://forum.plexim.com/942/simulation-shows-inconsistent-source-state-source-dependence?show=945#a945Thu, 16 May 2019 08:06:49 +0000How to simulate a three phase transformer with mutual inductance?
http://forum.plexim.com/932/how-simulate-three-phase-transformer-with-mutual-inductance
Hi, <br />
<br />
I am trying to simulate a three phase trasformer with mutual inductance, but it not work. who can tell me that if the mutrual inductance can be used to simulate the three phase transformer?<br />
<br />
<br />
<br />
thank you.http://forum.plexim.com/932/how-simulate-three-phase-transformer-with-mutual-inductanceMon, 13 May 2019 08:25:34 +0000Heat Sink Simulation Error
http://forum.plexim.com/927/heat-sink-simulation-error
I am trying to calculate the switching and conduction losses of MOSFETs in my circuit. I used a thermal library model to add the power loss data to the switches. The circuit simulates fine without the heat sink. Once I added it to the circuit I got a bunch of errors.http://forum.plexim.com/927/heat-sink-simulation-errorSat, 11 May 2019 22:26:24 +0000Answered: Can we use dynamic variables to represent a numerator/denominator coefficients in transfer function block ?
http://forum.plexim.com/920/variables-represent-numerator-denominator-coefficients?show=926#a926
<p>Hi Dilan,</p><p>You cannot update a variable, for example "w01" in your case, within the simulation, however you can create a dynamic transfer function by expanding it as shown in the "Help" section (see the image below) and then feeding a value calculated from the simulation to this expanded transfer function.</p><p><img alt="" src="http://forum.plexim.com/?qa=blob&qa_blobid=3628199152626546579" style="height:458px; width:600px"></p><p>I have created the attached model (both Standalone and Blockset versions) for the transfer function you described. (<strong>Note that t</strong>his model contains model initialization commands that are accessible from:<br><em>PLECSStandalone: </em>The menu <strong>Simulation+SimulationParameters...+Initializations </strong><br><em>PLECS Blockset: </em>The Simulink menu <strong>File + Model Properties + Callbacks + InitFcn*</strong>)</p><p><img alt="" src="http://forum.plexim.com/?qa=blob&qa_blobid=15067648052012871850" style="height:75px; width:232px"></p><p>By comparing this equation with the equation from the "Help" section, we get the following numerator and denominator coefficients</p><p>n2 =0;<br>n1=6282;<br>n0=0;<br>d2=1;<br>d1=6282;<br>d0=w01;</p><p>From these values, we can calculate the coefficients for the expanded transfer function (modeled in the "dynamic transfer fcn" subsystem) as follows:</p><p>b2=1/d2;<br>b1=d1/d2;<br>b0=d0/d2;<br>a2=n2;<br>a1=n1-n2*b1;<br>a0=n0-n2*b0;</p><p>In your case, since your "d0" is a variable obtained from the simulation, we need to calculate the coefficients "a0" and "b0" from the simulation as well. We can achieve this by replacing the "Gain" blocks corresponding to "a0" and "b0" with "Product" blocks and then calculating their values from the simulation using a "function" component. In the attached model, the "variable" port corresponds to the measured frequency, "w01".<br><br><img alt="" src="http://forum.plexim.com/?qa=blob&qa_blobid=5049549421702339840" style="height:325px; width:600px"></p><p>This model can also be adapted to work with any other second order transfer function by changing the numerator and denominator coefficients under initialization parameters, as well as replacing the corresponding gain blocks in the "dynamic transfer fcn" subsystem with a product block combined with a "function" component, to accept the desired variable from the simulation, as shown above.</p><p>Regards,<br>Manu</p><p> </p>http://forum.plexim.com/920/variables-represent-numerator-denominator-coefficients?show=926#a926Fri, 10 May 2019 20:05:34 +0000Charging using CCCV with a buck converter
http://forum.plexim.com/915/charging-using-cccv-with-a-buck-converter
Hi,<br />
<br />
<br />
<br />
I am trying to charge with CCCV with a buck converter; however, the outputted SOC doesn't seem to completely resemble the voltage and current characteristics of the battery. What could be the issue in terms of that?http://forum.plexim.com/915/charging-using-cccv-with-a-buck-converterTue, 07 May 2019 13:12:18 +0000Does anyone have experiences in MPPT schematics for wind turbines PMSG in PLECS?
http://forum.plexim.com/913/anyone-have-experiences-mppt-schematics-wind-turbines-plecs
http://forum.plexim.com/913/anyone-have-experiences-mppt-schematics-wind-turbines-plecsTue, 07 May 2019 11:22:29 +0000CCCV for a buck converter charging a lithium ion battery model
http://forum.plexim.com/905/cccv-for-buck-converter-charging-lithium-ion-battery-model
Hi,<br />
<br />
I am trying to charge the battery using cccv; however, the current seems to not drop once cv is enabled and the voltage increases more than 50V. Any suggestions of how to fix that?http://forum.plexim.com/905/cccv-for-buck-converter-charging-lithium-ion-battery-modelFri, 03 May 2019 17:42:45 +0000Snubber capacitance for IGBT error
http://forum.plexim.com/892/snubber-capacitance-for-igbt-error
<p> </p><p>I want to simulate the Snubber capacitance at both ends of IGBT to get its optimal effect on improving the switching loss efficiency of the system, but there are various errors.like Matrix is singular. Does anyone know how to solve them?</p><p><img alt="" src="http://forum.plexim.com/?qa=blob&qa_blobid=1981077171757521675" style="height:155px; width:600px"></p>http://forum.plexim.com/892/snubber-capacitance-for-igbt-errorTue, 30 Apr 2019 08:59:17 +0000Answered: Change color of mouse pointer in scope
http://forum.plexim.com/530/change-color-of-mouse-pointer-in-scope?show=885#a885
You can easily change it by changing the settings of mouse pointer.http://forum.plexim.com/530/change-color-of-mouse-pointer-in-scope?show=885#a885Sat, 27 Apr 2019 06:58:51 +0000Answered: Run multiple simulations in parallel using XML-RPC
http://forum.plexim.com/874/run-multiple-simulations-in-parallel-using-xml-rpc?show=875#a875
Hello,<br />
<br />
Unfortunately this is not possible currently.<br />
<br />
Thank you,<br />
<br />
Krishttp://forum.plexim.com/874/run-multiple-simulations-in-parallel-using-xml-rpc?show=875#a875Tue, 23 Apr 2019 15:57:06 +0000Answered: how can i calculate switching losses and efficiency?
http://forum.plexim.com/869/how-can-i-calculate-switching-losses-and-efficiency?show=870#a870
Hello,<br />
<br />
Should you have specific questions, please post them here, but a good example model to show how you can measure and calculate switching losses and efficiency (in a Scope plot, or displaying a magnitude in digits) is the PLECS demo model called "Buck Converter with Thermal Model". Please review this model and description.<br />
<br />
Best regards,<br />
<br />
Krishttp://forum.plexim.com/869/how-can-i-calculate-switching-losses-and-efficiency?show=870#a870Thu, 18 Apr 2019 16:10:35 +0000Answered: Different scope time range
http://forum.plexim.com/860/different-scope-time-range?show=865#a865
I just tried the custom time range in the Scope Parameters Window. It only allows you to set the end time as far as i can tell.<br />
<br />
I would suggest to use the Save View function.http://forum.plexim.com/860/different-scope-time-range?show=865#a865Wed, 17 Apr 2019 06:27:44 +0000Answered: simulation examples
http://forum.plexim.com/862/simulation-examples?show=864#a864
<p>Hello,</p><p>From the <em>Window</em> menu inside PLECS Standalone you can access the "Demo Models". In PLECS Blockset, I recommend you type 'plecslib' into the MATLAB command line, and from the PLECS library window that opens, there is a "Demos" block (see time 4:00 in <a rel="nofollow" href="https://www.plexim.com/support/videos/installing-blockset-win">this video</a>).</p><p>These models are then listed under the "Power Supplies" category. You can also search for a topology from within the PLECS Documentation built-in.</p><p>Regards,</p><p>Kris</p>http://forum.plexim.com/862/simulation-examples?show=864#a864Tue, 16 Apr 2019 16:16:11 +0000Answered: How to calculate the magnetic resistance for the transformer simulation in the Plecs Magnetic Domain?
http://forum.plexim.com/845/calculate-magnetic-resistance-transformer-simulation-magnetic?show=858#a858
Hello,<br />
<br />
Here is a great resource from our colleague at Plexim's PhD research: <a href="https://infoscience.epfl.ch/record/253555/files/2018_APEC_Luo.pdf" rel="nofollow">https://infoscience.epfl.ch/record/253555/files/2018_APEC_Luo.pdf</a> Inside you will find the calculation of the resistance value for a transformer laminate.<br />
<br />
Best regards,<br />
<br />
Krishttp://forum.plexim.com/845/calculate-magnetic-resistance-transformer-simulation-magnetic?show=858#a858Thu, 11 Apr 2019 16:17:23 +0000Answered: From Matlab function to C-script block
http://forum.plexim.com/850/from-matlab-function-to-c-script-block?show=855#a855
Hello,<br />
<br />
The PLECS C-Script block can be used to link to C library files or you can manually port the code from your embedded files into the appropriate functions, but in both cases, this may be cumbersome. You might consider to generate a DLL block that represents your logic, or the State Machine block, which is a bit more visually intuitive to work with than the C-Script block.<br />
<br />
But looking at your .m file, you might just want to include this code as is (or with slight modifications) in the initialization commands of a subsystem. Out of curiosity, why are you trying to port it from MATLAB code to C code?<br />
<br />
Regards,<br />
<br />
Krishttp://forum.plexim.com/850/from-matlab-function-to-c-script-block?show=855#a855Wed, 10 Apr 2019 17:57:00 +0000Answered: Speed up simulation by building the whole model in plecs?
http://forum.plexim.com/841/speed-up-simulation-by-building-the-whole-model-in-plecs?show=854#a854
Hello Junwei,<br />
<br />
Unfortunately there is not a one size fits all answer to this question, but it is certainly our recommendation to PLECS Blockset users to place as much of a model as possible inside the PLECS Circuit block in Simulink, and this has been shown to generally increase the simulation speed. More likely though, there are certain blocks or schemes in the Simulink portion of your model that may not be optimized, or are more efficiently done on the PLECS side. So we can't say for certain, but the model porting may be worth your effort. We can also provide feedback on your model in general, and possibly optimize its speed in its current form, if you send it to support@plexim.com. <br />
<br />
Best regards,<br />
<br />
Krishttp://forum.plexim.com/841/speed-up-simulation-by-building-the-whole-model-in-plecs?show=854#a854Wed, 10 Apr 2019 17:45:45 +0000Answered: Variable parameters for blocks during simulation in PLECS standalone
http://forum.plexim.com/847/variable-parameters-blocks-during-simulation-standalone?show=851#a851
<p>The initialization commands are executed prior to the simulation and you can not change parameters from there once the simulation is running. </p><p>Not sure what the best solution is. I have used the state machine block to generate PWM signals in the past like this (f, d are inputs to the state machine):</p><p><img alt="" src="http://forum.plexim.com/?qa=blob&qa_blobid=17777840740021591557" style="height:257px; width:400px"></p>http://forum.plexim.com/847/variable-parameters-blocks-during-simulation-standalone?show=851#a851Wed, 10 Apr 2019 06:14:48 +0000Answered: Losses in MMC
http://forum.plexim.com/824/losses-in-mmc?show=837#a837
Hello,<br />
<br />
Currently this model uses both Power Module blocks with a Sub-Cycle Average implementation for AC side I, and Averaged models for AC side II. In order to do loss modeling, you will need to replace the power semiconductors in that model with our standard IGBT/Diodes components from our library. Have you looked at any of our demo models that use the thermal modeling features of PLECS? There are none currently for multilevel converters, but you can certainly build this. How many power levels are you looking for?<br />
<br />
Thanks,<br />
<br />
Krishttp://forum.plexim.com/824/losses-in-mmc?show=837#a837Fri, 29 Mar 2019 22:00:23 +0000Answered: DC DC bidirectional converter
http://forum.plexim.com/829/dc-dc-bidirectional-converter?show=833#a833
Your model is quite convoluted, not sure what the problem is. I don't think you need two controllers to start with. You can add those if you need different performance for charge / discharge. Also, I would suggest to use MOSFETs in a totem-pole configuration instead of IGBTs.<br />
<br />
Your problem can be solved way simpler. See attached minimum working model.<br />
<br />
Cheers<br />
<br />
Falkhttp://forum.plexim.com/829/dc-dc-bidirectional-converter?show=833#a833Wed, 27 Mar 2019 17:01:24 +0000Answered: Intrinsic one sample delay in triggered subsystem?
http://forum.plexim.com/816/intrinsic-one-sample-delay-in-triggered-subsystem?show=828#a828
Hi,<br />
<br />
computation time is not modelled intrinsically in PLECS. Any mathematical operation in a simulation step is instantanious, e.g. the output of a sine block becomes the sine of its input in the same simulation step.<br />
<br />
A triggered subsystem behaves exactly the same - it may just not be executed in every simulation step.<br />
<br />
If you want to model the delay introduced by real systems (e.g. a computation delay) you should use a delay block.<br />
<br />
As an alternative (if the computational delay is very small compared to the trigger period) you could use a Pulse Delay block behind the triggered subsystem.<br />
<br />
Kind regards,<br />
<br />
Oliver Schwartzhttp://forum.plexim.com/816/intrinsic-one-sample-delay-in-triggered-subsystem?show=828#a828Fri, 22 Mar 2019 13:27:16 +0000Answered: Are there other ways to speed up the simulation?
http://forum.plexim.com/819/are-there-other-ways-to-speed-up-the-simulation?show=827#a827
Hi,<br />
<br />
In a transient simulation the results of the next time step depend on the results of the current time step. Such a simulation is therefore not well suited for parallel computation.<br />
<br />
As a result, the (single thread) speed of your CPU has the biggest impact on simulation time. PLECS profits from multi-core CPUs because it can offload things like scope rendering to another core (or run multiple simulations in parallel on different cores). The performance of your graphics card, however, has no impact on the simulation speed.<br />
<br />
Kind regards,<br />
<br />
Oliver Schwartzhttp://forum.plexim.com/819/are-there-other-ways-to-speed-up-the-simulation?show=827#a827Fri, 22 Mar 2019 13:14:09 +0000Answered: how to define trigger and condition in state machine
http://forum.plexim.com/825/how-to-define-trigger-and-condition-in-state-machine?show=826#a826
Hi Shaofei,<br />
<br />
Have a look at the "Buck Converter with Constant On-Time Control, State Machine" demo model, it will answer your question.<br />
<br />
Cheers<br />
<br />
Falkhttp://forum.plexim.com/825/how-to-define-trigger-and-condition-in-state-machine?show=826#a826Fri, 22 Mar 2019 12:03:51 +0000Answered: Design Notch Filter
http://forum.plexim.com/813/design-notch-filter?show=818#a818
Looks like the transfer function in the attachment is incorrectly printed.<br />
<br />
I would expect that the notch filter also has a pair of complex-conjugate poles, i.e.:<br />
<br />
N(s) = (s^2+wn^2)/(s^2+2*wn/Q*s+wn^2)http://forum.plexim.com/813/design-notch-filter?show=818#a818Wed, 13 Mar 2019 18:19:18 +0000High frequency noise in multitone analysis
http://forum.plexim.com/817/high-frequency-noise-in-multitone-analysis
Hi, I am getting the correct response for multitone analysis in the low to mid-frequency range. However, in the high frequency range, the response is very noisy expecially for the phase response. I have read the user guide and I have implemented proper steps. The fact that I am getting a correct response in the low to mid frequency and the high frequency makes me think that I implemented the analysis correctly, but perhaps I am missing some sort of adjustments related to responses in the high frequency range.<br />
<br />
Thanks!http://forum.plexim.com/817/high-frequency-noise-in-multitone-analysisWed, 13 Mar 2019 18:01:26 +0000Answered: Using properly the Analysis Tool
http://forum.plexim.com/807/using-properly-the-analysis-tool?show=811#a811
<p>Quick Notes:</p><ul><li>The bode plot is only meaningful to fs/2 in switching converters (sampled systems)</li><li>Using 1000 points sounds excessive to me. Might only be feasible in the impulse response analysis.</li><li>Try starting with a smaller model.</li></ul><div>The "Buck Converter with Analysis Tools" demo model is a good starting point. </div><div>See attached model, where I modified the demo model.</div>http://forum.plexim.com/807/using-properly-the-analysis-tool?show=811#a811Wed, 13 Mar 2019 08:01:27 +0000Answered: how to export just the last waveform periods by scripting?
http://forum.plexim.com/773/how-to-export-just-the-last-waveform-periods-by-scripting?show=805#a805
Hello,<br />
<br />
I don't fully understand the question as it appears that you are successfully exporting the data, starting only after a pre-specified period of time using a triggered subsystem. Are you expecting something different? I have attached a modified version of the demo model your refer to that shows the same method to do this.<br />
<br />
Best regards,<br />
<br />
Krishttp://forum.plexim.com/773/how-to-export-just-the-last-waveform-periods-by-scripting?show=805#a805Mon, 11 Mar 2019 22:32:13 +0000No specific error message for algebraic loop with C-script
http://forum.plexim.com/800/no-specific-error-message-for-algebraic-loop-with-c-script
I want to model a varistor using the functional description given by the manufacturer Littelfuse for PSPICE. The characteristic of the Varistor is modeled as a power function combined with a linear behavior around current zero. I use a variable voltage source which is controlled by the current through itself. It is clear that that is an algebraic loop, but the error message that I get don't show me where the problem is in detail.http://forum.plexim.com/800/no-specific-error-message-for-algebraic-loop-with-c-scriptFri, 08 Mar 2019 12:05:50 +0000How to get phase shift from PWM out in offline simulation
http://forum.plexim.com/799/how-to-get-phase-shift-from-pwm-out-in-offline-simulation
Hello!<br />
<br />
I have a question about simulation with the utilization of the PWM out blocks to simulate the variable phase shift signal. I want to change the phase shift with a sinusoidal waveform, with RT box system everything is good, but when I am trying to simulate this in offline mode just in plecs in result I get only one phase shift. <br />
<br />
The model included. <br />
<br />
How to fix this issue?http://forum.plexim.com/799/how-to-get-phase-shift-from-pwm-out-in-offline-simulationThu, 07 Mar 2019 18:47:39 +0000Answered: Fortescue Transformation
http://forum.plexim.com/782/fortescue-transformation?show=794#a794
You will have to expand the matrix multiplication on a row-by-row basis. This can be implemented via Function blocks or, for more complex computations, in a C-Script block. Please take a look at how the Transformation blocks are implemented in the PLECS Control library (Subsystem -> Look under mask).http://forum.plexim.com/782/fortescue-transformation?show=794#a794Wed, 06 Mar 2019 13:56:02 +0000Answered: High frequency spacevector PWM output, on the RT-Box
http://forum.plexim.com/789/high-frequency-spacevector-pwm-output-on-the-rt-box?show=793#a793
For reasonable results you still have to use the PWM blocks. We are currently working on an adapted space vector modulation block for the RT Box, but it is still work in progress. Please contact support@plexim.com directly so we can see if we have a solution for your application.<br />
<br />
Kind regards,<br />
<br />
Oliver Schwartzhttp://forum.plexim.com/789/high-frequency-spacevector-pwm-output-on-the-rt-box?show=793#a793Wed, 06 Mar 2019 08:59:59 +0000Why single phase AC output current is sinusoidal with a DC shift?
http://forum.plexim.com/784/why-single-phase-output-current-is-sinusoidal-with-dc-shift
Hi All<br />
<br />
I am facing an issue with current source based converter circuit, Figure attached. The output load is single phase AC (240 V, 4 KW).<br />
<br />
I am not getting a sinusoidal output current as expected, i.e. a sine wave varying with reference as zero, instead I am getting it with a DC offset.<br />
<br />
My pulse control and other seems to be working fine, as when i replace the output with A DC source, I get the desired outputs. It's with AC that the output current is not sinusoidal.<br />
<br />
Am I missing grounding the circuit properly or anything like that? Any help would be appreciated.<br />
<br />
Thanks<br />
Sneha Thakurhttp://forum.plexim.com/784/why-single-phase-output-current-is-sinusoidal-with-dc-shiftTue, 05 Mar 2019 00:13:08 +0000Answered: Non Ideal MOSFET modelling
http://forum.plexim.com/587/non-ideal-mosfet-modelling?show=781#a781
hi the most reliable way is to measure it with a double pulse tester like the one describe here:<br />
<br />
<a href="https://www.wolfspeed.com/downloads/dl/file/id/150/product/0/sic_mosfet_double_pulse_fixture.pdf" rel="nofollow">https://www.wolfspeed.com/downloads/dl/file/id/150/product/0/sic_mosfet_double_pulse_fixture.pdf</a><br />
<br />
and then plug in PLECS the switching losses tablehttp://forum.plexim.com/587/non-ideal-mosfet-modelling?show=781#a781Mon, 04 Mar 2019 09:16:47 +0000Answered: How to select theremal resistance Rth ?
http://forum.plexim.com/632/how-to-select-theremal-resistance-rth?show=780#a780
Hi these app notes are a good starting point<br />
<br />
<a href="http://www.ti.com/lit/an/spra953c/spra953c.pdf" rel="nofollow">http://www.ti.com/lit/an/spra953c/spra953c.pdf</a> <br />
<br />
<a href="http://www.ti.com/lit/an/snva419c/snva419c.pdf" rel="nofollow">http://www.ti.com/lit/an/snva419c/snva419c.pdf</a>http://forum.plexim.com/632/how-to-select-theremal-resistance-rth?show=780#a780Mon, 04 Mar 2019 09:11:16 +0000Answered: I have conflict between THD from the scope and from normal calculation for the following signal
http://forum.plexim.com/738/conflict-between-scope-normal-calculation-following-signal?show=779#a779
<p> <em>is it possible to get THD greater than 100%?</em></p><p>Yes, it is.</p><p>As explained <a rel="nofollow" href="https://forum.plexim.com/529/what-method-calculating-plecs-does-value-plecs-look-like-right">here</a> already, the THD is calculated as sqrt(sum(V<sub>n</sub>^2))/V<sub>1</sub> for n>=2. This ratio can have any value, because V<sub>n</sub> and V<sub>1</sub> are totally independent from each other.</p><p>A better analysis of your data is only possible if you post your model. Mathematical deductions based on partial screenshots are hard to do.</p><p>Kind regards,</p><p>Oliver Schwartz</p><p> </p>http://forum.plexim.com/738/conflict-between-scope-normal-calculation-following-signal?show=779#a779Mon, 04 Mar 2019 06:34:45 +0000Answered: IGBT with Diode switching times influence on conduction losses
http://forum.plexim.com/653/igbt-with-diode-switching-times-influence-conduction-losses?show=776#a776
the switching losses map must be extracted already with the right pair of IGBT/Diode. Look ETH docs, there is a good literature from Kolarhttp://forum.plexim.com/653/igbt-with-diode-switching-times-influence-conduction-losses?show=776#a776Fri, 01 Mar 2019 08:54:58 +0000Answered: MOSFET CAPACITANCE PARASITICS
http://forum.plexim.com/755/mosfet-capacitance-parasitics?show=775#a775
Hi Victor<br />
<br />
remember to not "overmodel", the accuracy of a simulation is always limited! (I learn it on my skin). Keep it the simulation fast with conduction and switching losses extracted from a real double pulse tester. <br />
<br />
Using the double pulse with a similar layout of converter and real gate resistance, you will have all the info you need from your converterhttp://forum.plexim.com/755/mosfet-capacitance-parasitics?show=775#a775Fri, 01 Mar 2019 08:52:45 +0000Answered: I am searching for an integrator block anti wind-up block protection
http://forum.plexim.com/737/searching-for-integrator-block-anti-wind-block-protection?show=774#a774
hi try this is analog PI + antiwinduphttp://forum.plexim.com/737/searching-for-integrator-block-anti-wind-block-protection?show=774#a774Thu, 28 Feb 2019 12:17:39 +0000Answered: How to insert a phase delay value calculated during a running simulation to a delay or any other block?
http://forum.plexim.com/732/insert-delay-calculated-during-running-simulation-delay-other?show=768#a768
You cannot change block parameters at runtime.<br />
<br />
To get the desired behavior, the turn-on block needs to be rewritten so that the delay is read from an input signal. This can be realized using a C-Script, please see the attached example.<br />
<br />
Kind regards,<br />
<br />
Oliver Schwartzhttp://forum.plexim.com/732/insert-delay-calculated-during-running-simulation-delay-other?show=768#a768Wed, 27 Feb 2019 16:25:23 +0000Answered: The thermal model in the PLECS, which include heat sink or not? heat sink should play an important role?
http://forum.plexim.com/759/thermal-model-plecs-which-include-sink-should-play-important?show=761#a761
<p>Hello,</p><p>Actually, the Heat Sink component is <em>required</em> for doing a simulation that includes thermal calculations in PLECS. It is an isothermal surface of equal temperature that captures losses from switch and resistive components within its borders. This block can represent an actual heat sink in your system or the case of a semiconductor, for example, depending on how you define the rest of the circuit. You might find our tutorial videos on the thermal domain helpful: <a href="https://www.plexim.com/support/videos" rel="nofollow">https://www.plexim.com/support/videos</a></p><p>Best regards,</p><p>Kris</p>http://forum.plexim.com/759/thermal-model-plecs-which-include-sink-should-play-important?show=761#a761Mon, 25 Feb 2019 17:45:31 +0000Answered: how can I add my new configurable subsystem to the matlab library?
http://forum.plexim.com/741/how-can-add-new-configurable-subsystem-to-the-matlab-library?show=757#a757
hi Kris,<br />
<br />
thank you for your reply. Is it possible to use generated extra library component in standalone to blockset one? I mean after adding extra plecs library in simulink, when I open the plecs there is a nonactive part '' import from standalone'' in menu file. Is it possible to activate this part and use standalone component in blockset as well?http://forum.plexim.com/741/how-can-add-new-configurable-subsystem-to-the-matlab-library?show=757#a757Sat, 23 Feb 2019 16:59:35 +0000Answered: How to give diffetent names to traces/signals in scope?
http://forum.plexim.com/740/how-to-give-diffetent-names-to-traces-signals-in-scope?show=743#a743
Hello,<br />
<br />
You have in fact customized the trace names in your attached image. You are able to change a signal name by double-clicking on it in the PLECS Scope Data window list ("Am1" currently). However, if you save and name multiple traces of a signal, the signal name will be the same for all of them. You should use the trace names to differentiate the results. In your example, you have two traces of the same inductor current (measured by component "Am1", a name which you can change as I just mentioned), one with an input voltage of 5V and one with an input voltage of 10V. So the signal is the same, but the specific behavior of it can change with each trace. Let me know if anything isn't clear.<br />
<br />
Best regards,<br />
<br />
Krishttp://forum.plexim.com/740/how-to-give-diffetent-names-to-traces-signals-in-scope?show=743#a743Tue, 19 Feb 2019 22:44:37 +0000Answered: How to use integrator block to integrate over a switching cycle, Ts ?
http://forum.plexim.com/723/how-use-integrator-block-integrate-over-switching-cycle-ts?show=730#a730
<p>The <strong>Periodic Average</strong> block in the library periodically computes the integral over a given interval and divides it by the duration to calculate the average value. To get the integral itself, you could connect a <strong>Gain</strong> block to the output. Alternatively, you could break the library link and modify the underlying C-Script to remove the unwanted division.</p>http://forum.plexim.com/723/how-use-integrator-block-integrate-over-switching-cycle-ts?show=730#a730Mon, 11 Feb 2019 14:30:05 +0000Answered: not able to link my mat files to lookup tables
http://forum.plexim.com/718/not-able-to-link-my-mat-files-to-lookup-tables?show=720#a720
<p>Hello Martin,<br><br>It is possible to link the .mat files to the PLECS Look-Up tables (from the Control domain). Please see the attached example. I have attached both PLECS Standalone and PLECS Blockset models. </p><p>For example, if <em>test.mat</em> is the name of your .mat file, </p><p>In PLECS Standalone, we load the .mat file by entering <em>load('test.mat')</em> in the <strong>Model initialization commands</strong> window, which can be accessed from the PLECS menu bar of your model: Simulation > Simulation parameters > Initialization. </p><p>In PLECS Blockset, we load the .mat file by entering <em>test</em> in the <strong>InitFcn</strong> window, which can be accessed from the Simulink menu bar of your model: File > Model Properties > Callbacks. </p><p>Then, on the PLECS schematic, you can simply enter the variables defined in the .mat file as the inputs of your look-up table.<br><br>Best regards,<br>Manu</p>http://forum.plexim.com/718/not-able-to-link-my-mat-files-to-lookup-tables?show=720#a720Mon, 04 Feb 2019 16:54:38 +0000Answered: Hello, Is there any way to see the Bode Plot of a function in PLECS?
http://forum.plexim.com/695/hello-is-there-any-way-to-see-the-bode-plot-of-function-in-plecs?show=707#a707
Hello Waqar Ahmad,<br />
<br />
there is a block with the name "impulse Response analysis" in plecs you can have a try.<br />
<br />
Simulink library -> Plecs Extras -> Analysis Tools -> impulse response analysis.<br />
<br />
best regard<br />
<br />
Shaofeihttp://forum.plexim.com/695/hello-is-there-any-way-to-see-the-bode-plot-of-function-in-plecs?show=707#a707Thu, 31 Jan 2019 13:10:39 +0000Answered: Induction machine how to provide load torque
http://forum.plexim.com/704/induction-machine-how-to-provide-load-torque?show=706#a706
Hello archie,<br />
<br />
you meet the same problem that i have ever met. and i try many times cannot solve it, so i make the modification of the motor model. you can have a try and see if this can help you.<br />
<br />
1. right click the motor model ---subsystem--break the library link, then unprotect the motor model<br />
<br />
2. go under the subsystem and "add" a load to the mechanical subsystem<br />
<br />
see the bild below.<br />
<br />
best regard<br />
<br />
shaofeihttp://forum.plexim.com/704/induction-machine-how-to-provide-load-torque?show=706#a706Thu, 31 Jan 2019 12:59:09 +0000Answered: Automate looping through different submodules with Matlab / Blockset
http://forum.plexim.com/697/automate-looping-through-different-submodules-matlab-blockset?show=699#a699
Hello,<br />
<br />
I recommend that you use a reference variable for the subsystem configuration selection parameter. You can then write a value to that variable from your script, where 1 equals the first configuration from left-to-right, 2 equals the second in order, etc.<br />
<br />
Try this out and let me know if you are successful.<br />
<br />
Regards,<br />
<br />
Krishttp://forum.plexim.com/697/automate-looping-through-different-submodules-matlab-blockset?show=699#a699Tue, 29 Jan 2019 21:00:17 +0000Answered: Add component to Library Plecs Blockset
http://forum.plexim.com/683/add-component-to-library-plecs-blockset?show=698#a698
Hello Julian,<br />
<br />
Have you reviewed the process in our User Manual? Here is the description below:<br />
<br />
Creating a New Library in PLECS Blockset<br />
To create a new component library, open the PLECS Extras library (in the Simulink library navigator) and copy the PLECS Library block into a Simulink model or library. The Simulink model must be named (i.e. saved) before you can copy components from the component library.<br />
To add the new library to the library browser it has to be added to the list of user libraries in the PLECS Preferences window, which is accessed from the File menu when inside the PLECS Circuit block.<br />
<br />
You will also need to create a MATLAB path link to the folder containing this library model file.<br />
<br />
Please let us know if you are successful or have specific questions.<br />
<br />
Thank you,<br />
<br />
Krishttp://forum.plexim.com/683/add-component-to-library-plecs-blockset?show=698#a698Tue, 29 Jan 2019 17:47:03 +0000Answered: Parallel Toolbox in Plecs Blockset
http://forum.plexim.com/684/parallel-toolbox-in-plecs-blockset?show=696#a696
Hello,<br />
<br />
some time ago I had a similar need. The Plexim support told me, that using Plecs Blockset with the Parallel Computing Toolbox is not tested and therefore not supported officially.<br />
<br />
Based on the scripts I wrote around a year ago, I created a MWE for this forum.<br />
<br />
Best regards,<br />
<br />
Roberthttp://forum.plexim.com/684/parallel-toolbox-in-plecs-blockset?show=696#a696Tue, 29 Jan 2019 10:47:49 +0000Answered: Viewing induction motor output rpm and torque
http://forum.plexim.com/688/viewing-induction-motor-output-rpm-and-torque?show=691#a691
you can observe the motor speed in two ways:<br />
<br />
1. use the speed sensor in plecs library mechanical -->rotational-->sensors--> rotational speed sensor<br />
<br />
2. use the "Probe" block in the plecs library to oberve the output speed of the induction motor<br />
<br />
<br />
<br />
best regard<br />
<br />
shaofeihttp://forum.plexim.com/688/viewing-induction-motor-output-rpm-and-torque?show=691#a691Mon, 28 Jan 2019 10:02:59 +0000