Code Generation of a boost conveter
Amirhossein Karimi
Altair Community Member
I am trying to generate a code for a boost converter to insert it in the TI F28379d launchpad board using code generation of PSIM but I am facing some issues.
More specifically, I want to capture the output voltage of my converter in the TI board and measure it with an oscilloscope. I am measuring the output voltage using a voltage sensor and then I am using the DAC so that I will be able to measure it with an oscilloscope.
The problem is that the code generation does not generate any code for my boost converter circuit, and I am not getting any outputs. In addition, when I try to connect the Voltage sensor to the ZOH block, I receive an error saying that the Voltage sensor block is not supported in Code Generation. It seems that Code Generations can not generate any codes for the power section of my circuit.
How should I get the output voltage using DAC?
I attached a picture of my simulation.
Thank you in advance for your help.
0
Answers
-
Can you provide the schematic please? It looks like there could be a few things wrong with this sim.
Also, PSIM code gen is only for the embedded control, the power elements do not turn into code. You can make use of the link with typhoon-HIL if you are interested to do HIL simulation, this will convert the power stage into a HIL schematic.
Why are you trying to use an external oscilloscope on the DAC? I would propose that you use the DSPscope here is a tutorial video: https://community.altair.com/community/en/how-to-use-the-psim-dsp-oscilloscope-for-real-time-dsp-control?id=kb_article&sysparm_article=KB0121346
1