thank you for the great video, i just wish that it was explained more.
@TyphoonHIL2 жыл бұрын
Glad it was helpful! For more information on the topic, please visit HIL Academy to find additional content: hil.academy/ When it comes to Simulink and FMU/FMI import, you can now find a couple of additional videos on our channel. We hope some of those cover the additional explanation that you were looking for, but if not, feel free to let us know what you would find useful.
@nishaks21995 жыл бұрын
Why is some of the input and output (GOTO & FROM) blocks is in pink colour? Are we taking it from some other TOOLSET in the Simulink Library
@dusankostic5024 жыл бұрын
Different block colors are referring to different sample times.
@valentineobiora8759 Жыл бұрын
Hi, this example worked for me. However, in my core implementation for MMC control, My generated C code contains some arguments at system_Initialize(xxxxxx) and System_step(xxxxxx). any assistance as raising a ticket isn't being helpful. Thank You
@TyphoonHIL Жыл бұрын
Hi Valentine! Sorry to hear that you ran into some difficulties, however, for specific support questions, the ticketing system is the fastest and most reliable way to resolving this. In case this was not solved for you so far, please try again. Thank you and all the best!
@valentineobiora8759 Жыл бұрын
@@TyphoonHIL I have raised a ticket. for 10 days now no response or help with my request.
@imranpervez12233 жыл бұрын
I followed this method for generating code. Everything worked fine in the virtual SCADA panel. But when connected to the HIL 402 hardware it gave inaccurate results
@dusankostic5023 жыл бұрын
Imran, please write to the Typhoon support page.
@ebarbie50164 жыл бұрын
Hi. Can you please explain how to export the Simulink control block to c-code for the DSP100 board (C-HIL using HIL402 + DSP100 card). I'm familiar with TI's CCS and successfully implemented C-HIL using code generated by PSIM. But I want to do this directly from Simulink. What target to choose? TI's C2000? Thanks
@dusankostic5024 жыл бұрын
Hi Typhoon HIL company is not owner of Simulink application, we are just providing interface for importing C code from Simulink to Typhoon HIL environment. For Simulink specific questions, please write directly to them. Best regards
@ebarbie50164 жыл бұрын
@@dusankostic502 Thanks. My question was actually Typhoon specific. You showed how to export code from Simulink to the C function. I've asked how to do the same using your DSP100 or DSP180 expansion cards? Anyway, this is not an issue, because I can still do it using PSIM. I have another typhoon specific question. In the video, it's unclear how you setup the inputs and outputs of the advanced c function block. How are the inputs and outputs relate to the imported code? Thanks
@dusankostic5024 жыл бұрын
Thank you for your questions. 1) Currently it is not possible to export platform specific C code. You can search for our other video "Tutorial | How to Export Generic ANSI C Code ", where we are explaining how to export agnostic ANSI C code. 2) Inputs and outputs of Advanced C function are connected inside "output_fnc" function. You can find the whole example in the our installation folder in ..\examples\models\how-to examples\boost closed loop advanced c Best regards
@ebarbie50164 жыл бұрын
@@dusankostic502 Thanks. I've looked into the example. I noticed the following 2 fnc calls in output and init tabs: boost_closed_loop_control_step(); boost_closed_loop_control_initialize(); I see that these calls were copied from the boost_closed_loop_control.c code and the boost_closed_loop_control.h below /* Model step function */ and /* Model entry point functions */ comments, respectively. Also, the I/O variable definitions were taken from the main code. But the rtU and rtY prefixes were added to the declarations. Are all of the above common to any project? Do I only need to search the main c code below the * External inputs (root inport signals with auto storage) */ and /* External outputs (root outports fed by signals with auto storage) */ comments and copy the I/O var names and add the rtU/rtY prefixes? Unlike the boost example, my exported Simulink control block includes a total of 5 .c and .h files (myproject.c myproject.h plus ert_main.c and myproject_data.c extra files). The _data.c file contains lookup table data, but what is the extra ert_main.c file? Is this OK? Thanks
@dusankostic5024 жыл бұрын
@@ebarbie5016 My colleges have informed me that they were discussed this topic with you through the Ticketing system. BR
@mohitfulpagare4225 жыл бұрын
How to run the generated C code? and where to run the generated C code?
@dusankostic5024 жыл бұрын
The generated code have to be run in Advanced C function component. This example can be find in the software installation in the following folder ..\examples\models\how-to examples\boost closed loop advanced c