<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Typhoon HIL Forum - Recent questions</title>
<link>https://typhoon-hil.com/forum/?qa=questions</link>
<description>Powered by Question2Answer</description>
<item>
<title>Compatibility between MATLAB/SIMULINK version 2023a with TYPHOON HIL Control Centre 2025.2</title>
<link>https://typhoon-hil.com/forum/?qa=585/compatibility-between-matlab-simulink-version-typhoon-control</link>
<description>May I know if my MATLAB/SIMULINK 2023a version is compatible with TYPHOON HIL Control Centre 2025.2. I have a hard time migrating my circuit which I have already constructed in 2023a matlab version to matlab 2025b version as some of the components inside have upgraded.</description>
<category>Software</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=585/compatibility-between-matlab-simulink-version-typhoon-control</guid>
<pubDate>Mon, 18 May 2026 07:23:21 +0000</pubDate>
</item>
<item>
<title>TYPHOON HIL404 HARDWARE IS NOT ON</title>
<link>https://typhoon-hil.com/forum/?qa=581/typhoon-hil404-hardware-is-not-on</link>
<description>The hardware for HIL404 cannot be switched on. The LED exists at the front side of the hardware doesn&amp;#039;t light up. Power cable has been connected to the socket and the socket works perfectly fine as I have tested it already with other electrical appliances. The red power button has already been pressed (supposedly after that, the LED light up). When the ethernet cable is connected to the PC, the light also did not light up, indicating the power supply did not reach the HIL404. How to solve this issue and what could be the problem?</description>
<category>Hardware</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=581/typhoon-hil404-hardware-is-not-on</guid>
<pubDate>Fri, 15 May 2026 06:25:02 +0000</pubDate>
</item>
<item>
<title>How to link matlab simulink to typhoon blockset?</title>
<link>https://typhoon-hil.com/forum/?qa=576/how-to-link-matlab-simulink-to-typhoon-blockset</link>
<description>&lt;p&gt;How can I perform a full schematic migration from MATLAB/Simulink to Typhoon HIL? I am looking for a way to import my entire &lt;code data-path-to-node=&quot;2,0&quot; data-index-in-node=&quot;126&quot;&gt;.slx&lt;/code&gt; circuit into the Typhoon Schematic Editor so it runs as a standalone model, rather than using a co-simulation link between the two platforms.&lt;/p&gt;</description>
<category>Software</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=576/how-to-link-matlab-simulink-to-typhoon-blockset</guid>
<pubDate>Thu, 14 May 2026 07:15:04 +0000</pubDate>
</item>
<item>
<title>TheThermal Calculation</title>
<link>https://typhoon-hil.com/forum/?qa=575/thethermal-calculation</link>
<description></description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=575/thethermal-calculation</guid>
<pubDate>Wed, 13 May 2026 05:38:38 +0000</pubDate>
</item>
<item>
<title>How can I import Excel frequency data to control a Signal-Controlled Sinusoidal Voltage Source?</title>
<link>https://typhoon-hil.com/forum/?qa=571/import-frequency-control-signal-controlled-sinusoidal-voltage</link>
<description>Hello, I am working on a grid-connected (grid-following) inverter model in Typhoon HIL, which includes a DC link, a three-phase inverter, an LCL filter, and the grid.&lt;br /&gt;
&lt;br /&gt;
I would like to replace the standard grid voltage source with a Signal-Controlled Sinusoidal Voltage Source in order to impose a time-varying grid frequency.&lt;br /&gt;
&lt;br /&gt;
I have real frequency event data (time vs frequency) stored in an Excel file, and my goal is to use this data as input for the frequency port (f) of the source during the simulation.&lt;br /&gt;
&lt;br /&gt;
My questions are:&lt;br /&gt;
&lt;br /&gt;
1. What is the recommended way to import and use time-series data from Excel in Typhoon HIL (e.g., using a Look-Up Table or another method)?&lt;br /&gt;
&lt;br /&gt;
2. What is the best way to feed this data into the three-phase (vector) input of the source while ensuring consistency in the simulation (sampling, execution rate, etc.)?&lt;br /&gt;
&lt;br /&gt;
Any guidance or examples would be greatly appreciated.&lt;br /&gt;
&lt;br /&gt;
Thank you in advance.</description>
<category>Modeling</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=571/import-frequency-control-signal-controlled-sinusoidal-voltage</guid>
<pubDate>Wed, 06 May 2026 09:40:38 +0000</pubDate>
</item>
<item>
<title>I can&#039;t find the Microgrid library in the 2026.2 Software Release. Where is it?</title>
<link>https://typhoon-hil.com/forum/?qa=572/cant-find-the-microgrid-library-2026-software-release-where</link>
<description></description>
<category>Knowledge Base</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=572/cant-find-the-microgrid-library-2026-software-release-where</guid>
<pubDate>Wed, 06 May 2026 09:38:16 +0000</pubDate>
</item>
<item>
<title>Sine Wave in VHIL but Mountain-shaped in C-HIL (TI C2000)</title>
<link>https://typhoon-hil.com/forum/?qa=570/sine-wave-in-vhil-but-mountain-shaped-in-c-hil-ti-c2000</link>
<description>I am experiencing a strange discrepancy between my VHIL/HIL-to-HIL tests and my actual C-HIL setup.&lt;br /&gt;
&lt;br /&gt;
My system overview:&lt;br /&gt;
- GFL inverter with LCL Filter (DC Link: 800V | Grid: 311 Vpeak).&lt;br /&gt;
- The plant (inverter and grid) built in Typhoon HIL simulator (HIL604)&lt;br /&gt;
- The controller programmed in TI C2000 MCU (Ti28069m) via PLECS Coder.&lt;br /&gt;
- PLECS Coder (MCU side) discretization is set to 1e-4. Typhoon HIL is set to &amp;quot;Auto&amp;quot; discretization.&lt;br /&gt;
&lt;br /&gt;
I have successfully built and tested the complete control structure all the way to the outer loop (using power reference to generate the current reference). In this HIL-to-HIL environment, everything works great. Even when applying very high power references that cause some natural distortion, the grid current strictly maintains its sinusoidal shape.&lt;br /&gt;
&lt;br /&gt;
When transitioning to the physical C-HIL, I rebuilt the system step-by-step.&lt;br /&gt;
&lt;br /&gt;
The open-loop tests are perfectly fine (the TI MCU reads the ADC signals safely, and the PWM signals sent back to Typhoon HIL are correctly received).&lt;br /&gt;
&lt;br /&gt;
However, the moment I close just the inner loop (current control), the system breaks. The grid current loses its sine shape entirely and becomes a mountain-shaped waveform.&lt;br /&gt;
&lt;br /&gt;
Looking at the data, the output from the dq-to-abc transformation block shoots up to ~800V. Since the grid is 311V peak, the controller should ideally only demand around ~380V. This massive 800V request heavily saturates the PI controller and completely overmodulates the inverter. (I actually already tried manually scaling down this massive control output so it would safely fit into the PWM limits without overmodulating, but the resulting current still remained in that distorted, mountain-like shape.)&lt;br /&gt;
&lt;br /&gt;
Are there specific execution/task synchronization settings between PLECS Coder and Typhoon HIL that I might have missed when transitioning from HIL-to-HIL to C-HIL? or any ideas on what this issue could be would be greatly appreciated!</description>
<category>Hardware</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=570/sine-wave-in-vhil-but-mountain-shaped-in-c-hil-ti-c2000</guid>
<pubDate>Mon, 04 May 2026 07:12:53 +0000</pubDate>
</item>
<item>
<title>Instability due to coupling challenges.</title>
<link>https://typhoon-hil.com/forum/?qa=566/instability-due-to-coupling-challenges</link>
<description>&lt;p&gt;My microgrid model is not is not working properly because I am having challenges configuring the couplings between elements. The frequency measurement of my PV system is dropping fast and the grid forming diesel generator is severely distorted. Could someone advice me the best way to set the couplings.&amp;nbsp;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=5160241194910638176&quot; style=&quot;height:318px; width:600px&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=5260083256358341731&quot; style=&quot;height:476px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Modeling</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=566/instability-due-to-coupling-challenges</guid>
<pubDate>Tue, 21 Apr 2026 09:55:26 +0000</pubDate>
</item>
<item>
<title>Instability with Constant Power Load in 2-bus system</title>
<link>https://typhoon-hil.com/forum/?qa=564/instability-with-constant-power-load-in-2-bus-system</link>
<description>&lt;p data-start=&quot;155&quot; data-end=&quot;172&quot;&gt;Hello everyone,&lt;/p&gt;&lt;p data-start=&quot;177&quot; data-end=&quot;368&quot;&gt;I’m comparing load models in a simple 2-bus system using Typhoon HIL. With impedance loads, the system behaves correctly, but when using a constant power load the system becomes unbalanced.&lt;/p&gt;&lt;p data-start=&quot;373&quot; data-end=&quot;481&quot;&gt;At the load node, the power values are not as expected and oscillate between negative and positive values.&lt;/p&gt;&lt;p data-start=&quot;486&quot; data-end=&quot;568&quot;&gt;I’ve checked time step, execution rates, and parameters, but the issue persists.&lt;/p&gt;&lt;p data-start=&quot;573&quot; data-end=&quot;677&quot;&gt;Could this be due to the inherent behavior of constant power loads, or a modeling issue?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p data-start=&quot;682&quot; data-end=&quot;700&quot;&gt;Thanks in advance.&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=5502273003912742453&quot; style=&quot;height:299px; width:600px&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=11143228942102246412&quot; style=&quot;height:267px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Modeling</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=564/instability-with-constant-power-load-in-2-bus-system</guid>
<pubDate>Mon, 20 Apr 2026 12:20:03 +0000</pubDate>
</item>
<item>
<title>The Problem is with the Package manager. It is showing error. i tried all to solve it but it is still there.</title>
<link>https://typhoon-hil.com/forum/?qa=562/problem-package-manager-showing-error-tried-solve-still-there</link>
<description>I am using latest version of the typhoon Hil control center but the problem is with the package manager it is not working and now opening</description>
<category>Software</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=562/problem-package-manager-showing-error-tried-solve-still-there</guid>
<pubDate>Sun, 19 Apr 2026 08:26:08 +0000</pubDate>
</item>
<item>
<title>Error with Dynamic Table and Three-phase Variable Load</title>
<link>https://typhoon-hil.com/forum/?qa=559/error-with-dynamic-table-and-three-phase-variable-load</link>
<description>&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(249, 250, 251); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; background-color: rgb(21, 21, 23);&quot;&gt;Hello everyone,&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(249, 250, 251); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; background-color: rgb(21, 21, 23);&quot;&gt;I&#039;m trying to use a Dynamic Table component to feed a power profile (P and Q) from a CSV file into a Three-phase Variable Load. My goal is to make the load follow a time-varying active and reactive power pattern.&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(249, 250, 251); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; background-color: rgb(21, 21, 23);&quot;&gt;&lt;span style=&quot;font-weight:600&quot;&gt;What I did:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;background-color:#151517; color:#f9fafb; font-family:quote-cjk-patch,Inter,system-ui,-apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI&amp;quot;,Roboto,Oxygen,Ubuntu,Cantarell,&amp;quot;Open Sans&amp;quot;,&amp;quot;Helvetica Neue&amp;quot;,sans-serif; margin:16px 0px; padding-left:18px&quot;&gt;&lt;li&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 0px !important; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;&quot;&gt;CSV file has three columns:&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-variant: normal; font-stretch: 100%; line-height: 22px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: Menlo, Monaco, Consolas, &amp;quot;Cascadia Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;JetBrains Mono&amp;quot;, &amp;quot;Fira Code&amp;quot;, Cousine, &amp;quot;Roboto Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, sans-serif, system-ui; background-color: rgb(44, 44, 46); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; font-size: 0.875em !important;&quot;&gt;time, P, Q&lt;/code&gt;&amp;nbsp;(p.u.).&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;margin-top: 6px;&quot;&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 0px !important; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;&quot;&gt;I placed a Dynamic Table and imported the CSV directly (graphical method).&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;margin-top: 6px;&quot;&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 0px !important; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;&quot;&gt;I connected the scaled P to&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-variant: normal; font-stretch: 100%; line-height: 22px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: Menlo, Monaco, Consolas, &amp;quot;Cascadia Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;JetBrains Mono&amp;quot;, &amp;quot;Fira Code&amp;quot;, Cousine, &amp;quot;Roboto Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, sans-serif, system-ui; background-color: rgb(44, 44, 46); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; font-size: 0.875em !important;&quot;&gt;Pref&lt;/code&gt;&amp;nbsp;and scaled Q to&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-variant: normal; font-stretch: 100%; line-height: 22px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: Menlo, Monaco, Consolas, &amp;quot;Cascadia Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;JetBrains Mono&amp;quot;, &amp;quot;Fira Code&amp;quot;, Cousine, &amp;quot;Roboto Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, sans-serif, system-ui; background-color: rgb(44, 44, 46); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; font-size: 0.875em !important;&quot;&gt;Qref&lt;/code&gt;&amp;nbsp;of the load.&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;margin-top: 6px;&quot;&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 0px !important; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;&quot;&gt;I connected a constant&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-variant: normal; font-stretch: 100%; line-height: 22px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: Menlo, Monaco, Consolas, &amp;quot;Cascadia Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;JetBrains Mono&amp;quot;, &amp;quot;Fira Code&amp;quot;, Cousine, &amp;quot;Roboto Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, sans-serif, system-ui; background-color: rgb(44, 44, 46); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; font-size: 0.875em !important;&quot;&gt;1&lt;/code&gt;&amp;nbsp;to the&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-variant: normal; font-stretch: 100%; line-height: 22px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: Menlo, Monaco, Consolas, &amp;quot;Cascadia Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;JetBrains Mono&amp;quot;, &amp;quot;Fira Code&amp;quot;, Cousine, &amp;quot;Roboto Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, sans-serif, system-ui; background-color: rgb(44, 44, 46); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; font-size: 0.875em !important;&quot;&gt;Enable&lt;/code&gt;&amp;nbsp;input of the load.&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;margin-top: 6px;&quot;&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin-top: 0px !important; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;&quot;&gt;I also tried connecting&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-variant: normal; font-stretch: 100%; line-height: 22px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: Menlo, Monaco, Consolas, &amp;quot;Cascadia Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;JetBrains Mono&amp;quot;, &amp;quot;Fira Code&amp;quot;, Cousine, &amp;quot;Roboto Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, sans-serif, system-ui; background-color: rgb(44, 44, 46); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; font-size: 0.875em !important;&quot;&gt;Balance_en = 0&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code style=&quot;box-sizing: border-box; font-variant: normal; font-stretch: 100%; line-height: 22px; font-optical-sizing: auto; font-size-adjust: none; font-kerning: auto; font-feature-settings: normal; font-variation-settings: normal; font-language-override: normal; font-family: Menlo, Monaco, Consolas, &amp;quot;Cascadia Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;JetBrains Mono&amp;quot;, &amp;quot;Fira Code&amp;quot;, Cousine, &amp;quot;Roboto Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, sans-serif, system-ui; background-color: rgb(44, 44, 46); border-radius: 6px; align-items: center; padding: 0px 5px; display: inline-flex; font-size: 0.875em !important;&quot;&gt;ROC = 0&lt;/code&gt;&amp;nbsp;as suggested in some posts.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(249, 250, 251); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; background-color: rgb(21, 21, 23);&quot;&gt;&lt;span style=&quot;font-weight:600&quot;&gt;The problem:&lt;/span&gt;&lt;br&gt;When I try to compile the model, I get a huge list of errors&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(249, 250, 251); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif; background-color: rgb(21, 21, 23);&quot;&gt;I want to know if it is another method to make an variable load using data from a csv. PLEASE HELP&lt;/p&gt;</description>
<category>Modeling</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=559/error-with-dynamic-table-and-three-phase-variable-load</guid>
<pubDate>Wed, 15 Apr 2026 06:08:34 +0000</pubDate>
</item>
<item>
<title>PFC boost converter in Typhoon HIL</title>
<link>https://typhoon-hil.com/forum/?qa=554/pfc-boost-converter-in-typhoon-hil</link>
<description>Hello everyone,&lt;br /&gt;
I am currently trying to design a single-phase PFC (Power Factor Correction) boost converter in Typhoon HIL. Although the model runs without any compilation errors, the control system does not seem to be working properly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Problem description: Although the PWM modulator is supplying an active switching signal to the MOSFET (verified on the scope), the output voltage (V_out) does not rise to the setpoint of 400V. It remains at approx. 325V, which corresponds to the peak value of the mains voltage. Furthermore, the input current (I_in) exhibits the typical peaks of a passive rectifier and does not follow the desired sinusoidal waveform.Model details:Topology: Single-phase bridge rectifier with a downstream boost inductor (L = 2\mH), MOSFET and diode.Load/buffer: C = 470mF &amp;nbsp;R_load = 200Ω.&lt;br /&gt;
&lt;br /&gt;
Control: Cascaded structure. The outer voltage regulator (PI) sets the amplitude; the inner current regulator (PI) compares the target sine wave with the measured inductor current. PWM: Carrier frequency 20kHz, reference signal range [0, 1].&lt;br /&gt;
&lt;br /&gt;
What I have already checked:&lt;br /&gt;
&lt;br /&gt;
The PWM modulator is linked to the MOSFET via the PWM_Modulator1.TOP_1 signal (core signal). The signal limits (saturation) of the PI controllers are set to [0, 1] for the duty cycle. The hardware parameters (L and C) appear to be reasonable.&lt;br /&gt;
&lt;br /&gt;
Nevertheless, it appears as though the boost effect is not occurring physically, or the PI controllers are outputting a duty cycle that is far too low. Does anyone have experience with tuning PFC controllers in Typhoon, or can you spot a classic error in the wiring of the multiplier chain for reference current calculation? Attached are screenshots of my schematic and the scope waveforms.&lt;br /&gt;
&lt;br /&gt;
Many thanks for your help!</description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=554/pfc-boost-converter-in-typhoon-hil</guid>
<pubDate>Tue, 07 Apr 2026 16:39:48 +0000</pubDate>
</item>
<item>
<title>How to create own carrier waveform generator block for sawtooth or triangular waveforms</title>
<link>https://typhoon-hil.com/forum/?qa=551/carrier-waveform-generator-sawtooth-triangular-waveforms</link>
<description></description>
<category>Modeling</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=551/carrier-waveform-generator-sawtooth-triangular-waveforms</guid>
<pubDate>Thu, 26 Mar 2026 07:36:08 +0000</pubDate>
</item>
<item>
<title>I cannot log in on control center</title>
<link>https://typhoon-hil.com/forum/?qa=547/i-cannot-log-in-on-control-center</link>
<description>Hello, &lt;br /&gt;
&lt;br /&gt;
I installed the software and now i need to log in on control center to activate the license. But when i write my log in data, it say the username or password are incorrect. Funny thing because with same data i can log in on browser. Can some help me with that? Thanks</description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=547/i-cannot-log-in-on-control-center</guid>
<pubDate>Sun, 15 Mar 2026 20:52:31 +0000</pubDate>
</item>
<item>
<title>Execution rate causes inestability</title>
<link>https://typhoon-hil.com/forum/?qa=541/execution-rate-causes-inestability</link>
<description>&lt;p&gt;Good morning,&lt;/p&gt;&lt;p&gt;I am currently working with an averaged model of a DAB in Typhoon Sim. The model works perfectly for an execution rate equal or inferior than 1e-6 (components execution rate &amp;lt;= 1e-6 works perfectly). The problem is that if I try to lower the execution rate it appears that the simulation of the systems turns unstable, causing either solver error&amp;nbsp;(&lt;span style=&quot;color:#ff0000&quot;&gt;DAE Solver failed at time 1.3360000000e-02 to find a solution. Please make one of the following changes: (i) adjust solver settings: maximum simulation step, relative and/or absolute tolerance values, (ii) provide better initial conditions, or (iii) choose a different DAE solver.)&amp;nbsp;&lt;/span&gt;or not desired results (most signals turn unstable and tend to +- inf).&amp;nbsp;&lt;/p&gt;&lt;p&gt;This particular problem occurs both with closed and open loop, so the control doesn&#039;t appear to be the issue.&lt;/p&gt;&lt;p&gt;I need to run the model on a 402 physical HIL, which is unable to run with such small execution rate and I must be able to run the model with a bigger execution rate.&amp;nbsp;I get the same problem with HIL SCADA, if I try to compile the model with an execution rate &amp;lt; 1e-6 the systems turns unstable, otherwise seems to work fine (on vhil scada because as I said the 402 cannot handle this execution rate without CIO an AO warnings with this system).&lt;br&gt;&lt;br&gt;I&#039;ve tried to simplify a bit the model but I keep getting the same issue). If anyone has had similar issues or could help me fix the issue any help is appreciated. I&#039;ll attach some pictures of the current model that i&#039;m trying tom simulate.&amp;nbsp;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=3526452820226316964&quot; style=&quot;height:192px; width:600px&quot;&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=14903566820350172371&quot; style=&quot;height:189px; width:600px&quot;&gt;&lt;/p&gt;&lt;p&gt;Here&#039;s everything but the control, if the resolution is too bad to appreciate the images, let me know and I&#039;ll try to provide more information.&lt;/p&gt;&lt;p&gt;Thank you very much in advance.&lt;/p&gt;&lt;p&gt;Salutations,&lt;br&gt;&lt;br&gt;&amp;nbsp;&lt;/p&gt;</description>
<category>TyphoonSim</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=541/execution-rate-causes-inestability</guid>
<pubDate>Mon, 09 Mar 2026 11:51:16 +0000</pubDate>
</item>
<item>
<title>Detailed description of the HIL DSP 180 Interface is correct?</title>
<link>https://typhoon-hil.com/forum/?qa=537/detailed-description-of-the-hil-dsp-180-interface-is-correct</link>
<description>Table 1. Analog signal routing in web documentation: I have problems because real experiments do not match this table. Example: AO20 is connected to connector pin 39 (A3/B9/C7) and it is not not to ADC-C5. Please, Someone could provide me a table corrected?</description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=537/detailed-description-of-the-hil-dsp-180-interface-is-correct</guid>
<pubDate>Fri, 06 Mar 2026 14:31:41 +0000</pubDate>
</item>
<item>
<title>Frequency Limitation on Triangular Waveform Generator</title>
<link>https://typhoon-hil.com/forum/?qa=534/frequency-limitation-on-triangular-waveform-generator</link>
<description>Is there any limitation on the Frequency for Triangular Wave generator. Currently I am Using it generate a triangular waveform of 1kHz frequency. However, when I set the frequency to 2 kHz or above, the output becomes clipped instead of triangular.</description>
<category>Modeling</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=534/frequency-limitation-on-triangular-waveform-generator</guid>
<pubDate>Thu, 26 Feb 2026 12:24:29 +0000</pubDate>
</item>
<item>
<title>AutoCAD drawing</title>
<link>https://typhoon-hil.com/forum/?qa=531/autocad-drawing</link>
<description>is there an AutoCAD drawing for HIL 606 somewhere so that I can download it? Thank you...</description>
<category>Hardware</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=531/autocad-drawing</guid>
<pubDate>Tue, 24 Feb 2026 08:34:04 +0000</pubDate>
</item>
<item>
<title>Can I physically connect TI Launchpad with Typhoon Hil ?device and use them remotely?</title>
<link>https://typhoon-hil.com/forum/?qa=529/physically-connect-launchpad-with-typhoon-device-remotely</link>
<description>Hello, &lt;br /&gt;
I am wondering if &amp;nbsp;I can physically connect TI Launchpad with Typhoon Hil and use remotely. If yes, how? Could you please send relevant documentation &lt;br /&gt;
&lt;br /&gt;
Thanks for your help &lt;br /&gt;
Olutayo</description>
<category>Hardware</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=529/physically-connect-launchpad-with-typhoon-device-remotely</guid>
<pubDate>Wed, 18 Feb 2026 07:01:25 +0000</pubDate>
</item>
<item>
<title>Sim won&#039;t run example RLC model</title>
<link>https://typhoon-hil.com/forum/?qa=521/sim-wont-run-example-rlc-model</link>
<description>&lt;p&gt;Fresh install TyphoonSim on Windows, logged in, license installed. Stop time and Run icon disabled. Read Quickstart docs, searched Forum for answers, to no avail. What am I missing?&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=7941465306163845551&quot; style=&quot;height:357px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>TyphoonSim</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=521/sim-wont-run-example-rlc-model</guid>
<pubDate>Tue, 03 Feb 2026 06:47:53 +0000</pubDate>
</item>
<item>
<title>HIL 402 license is not valid</title>
<link>https://typhoon-hil.com/forum/?qa=519/hil-402-license-is-not-valid</link>
<description>&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 10px; font-size: 14px; line-height: 1.5rem; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; box-shadow: none !important;&quot;&gt;Good afternoon,&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 10px; font-size: 14px; line-height: 1.5rem; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; box-shadow: none !important;&quot;&gt;A few months ago, I requested acces to the typhoon software in order to start a university project. The request was approved and I was provided with a license, that I activated as you can see in the second attached picture.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 10px; font-size: 14px; line-height: 1.5rem; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; box-shadow: none !important;&quot;&gt;&lt;br style=&quot;box-sizing: border-box;&quot;&gt;My university (Universitat Rovira i Virgili)&amp;nbsp;has an available HIL 402 (details as the serial number provided)&amp;nbsp; that, as you can see in the first attached picture, is detected by my pc but when I try to add the device to my setup, it clearly says that the license for selected device is not valid.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 10px; font-size: 14px; line-height: 1.5rem; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; box-shadow: none !important;&quot;&gt;I&#039;m not sure wether the problem is my license (given that iI got the free one and&amp;nbsp;with my&amp;nbsp;license I only can select 404 as the device) or the device&#039;s license. I&#039;d really appreciate any kind of help on that matter. I would also like to know if the firmware can properly be updated (if it would still be compatible with the new version off typhoon center one)&amp;nbsp;given that the current one is quite old (09-29-2022).&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 10px; font-size: 14px; line-height: 1.5rem; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; box-shadow: none !important;&quot;&gt;I can perfectly run my simulations in the schematics editor and the scada but I&#039;d like to know if I would be able to run it on the HIL402 in order to get some physical feedback to an extern device.&amp;nbsp;&lt;br style=&quot;box-sizing: border-box;&quot;&gt;&lt;br style=&quot;box-sizing: border-box; margin-bottom: 0px !important;&quot;&gt;Thank you very much for your help, it is truly kindly appreciated.&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 0px 0px 10px; font-size: 14px; line-height: 1.5rem; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; box-shadow: none !important;&quot;&gt;Salutations,&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-right: 0px; margin-left: 0px; font-size: 14px; line-height: 1.5rem; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; margin-bottom: 0px !important; box-shadow: none !important;&quot;&gt;Genis Joan Romano&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-right: 0px; margin-left: 0px; font-size: 14px; line-height: 1.5rem; border: none; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; margin-bottom: 0px !important; box-shadow: none !important;&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=17583959804311536636&quot; style=&quot;height:216px; width:600px&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=12141351104253888252&quot; style=&quot;height:334px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Hardware</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=519/hil-402-license-is-not-valid</guid>
<pubDate>Tue, 27 Jan 2026 15:56:34 +0000</pubDate>
</item>
<item>
<title>The regular one icon</title>
<link>https://typhoon-hil.com/forum/?qa=517/the-regular-one-icon</link>
<description>&lt;p&gt;How change the icon for .tse and .cus to regular one?&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=7758301763144452530&quot; style=&quot;height:405px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Software</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=517/the-regular-one-icon</guid>
<pubDate>Fri, 23 Jan 2026 08:29:20 +0000</pubDate>
</item>
<item>
<title>TyphoonSim unable to run simulation</title>
<link>https://typhoon-hil.com/forum/?qa=516/typhoonsim-unable-to-run-simulation</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I am trying to run a simulation on a circuit I have and I am unable to press the &quot;run simulation&quot; button as it appears to be greyed out.&lt;/p&gt;&lt;p&gt;I am getting this issue, specifically:&lt;/p&gt;&lt;p&gt;&quot;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#545454; font-family:HelveticaNeueETW01-55Rg,Helvetica,Arial,FreeSans,sans-serif&quot;&gt;Login failed!&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; color: rgb(84, 84, 84); font-family: HelveticaNeueETW01-55Rg, Helvetica, Arial, FreeSans, sans-serif;&quot;&gt;&lt;br style=&quot;box-sizing: border-box; color: rgb(84, 84, 84); font-family: HelveticaNeueETW01-55Rg, Helvetica, Arial, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;color:#545454; font-family:HelveticaNeueETW01-55Rg,Helvetica,Arial,FreeSans,sans-serif&quot;&gt;[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)&lt;/span&gt;&lt;br style=&quot;box-sizing: border-box; color: rgb(84, 84, 84); font-family: HelveticaNeueETW01-55Rg, Helvetica, Arial, FreeSans, sans-serif;&quot;&gt;&lt;br style=&quot;box-sizing: border-box; color: rgb(84, 84, 84); font-family: HelveticaNeueETW01-55Rg, Helvetica, Arial, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;color:#545454; font-family:HelveticaNeueETW01-55Rg,Helvetica,Arial,FreeSans,sans-serif&quot;&gt;Please, check your internet connection.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&quot;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I made sure to pull in the license file into the license manager, and I made sure to connect to the internet.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;I checked other forums about this same issue, and it seems to solve the issue by disabling an expired certificate. I tried that, but the R3 certificate in question was not there, so there was no certificate to be disabled.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Some context: I am trying to run this simulation over a local virtual machine running windows on my mac.&lt;/p&gt;</description>
<category>TyphoonSim</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=516/typhoonsim-unable-to-run-simulation</guid>
<pubDate>Thu, 22 Jan 2026 08:26:14 +0000</pubDate>
</item>
<item>
<title>Inquiry on UDP Communication Usage and MAC-Related Changes in Typhoon HIL 2025.4</title>
<link>https://typhoon-hil.com/forum/?qa=514/inquiry-communication-usage-related-changes-typhoon-2025</link>
<description>Hello, I am currently working with the Ethernet UDP Communication module in Typhoon HIL and would like to seek your guidance regarding its correct usage for data transmission and reception, particularly after upgrading to version 2025.4.&lt;br /&gt;
&lt;br /&gt;
In earlier software versions, I successfully implemented UDP-based communication using the UDP Send/Receive modules to exchange data between the HIL device and an external controller. However, after upgrading to version 2025.4, the same communication setup no longer functions as expected. During troubleshooting, I noticed that the UDP Communication module in the newer version introduces additional MAC address–related configuration options (e.g., source device MAC address and MAC override settings), which were not explicitly exposed or configurable in previous versions.&lt;br /&gt;
&lt;br /&gt;
Based on this observation, I would like to kindly ask for clarification on the following points:&lt;br /&gt;
&lt;br /&gt;
What is the recommended procedure for implementing reliable UDP data transmission and reception using the Ethernet UDP Communication modules in the current (2025.4) version?&lt;br /&gt;
&lt;br /&gt;
What specific changes related to MAC address handling were introduced in or before version 2025.4?&lt;br /&gt;
&lt;br /&gt;
Why might UDP communication models built with earlier versions (where MAC configuration was implicit or hidden) fail to operate correctly after upgrading?&lt;br /&gt;
&lt;br /&gt;
Are there any mandatory MAC-related settings or migration steps required to ensure backward compatibility of existing UDP communication models?&lt;br /&gt;
&lt;br /&gt;
Understanding the rationale behind these changes and the correct configuration approach would be very helpful for adapting our existing HIL models to the updated software environment.&lt;br /&gt;
&lt;br /&gt;
Thank you very much for your time and support. I look forward to your guidance.</description>
<category>Communication protocols</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=514/inquiry-communication-usage-related-changes-typhoon-2025</guid>
<pubDate>Thu, 15 Jan 2026 13:47:33 +0000</pubDate>
</item>
<item>
<title>how can i download this freely   please help me</title>
<link>https://typhoon-hil.com/forum/?qa=511/how-can-i-download-this-freely-please-help-me</link>
<description></description>
<category>Software</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=511/how-can-i-download-this-freely-please-help-me</guid>
<pubDate>Fri, 26 Dec 2025 06:58:34 +0000</pubDate>
</item>
<item>
<title>Supervision over ethernet communication protocols</title>
<link>https://typhoon-hil.com/forum/?qa=509/supervision-over-ethernet-communication-protocols</link>
<description>Hello, I&amp;#039;m currently using the Ethernet VE for transmiting lots of information to a online server, this is for a further analysis of the data from my side.&lt;br /&gt;
I have to use several &amp;quot;Eth VE Send blocks&amp;quot; for different data.&lt;br /&gt;
&lt;br /&gt;
I want to know if it is possible to have a count of the number of messages the Typhoon send. Also I may change to the new Ethernet UDP/TCP communication and if it is possible this counter also with this other protocol.&lt;br /&gt;
&lt;br /&gt;
Also, since I use several blocks I want to declare the IP in the model initialization script, how can I do it? Because I always got an error no mather what I use in the declaration.&lt;br /&gt;
&lt;br /&gt;
Thank you in advance.</description>
<category>Communication protocols</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=509/supervision-over-ethernet-communication-protocols</guid>
<pubDate>Thu, 18 Dec 2025 13:47:28 +0000</pubDate>
</item>
<item>
<title>Issues Using Three-Phase Core Coupling in Parallel Inverter Simulation</title>
<link>https://typhoon-hil.com/forum/?qa=507/issues-using-three-coupling-parallel-inverter-simulation</link>
<description>Hello, I am currently running a parallel operation simulation of two inverters, with a linear resistive load at the output. A three-phase core coupling is added to each inverter (current source on the left side and voltage source on the right side). According to the simulation results, the second inverter’s voltage and current are controlled normally, but the output current of the first inverter cannot be delivered to the load, and its current waveform becomes distorted, although the voltage control is normal. As a result, parallel control cannot be achieved.&lt;br /&gt;
&lt;br /&gt;
If I change the three-phase core coupling configuration to “voltage source on the left side and current source on the right side”, the control performance becomes even worse.&lt;br /&gt;
&lt;br /&gt;
I would like to ask: what is the correct way to use the three-phase core coupling in parallel inverter simulations? Do I need to modify any parameters inside the coupling block? Thank you.</description>
<category>Modeling</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=507/issues-using-three-coupling-parallel-inverter-simulation</guid>
<pubDate>Tue, 02 Dec 2025 06:57:11 +0000</pubDate>
</item>
<item>
<title>triangular waveform generation</title>
<link>https://typhoon-hil.com/forum/?qa=503/triangular-waveform-generation</link>
<description>I am working on the level-shift PWM technique, which requires a high-frequency repeating sequence. For that, I am using a triangular wave source. However, when I set the frequency to 10 kHz, the output becomes constant instead of triangular. The waveform appears triangular only at 50 Hz, but for any frequency other than 50 Hz, it is no longer triangular.&lt;br /&gt;
What could be the reason for this behavior</description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=503/triangular-waveform-generation</guid>
<pubDate>Mon, 10 Nov 2025 12:13:39 +0000</pubDate>
</item>
<item>
<title>License Extension for Free Version</title>
<link>https://typhoon-hil.com/forum/?qa=501/license-extension-for-free-version</link>
<description>Hi I am using the free version of the Typhoon HIL control centre for pursing the courses given in the HIL Academy the license says that the expiry date is 58 days from today, is there any way to extend the license post that ? if the license gets deactivated I may not be use the software right or will I have limited access atleast to learn with? Kindly help , Thanks.</description>
<category>Software</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=501/license-extension-for-free-version</guid>
<pubDate>Tue, 04 Nov 2025 17:07:52 +0000</pubDate>
</item>
<item>
<title>Voltage Ripple (Drift)</title>
<link>https://typhoon-hil.com/forum/?qa=497/voltage-ripple-drift</link>
<description>&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;xxx&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;Picture attached&quot;&gt;Hello,&lt;br&gt;&lt;br&gt;Kindly treat this as urgent.&lt;br&gt;&lt;br&gt;I am experiencing significant voltage ripple (voltage drift) in the reference current signal generated by my inverter using Field-Oriented Control (FOC). I am using the TI LaunchPad and have correctly applied scaling and offset. My code in Code Composer Studio (CCS) has been thoroughly checked, yet the inverter’s current output exhibits highly uneven peaks.&lt;br&gt;&lt;br&gt;I measured the analogue outputs from both the Typhoon HIL interface and the LaunchPad, and both show similar uneven peaks. The analogue voltage representing the current drifts from the ideal 0–3 V range. Importantly, this drift is not linear; the minimum and maximum values fluctuate across different points within 0–3 V.&lt;br&gt;&lt;br&gt;To rule out software errors, I passed a simple constant value from the Typhoon HIL schematic model. The input range was ±2250 A (in step of ±450 A), scaled appropriately, and sent to the LaunchPad. I have attached an Excel file with the results of the reference current for lines A and B of my inverter, in 0.3 V steps (0–3 V). The &quot;Summary&quot; sheet provides an overview, and each data point is labelled with the reference voltage and current. For example, 1.8 V is documented as 1.8V_450A. For these measurements, Oscilloscope ch3 is line A connected to AO1 and ch2 is line B connected to AO5.&lt;br&gt;&lt;br&gt;I also tested different analogue outputs. While some show improved results, others remain suboptimal—for instance, AO1 (ADCINA4) shows particularly poor performance. I contacted TI, but they referred me to Typhoon HIL support as they do not have expertise with Typhoon.&lt;br&gt;&lt;br&gt;The three-phase current results from the inverter are also included in the &quot;Summary&quot; sheet.&lt;br&gt;&lt;br&gt;I would greatly appreciate your urgent guidance on resolving this issue.&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Olutayo&lt;/p&gt;</description>
<category>Hardware</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=497/voltage-ripple-drift</guid>
<pubDate>Tue, 28 Oct 2025 08:36:09 +0000</pubDate>
</item>
<item>
<title>Scope/Capture triggering, but not showing data in Real Time mode</title>
<link>https://typhoon-hil.com/forum/?qa=495/scope-capture-triggering-but-not-showing-data-real-time-mode</link>
<description>I have a real time simulation using the Dual Active Bridge toolbox.&lt;br /&gt;
&lt;br /&gt;
In the SCADA panel, I am trying to collect data from the simulation using the scope function. &amp;nbsp;When I run the simulation, the scope triggers, but never shows data. &amp;nbsp;When I use capture and force a trigger, a triger is registered as successful but I am given a blue bar and &amp;quot;waiting for data....&amp;quot; message.&lt;br /&gt;
&lt;br /&gt;
This scope and capture does work in virtual HIL mode. &amp;nbsp;Do I need to enable anything for scope/capture to work in real time mode?</description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=495/scope-capture-triggering-but-not-showing-data-real-time-mode</guid>
<pubDate>Fri, 17 Oct 2025 06:43:53 +0000</pubDate>
</item>
<item>
<title>Setting Parallel R–L Load in IEEE Node 611 Model Produces Unrealistic Values</title>
<link>https://typhoon-hil.com/forum/?qa=493/setting-parallel-load-ieee-model-produces-unrealistic-values</link>
<description>&lt;p data-start=&quot;154&quot; data-end=&quot;166&quot;&gt;Hi everyone,&lt;/p&gt;&lt;p data-start=&quot;168&quot; data-end=&quot;325&quot;&gt;I’m modelling the IEEE 13-Bus Test Feeder in Typhoon HIL and replacing the series R–L load at Node 611 with a parallel R–L branch to represent the spot load.&lt;/p&gt;&lt;p data-start=&quot;327&quot; data-end=&quot;479&quot;&gt;I want to set the resistance and inductance based on the desired active (P) and reactive (Q) power at nominal voltage, using the standard relationships:&lt;/p&gt;&lt;p data-start=&quot;481&quot; data-end=&quot;521&quot;&gt;P = V² / R&lt;br data-start=&quot;491&quot; data-end=&quot;494&quot;&gt;Q = V² / X , where X = 2πfL&lt;/p&gt;&lt;p data-start=&quot;523&quot; data-end=&quot;538&quot;&gt;So for my case:&lt;/p&gt;&lt;ul data-start=&quot;540&quot; data-end=&quot;698&quot;&gt;&lt;li data-start=&quot;540&quot; data-end=&quot;580&quot;&gt;&lt;p data-start=&quot;542&quot; data-end=&quot;580&quot;&gt;Line-to-line voltage: V_LL = 4.16 kV&lt;/p&gt;&lt;/li&gt;&lt;li data-start=&quot;581&quot; data-end=&quot;637&quot;&gt;&lt;p data-start=&quot;583&quot; data-end=&quot;637&quot;&gt;Line-to-neutral voltage: V_ph = 0.9777 × (4160 / √3)&lt;/p&gt;&lt;/li&gt;&lt;li data-start=&quot;638&quot; data-end=&quot;662&quot;&gt;&lt;p data-start=&quot;640&quot; data-end=&quot;662&quot;&gt;Frequency: f = 60 Hz&lt;/p&gt;&lt;/li&gt;&lt;li data-start=&quot;663&quot; data-end=&quot;698&quot;&gt;&lt;p data-start=&quot;665&quot; data-end=&quot;698&quot;&gt;Desired P = 170 kW, Q = 80 kVAr&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p data-start=&quot;700&quot; data-end=&quot;705&quot;&gt;Then:&lt;/p&gt;&lt;p data-start=&quot;707&quot; data-end=&quot;793&quot;&gt;L = (0.9777 × 4160 / √3)² / (80,000 × 2π × 60)&lt;br data-start=&quot;753&quot; data-end=&quot;756&quot;&gt;R = (0.9777 × 4160 / √3)² / 170,000&lt;/p&gt;&lt;p data-start=&quot;795&quot; data-end=&quot;1034&quot;&gt;However, when I run the model and try to dynamically adjust P by varying the resistor in real time (using a variable resistor block in Typhoon and SCADA input), the resulting power readings become extremely large—much higher than expected.&lt;/p&gt;&lt;p data-start=&quot;1036&quot; data-end=&quot;1311&quot;&gt;Am I missing something in how the parallel R–L load is modeled or how the dynamic resistance update is interpreted by Typhoon? Could it be a scaling issue with the per-phase voltage, or the fact that power depends on V²/R while the system voltage changes slightly under load?&lt;/p&gt;&lt;p data-start=&quot;386&quot; data-end=&quot;398&quot;&gt;&lt;/p&gt;&lt;p data-start=&quot;1313&quot; data-end=&quot;1425&quot;&gt;Any advice on how to correctly parameterize and dynamically adjust P while keeping Q fixed would be appreciated&lt;/p&gt;&lt;p data-start=&quot;1313&quot; data-end=&quot;1425&quot;&gt;I have made a standalone model simulating the node611 from ieee13 node feeder and im still getting the same huge numbers. The schematic and scada panel are linked below.&amp;nbsp;&lt;/p&gt;&lt;p data-start=&quot;1313&quot; data-end=&quot;1425&quot;&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=4099747857620003690&quot;&gt;schematic model download&lt;/a&gt;&lt;/p&gt;&lt;p data-start=&quot;1313&quot; data-end=&quot;1425&quot;&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=7736751615778421765&quot;&gt;scada panel download&lt;/a&gt;&lt;/p&gt;</description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=493/setting-parallel-load-ieee-model-produces-unrealistic-values</guid>
<pubDate>Tue, 14 Oct 2025 07:06:33 +0000</pubDate>
</item>
<item>
<title>PSO optimization technique how to adapt this code properly for execution in the Typhoon HIL C-block.</title>
<link>https://typhoon-hil.com/forum/?qa=491/optimization-technique-adapt-properly-execution-typhoon</link>
<description>&lt;p&gt;Dear Typhoon HIL Team,&lt;/p&gt;&lt;p&gt;Dear Typhoon HIL Team,&lt;/p&gt;&lt;p&gt;I am working on a research project titled &lt;em&gt;“Photovoltaic MPPT Performance Adaptability to Partial Shading Resilience and Load Variations with PSO.”&lt;/em&gt; In MATLAB/Simulink, I have implemented and validated the PSO-based MPPT algorithm using a C-function block, and I now wish to port this into Typhoon HIL Control Center for hardware-in-the-loop testing and real-time verification.&lt;/p&gt;&lt;p&gt;My MATLAB code (attached below) takes PV voltage and current (Vpv, Ipv) as inputs and generates the duty cycle (D_out) as output. It uses persistent variables for swarm initialization, particle updates, personal/global best tracking, and smoothing of the duty cycle output.&lt;/p&gt;&lt;p&gt;I would like guidance on:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Code Structure:&lt;/strong&gt; How to adapt my MATLAB C-function for Typhoon HIL’s C-block (syntax, supported functions, use of init() and step()).&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Inputs/Outputs:&lt;/strong&gt; Correct way to declare Vpv, Ipv as inputs and D_out as output, and how to connect the duty cycle output to PWM blocks.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Implementation Steps:&lt;/strong&gt; The procedure to load and compile this code in the Schematic Editor, handle unsupported functions (e.g., rand, linspace), and properly manage persistent variables.&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;strong&gt;Verification:&lt;/strong&gt; Best practices to confirm that the Typhoon C-block produces results consistent with MATLAB under partial shading and load variation tests.&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;My main goal is to compare MATLAB simulations with Typhoon HIL results under identical conditions for benchmarking MPPT performance. Any step-by-step instructions, references, or example templates would be greatly appreciated.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Thank you for your support.&lt;/p&gt;&lt;p&gt;Below, I have provided a detailed explanation of the MATLAB C-function block along with the points where I am seeking clarification:&lt;/p&gt;&lt;hr&gt;&lt;h3&gt;1. Code Structure&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;In MATLAB, my MPPT logic is encapsulated in a C-function block with persistent variables for maintaining PSO states such as swarm positions, velocities, particle bests, and global best. Below is the complete implementation:&lt;/p&gt;&lt;p&gt;%% ------------------ PSO Parameters ------------------&lt;/p&gt;&lt;p&gt;persistent swarm iter stepCounter P_hist D_out_prev&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;% PSO constants&lt;/p&gt;&lt;p&gt;N = 30;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% number of particles&lt;/p&gt;&lt;p&gt;maxIter = 300;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % max iterations&lt;/p&gt;&lt;p&gt;c1 = 1.8;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% cognitive factor&lt;/p&gt;&lt;p&gt;c2 = 1.8;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% social factor&lt;/p&gt;&lt;p&gt;w_max = 0.9;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % max inertia&lt;/p&gt;&lt;p&gt;w_min = 0.4;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % min inertia&lt;/p&gt;&lt;p&gt;D_min = 0.05;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% min duty cycle&lt;/p&gt;&lt;p&gt;D_max = 0.95;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% max duty cycle&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;% Moving average for stability&lt;/p&gt;&lt;p&gt;avgWindow = 7;&lt;/p&gt;&lt;p&gt;updatePeriod = 1;&amp;nbsp; &amp;nbsp; &amp;nbsp; % update every step&lt;/p&gt;&lt;p&gt;perturbMagnitude = 0.02; % small perturbation&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;%% ------------------ Initialization ------------------&lt;/p&gt;&lt;p&gt;if isempty(swarm)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; D_sweep = linspace(D_min, D_max, N);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.x = D_sweep;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% particle positions (duty cycles)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.v = zeros(1,N);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % particle velocities&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.pBest = D_sweep;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% personal bests&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.pBestVal = -inf(1,N);&amp;nbsp; &amp;nbsp; &amp;nbsp; % personal best power&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.gBest = D_min;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% global best duty cycle&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.gBestVal = -inf;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;% global best power&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.k = 1;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; % current particle index&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; iter = 1;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; stepCounter = 0;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; P_hist = zeros(1, avgWindow);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; D_out_prev = swarm.gBest;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; D_out = swarm.gBest;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; return;&lt;/p&gt;&lt;p&gt;end&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;%% ------------------ Slow Update ------------------&lt;/p&gt;&lt;p&gt;stepCounter = stepCounter + 1;&lt;/p&gt;&lt;p&gt;if stepCounter &amp;lt; updatePeriod&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; D_out = D_out_prev;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; return;&lt;/p&gt;&lt;p&gt;else&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; stepCounter = 0;&lt;/p&gt;&lt;p&gt;end&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;%% ------------------ Moving Average Power ------------------&lt;/p&gt;&lt;p&gt;P_hist = [P_hist(2:end), Vpv*Ipv];&lt;/p&gt;&lt;p&gt;P = mean(P_hist);&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;%% ------------------ Update Personal Best ------------------&lt;/p&gt;&lt;p&gt;if P &amp;gt; swarm.pBestVal(swarm.k)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.pBest(swarm.k) = swarm.x(swarm.k);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.pBestVal(swarm.k) = P;&lt;/p&gt;&lt;p&gt;end&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;%% ------------------ PSO Update ------------------&lt;/p&gt;&lt;p&gt;w = w_max - (w_max - w_min)*(iter/maxIter);&lt;/p&gt;&lt;p&gt;r1 = rand; r2 = rand;&lt;/p&gt;&lt;p&gt;swarm.v(swarm.k) = w*swarm.v(swarm.k) ...&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ c1*r1*(swarm.pBest(swarm.k)-swarm.x(swarm.k)) ...&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ c2*r2*(swarm.gBest - swarm.x(swarm.k));&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;swarm.x(swarm.k) = swarm.x(swarm.k) + swarm.v(swarm.k);&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;%% ------------------ Clamp Duty Cycle ------------------&lt;/p&gt;&lt;p&gt;swarm.x(swarm.k) = max(min(swarm.x(swarm.k), D_max), D_min);&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;%% ------------------ Move to Next Particle ------------------&lt;/p&gt;&lt;p&gt;swarm.k = swarm.k + 1;&lt;/p&gt;&lt;p&gt;if swarm.k &amp;gt; N&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.k = 1;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; iter = iter + 1;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; % ------------------ Update Global Best after all particles ------------------&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; [bestP, idx] = max(swarm.pBestVal);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.gBest = swarm.pBest(idx);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.gBestVal = bestP;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; % ------------------ Small Random Perturbation ------------------&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; if mod(iter,20)==0&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; swarm.x = swarm.x + perturbMagnitude*(rand(1,N)-0.5);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; swarm.x = max(min(swarm.x, D_max), D_min);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; end&lt;/p&gt;&lt;p&gt;end&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;%% ------------------ Reset if maxIter ------------------&lt;/p&gt;&lt;p&gt;if iter &amp;gt; maxIter&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; D_sweep = linspace(D_min,D_max,N);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.x = D_sweep;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.v = zeros(1,N);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.pBest = D_sweep;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.pBestVal = -inf(1,N);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.gBest = D_min;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; swarm.gBestVal = -inf;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; iter = 1;&lt;/p&gt;&lt;p&gt;end&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;%% ------------------ Smooth Duty Cycle Output ------------------&lt;/p&gt;&lt;p&gt;alpha = 0.2; % smoothing factor&lt;/p&gt;&lt;p&gt;D_out = alpha*swarm.gBest + (1-alpha)*D_out_prev;&lt;/p&gt;&lt;p&gt;D_out_prev = D_out;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;end&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;function D_out = PSO_MPPT_PV_Stable(Vpv, Ipv)&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category>Helper</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=491/optimization-technique-adapt-properly-execution-typhoon</guid>
<pubDate>Sat, 27 Sep 2025 13:29:01 +0000</pubDate>
</item>
<item>
<title>Signed Integer to 32-bit Boolean Conversion in Typhoon HIL</title>
<link>https://typhoon-hil.com/forum/?qa=487/signed-integer-to-32-bit-boolean-conversion-in-typhoon-hil</link>
<description>&lt;p data-start=&quot;195&quot; data-end=&quot;300&quot;&gt;Hi,&lt;br&gt;I&#039;m trying to convert both positive and negative integers to 32-bit binary using booleans in Typhoon HIL.&lt;/p&gt;&lt;p data-start=&quot;302&quot; data-end=&quot;481&quot;&gt;The &lt;strong data-start=&quot;306&quot; data-end=&quot;323&quot;&gt;Boolean Split&lt;/strong&gt; works fine for unsigned integers, but when I input negative values, all outputs turn to zero.&lt;/p&gt;&lt;p data-start=&quot;483&quot; data-end=&quot;616&quot;&gt;Could you please suggest a way to convert &lt;strong data-start=&quot;525&quot; data-end=&quot;544&quot;&gt;signed integers&lt;/strong&gt; (including negatives) into 32-bit &lt;strong data-start=&quot;579&quot; data-end=&quot;605&quot;&gt;boolean representation&lt;/strong&gt; correctly?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category>Software</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=487/signed-integer-to-32-bit-boolean-conversion-in-typhoon-hil</guid>
<pubDate>Thu, 25 Sep 2025 10:21:41 +0000</pubDate>
</item>
<item>
<title>ISO 15118-20 integration with EV digital twin package</title>
<link>https://typhoon-hil.com/forum/?qa=482/iso-15118-20-integration-with-ev-digital-twin-package</link>
<description>May i kindly inquire from the community, the current predicament i am facing is that the exisiting EV digital twin package is protected and unable to look under the mask to access the sub systems and within it applies the ISO 15118-2 communication protocol. &lt;br /&gt;
&lt;br /&gt;
I am hoping to have a work around to implement a -20 version instead. any advice on this matter ? &lt;br /&gt;
&lt;br /&gt;
Much obliged~</description>
<category>Communication protocols</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=482/iso-15118-20-integration-with-ev-digital-twin-package</guid>
<pubDate>Mon, 22 Sep 2025 09:31:31 +0000</pubDate>
</item>
<item>
<title>Problem with login on TyphoonSim</title>
<link>https://typhoon-hil.com/forum/?qa=474/problem-with-login-on-typhoonsim</link>
<description>&lt;div style=&quot;box-sizing: border-box; font-size: 14px; line-height: 1.5rem; font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; margin-bottom: 0px !important;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-top: 0px; margin-right: 0px; margin-left: 0px; line-height: 1.5rem; border: none; background: none; margin-bottom: 0px !important; box-shadow: none !important;&quot;&gt;I am trying to log in to TyphoonSim, but the following error is occurring: Login failed! [SSL: CERTIFICATE_VERIFY_FAILED] certificate verification failed: unable to get local issuer certificate (_ssl.c:1002) Please check your internet connection. How can I resolve this? I have already tried some things, like updating Windows, disabling antivirus... nothing worked.&lt;/p&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;</description>
<category>TyphoonSim</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=474/problem-with-login-on-typhoonsim</guid>
<pubDate>Thu, 18 Sep 2025 07:40:22 +0000</pubDate>
</item>
<item>
<title>KWh calculation</title>
<link>https://typhoon-hil.com/forum/?qa=473/kwh-calculation</link>
<description>If I like to obtain the energy consumed (KWh) in three phase circuit with load under a particular time period. Then how would i will be able to that.</description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=473/kwh-calculation</guid>
<pubDate>Thu, 18 Sep 2025 07:30:19 +0000</pubDate>
</item>
<item>
<title>How to use the VBR PMSM in non-linear mode?</title>
<link>https://typhoon-hil.com/forum/?qa=471/how-to-use-the-vbr-pmsm-in-non-linear-mode</link>
<description>&lt;p&gt;&lt;span style=&quot;color:#111111; font-family:Roboto,Helvetica,sans-serif; font-size:14px&quot;&gt;I am trying to create a simulation using a non-linear PMSM VBR in TyphoonSim, but when I try to use this model in non-linear mode to use the LUTs of flux vs current, TyphoonSim gives the following error: Validation was not completed successfully! Some components in this schematic aren&#039;t available for TyphoonSim simulation. For more information, check the model information dialog. The model in question is the PMSM VBR.&lt;/span&gt;&lt;/p&gt;</description>
<category>TyphoonSim</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=471/how-to-use-the-vbr-pmsm-in-non-linear-mode</guid>
<pubDate>Fri, 12 Sep 2025 11:17:47 +0000</pubDate>
</item>
<item>
<title>How to use lookup tables in TyphonSim for non-linear PMSM?</title>
<link>https://typhoon-hil.com/forum/?qa=468/how-to-use-lookup-tables-in-typhonsim-for-non-linear-pmsm</link>
<description>&lt;p&gt;&lt;span style=&quot;background-color:#f0f3ff; color:#3c51b4; font-family:Roboto,Helvetica,sans-serif; font-size:18px; white-space-collapse:preserve&quot;&gt;I want to simulate a non-linear PMSM, but my model is not working. The electromechanical torque is completely wrong. Does anyone have an example of a model with lookup tables to send me?&lt;/span&gt;&lt;/p&gt;</description>
<category>TyphoonSim</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=468/how-to-use-lookup-tables-in-typhonsim-for-non-linear-pmsm</guid>
<pubDate>Tue, 09 Sep 2025 06:44:45 +0000</pubDate>
</item>
<item>
<title>Typhoonheck HIL 604 and uGrid DSP Interface 2.1 Compatibility</title>
<link>https://typhoon-hil.com/forum/?qa=463/typhoonheck-hil-604-and-ugrid-dsp-interface-compatibility</link>
<description>&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;Hello Typhoon HIL Team,&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;I have a question regarding the compatibility of a legacy interface board with a newer HIL device.&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;I currently own a&amp;nbsp;&lt;span style=&quot;font-weight:600&quot;&gt;Typhoon HIL 604&lt;/span&gt;&amp;nbsp;device. In our lab, we also found two older interface board, the&amp;nbsp;&lt;span style=&quot;font-weight:600&quot;&gt;Typhoon HIL 3-DSP uGrid DSP Interface 2.1&lt;/span&gt;&amp;nbsp;and &lt;strong&gt;one single DSP&amp;nbsp;&lt;span style=&quot;font-weight:600&quot;&gt;Interface&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-weight:600&quot;&gt;&amp;nbsp;&lt;/span&gt;.&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;From the documentation I&#039;ve found online, the uGrid DSP Interface is frequently mentioned alongside the&amp;nbsp;&lt;span style=&quot;font-weight:600&quot;&gt;Typhoon HIL 602 and 404&lt;/span&gt;&amp;nbsp;device. This has led to some uncertainty about whether it is safe and functionally compatible to connect this specific interface board to our&amp;nbsp;&lt;span style=&quot;font-weight:600&quot;&gt;HIL 604&lt;/span&gt;.&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;Could you please clarify:&lt;/p&gt;&lt;ol start=&quot;1&quot; style=&quot;color:#0f1115; font-family:quote-cjk-patch,Inter,system-ui,-apple-system,BlinkMacSystemFont,&amp;quot;Segoe UI&amp;quot;,Roboto,Oxygen,Ubuntu,Cantarell,&amp;quot;Open Sans&amp;quot;,&amp;quot;Helvetica Neue&amp;quot;,sans-serif; margin:16px 0px; padding-left:18px&quot;&gt;&lt;li&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 0px;&quot;&gt;Are the&amp;nbsp;&lt;span style=&quot;font-weight:600&quot;&gt;3-DSP uGrid DSP Interface 2.1&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;one single DSP&amp;nbsp;Interface&lt;/strong&gt;&amp;nbsp;ophysically and electrically compatible with the&amp;nbsp;&lt;span style=&quot;font-weight:600&quot;&gt;Typhoon HIL 604&lt;/span&gt;?&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;margin-top: 6px;&quot;&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 0px;&quot;&gt;If they are compatible, are any specific firmware updates, jumper settings, or configuration steps required on the HIL 604 or the interface board itself for proper operation?&lt;/p&gt;&lt;/li&gt;&lt;li style=&quot;margin-top: 6px;&quot;&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 0px;&quot;&gt;If they are&amp;nbsp;&lt;em&gt;not&lt;/em&gt;&amp;nbsp;compatible, what are the risks (e.g., potential for damage), and what would be the recommended interface solution for the HIL 604 for similar applications?&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;Any guidance or pointers to relevant documentation would be greatly appreciated.&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;Thank you for your time and support.&lt;/p&gt;&lt;p class=&quot;ds-markdown-paragraph&quot; style=&quot;margin: 16px 0px; color: rgb(15, 17, 21); font-family: quote-cjk-patch, Inter, system-ui, -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Oxygen, Ubuntu, Cantarell, &amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, sans-serif;&quot;&gt;Best regards,&lt;/p&gt;&lt;div&gt;&lt;/div&gt;</description>
<category>Hardware</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=463/typhoonheck-hil-604-and-ugrid-dsp-interface-compatibility</guid>
<pubDate>Mon, 08 Sep 2025 07:33:48 +0000</pubDate>
</item>
<item>
<title>Support Request – Noisy ADC Results with Typhoon HIL 101 and TI F28379D</title>
<link>https://typhoon-hil.com/forum/?qa=455/support-request-noisy-adc-results-with-typhoon-hil-f28379d</link>
<description>&lt;p&gt;I am facing an issue with the HIL 101 ADC output while measuring three-phase voltages and currents (40.82 V phase RMS, 60 Hz) via Simulink. Despite configuring scaling, offset, and filtering as per the documentation, the ADC signals appear noisy and step-like rather than clean sine waves. I would appreciate your advice on the correct ADC sampling strategy, the potential need for external RC filtering, and any recommended settings or references for this setup.&lt;br&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=8778693924507020668&quot; style=&quot;height:199px; width:600px&quot;&gt;&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=11239647138236729427&quot; style=&quot;height:327px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Hardware</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=455/support-request-noisy-adc-results-with-typhoon-hil-f28379d</guid>
<pubDate>Fri, 29 Aug 2025 06:59:32 +0000</pubDate>
</item>
<item>
<title>Why are the currents on my interleaved converter not balanced?</title>
<link>https://typhoon-hil.com/forum/?qa=452/why-are-the-currents-on-interleaved-converter-not-balanced</link>
<description>&lt;p&gt;I have an interleaved buck converter with 4 legs. Same duty cycle is provided to all the converter legs and I make sure to have a proper phase shift between carriers. I use one PWM Modulator component to generate all the PWMs and then I use the VHIL digital IO loopback to send the PWMs to the digital inputs. I use switch-level GDS oversampling.&lt;/p&gt;&lt;p&gt;When running a VHIL simulation, I get the expected results.&lt;/p&gt;&lt;p&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=2388209018738319615&quot; style=&quot;height:445px; width:600px&quot;&gt;&lt;/p&gt;&lt;p&gt;But when I run the real-time simulation, with physical IO loopback, the currents are very unbalanced. Why does this happen?&lt;br&gt;&lt;img alt=&quot;&quot; src=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=3310721571279845370&quot; style=&quot;height:445px; width:600px&quot;&gt;&lt;/p&gt;</description>
<category>Knowledge Base</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=452/why-are-the-currents-on-interleaved-converter-not-balanced</guid>
<pubDate>Mon, 25 Aug 2025 07:32:07 +0000</pubDate>
</item>
<item>
<title>What is wrong that I get this warning?</title>
<link>https://typhoon-hil.com/forum/?qa=450/what-is-wrong-that-i-get-this-warning</link>
<description>Bad voltage loop consisting of Idc, Three Phase Inverter1, Vs1 detected. The Basic Electrical.Short Circuit: Three Phase Inverter1.Im_short_dc inside Three Phase Inverter1 is degenerated, for the switch permutation (1 1 1 1 1 1).&lt;br /&gt;
&lt;br /&gt;
Three Phase Inverter modell settings: Internal modulator and fixed carrier frequency, according to the basics tutorial</description>
<category>Modeling</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=450/what-is-wrong-that-i-get-this-warning</guid>
<pubDate>Mon, 25 Aug 2025 07:17:16 +0000</pubDate>
</item>
<item>
<title>Problem with usb connectivity</title>
<link>https://typhoon-hil.com/forum/?qa=446/problem-with-usb-connectivity</link>
<description>I currently trying to connect the HIL101 to my Typhoon Control Center through either the USB or Ethernet port. At first I was using the 2025.2 and 2025.3 versions (tried with both USB and Ethernet) but I could never establish connectivity between the HIL101 and the Control Center, the device was never been found. Then I switched to the 2025.1 version and it only worked with the USB, after a month it stoped connecting (Unable to detect any HIL device). Here are a few strange behaviour that I observed:&lt;br /&gt;
- When the 2025.1 was not working and the USB is connected, just going to Device Manager would crash the program (Not responding) consistently. But if there is no USB connection, Device manager works just fine&lt;br /&gt;
&lt;br /&gt;
- The 2025.2 and 2025.3 also have this strange crashing behaviour when I connect USB&lt;br /&gt;
&lt;br /&gt;
Things I have done:&lt;br /&gt;
- Uninstall and reinstall the program with different versions&lt;br /&gt;
&lt;br /&gt;
- Logout and login of my account&lt;br /&gt;
&lt;br /&gt;
- Relog my hardware lisense&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Update: I tried connecting to a different HIL101 device and everything works just fine with all 3 versions. I suspect this is a hardware issue, how may I resolve this?&lt;br /&gt;
&lt;br /&gt;
Thanks</description>
<category>Hardware</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=446/problem-with-usb-connectivity</guid>
<pubDate>Wed, 20 Aug 2025 08:08:31 +0000</pubDate>
</item>
<item>
<title>SPI slave - no response to write/read frames</title>
<link>https://typhoon-hil.com/forum/?qa=447/spi-slave-no-response-to-write-read-frames</link>
<description>&lt;p&gt;I am testing the SPI slave component on my HIL404 system. I have connected the master SPI to the GPIO connector on pins1-4 as described in the manual (&lt;a href=&quot;https://www.typhoon-hil.com/documentation/typhoon-hil-software-manual/References/spi_protocol.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://www.typhoon-hil.com/documentation/typhoon-hil-software-manual/References/spi_protocol.html&lt;/a&gt;). In the HIL SCADA, I can visualise the HIL GPIO pins and can see the SCLK, MOSI and CS pin toggling as expected. However the SPI slave is never transmitting a response on the SPI MISO pin.&lt;/p&gt;&lt;p&gt;By toggling the SPI reset pin on the SPI slave component, I can see the MISO pin going to high impedance. So the component does seem to be running. The SPI status pin remains at &#039;0&#039;, so there is no error detected by the component.&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Is there somthing additional apart from the message structure and registers that needs to be defined to get a SPI response?&lt;/li&gt;&lt;li&gt;Is there a way to test the logic in the message structure to see what the component is actually receiving as message?&lt;/li&gt;&lt;li&gt;Is there something in the Mask editor that needs to be edited?&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;</description>
<category>Communication protocols</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=447/spi-slave-no-response-to-write-read-frames</guid>
<pubDate>Wed, 20 Aug 2025 08:08:25 +0000</pubDate>
</item>
<item>
<title>Core Coupling problem</title>
<link>https://typhoon-hil.com/forum/?qa=442/core-coupling-problem</link>
<description>I have two single-phase inverters to form a four-leg inverter, but when I use core coupling to add a boost converter to the DC bus, the system behaves as if it were open-circuited. The inverter&amp;#039;s current is zero, and the bus voltage explodes. Without the core coupling, the system works, but only with HIL 604. I&amp;#039;d like to use it with 404. Does anyone have any suggestions?</description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=442/core-coupling-problem</guid>
<pubDate>Tue, 12 Aug 2025 06:44:12 +0000</pubDate>
</item>
<item>
<title>Does Typhoon HIL support XCP protocol?</title>
<link>https://typhoon-hil.com/forum/?qa=438/does-typhoon-hil-support-xcp-protocol</link>
<description>&lt;p&gt;&lt;span style=&quot;font-size:14px&quot;&gt;Yes. Typhoon HIL supports XCP over&amp;nbsp;CAN and ETH.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style=&quot;font-size:14px&quot;&gt;Note:&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;font-size:14px&quot;&gt;XCP over ETH and CAN is supported from version THCC 2025.4.&amp;nbsp;While on previous THCC versions only&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://ticket.typhoon-hil.com/kb/faq.php?id=352&quot;&gt;XCP over CAN&lt;/a&gt;&amp;nbsp;is supported.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;XCP in the Typhoon HIL toolchain&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;XCP master is supported in the Typhoon HIL toolchain in HIL SCADA, via the Python library &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/christoph2/pyxcp&quot;&gt;pyxcp&lt;/a&gt;, while the parsing and importing of the a2l file is supported via the Python library &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/christoph2/pyA2L&quot;&gt;pya2l&lt;/a&gt;. XCP slave is not supported in the Typhoon HIL toolchain.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Attached below is an example HIL SCADA panel file, where you can open the widget properties and write the Python code you want to execute.&amp;nbsp;For creating properly configurations, you should use xcp-profile utility to convert a legacy .json/.toml file:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;&amp;nbsp;xcp-profile convert -c &amp;lt;YOUR_FILE_NAME&amp;gt;.json -o pyxcp_conf.py&amp;nbsp;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;Then you can import the libraries and modules for XCP communication and other libraries.&lt;/p&gt;&lt;pre&gt;import sys 
from time import sleep 
from pyxcp.cmdline import ArgumentParser 
from pyxcp.daq_stim import DaqToCsv, DaqList, DaqRecorder&lt;/pre&gt;&lt;p&gt;To access additional Python scripts in your simulation, you will need to append the path for the script to the system path.&lt;/p&gt;&lt;pre&gt;sys.path.append(“d:/path/to/python/file”)
from xcp_script import XCPclass, open_db_session, create_measurement_list, parse_csv&lt;/pre&gt;&lt;p&gt;In order to parse the a2l file to retrieve the necessary information, the a2l file must be imported into an opened database. That database need to be open just once and you can do that by calling open_db_session() function before initializing anything:&amp;nbsp;&lt;/p&gt;&lt;pre&gt;db, session = open_db_session(a2l_file_path)&lt;/pre&gt;&lt;p&gt;The general idea is to acquire data from a device (ECU or simulator), process the data (either online or offline), and then store it or handle it in different formats. A DAQ list is a collection of measurements and data points to be recorded during the DAQ process. The allocation and optimization of ODTs is done automatically by pyXCP. For demonstration, we initialize DAQ list as follows:&amp;nbsp;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family:Source Code Pro,Monaco,Consolas,monospace,serif&quot;&gt;&lt;span style=&quot;font-size:14px&quot;&gt;daq_list = [DaqList(
    name=&quot;test&quot;,
    event_num=2,
    stim=False,
    enable_timestamps=False,
    measurements=daq_measurements,
    priority=0,
    prescaler=1
)]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:&amp;quot;Source Code Pro&amp;quot;,Monaco,Consolas,monospace,serif; font-size:14px&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;The data acquired can be stored in different formats:&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;CSV: For simple tabular data XMRAW:&amp;nbsp;&lt;/li&gt;&lt;li&gt;A proprietary format for pyXCP to record raw DAQ data&amp;nbsp;&lt;/li&gt;&lt;li&gt;Parquet, MDF, SQLite: Other formats available for processing and storing data&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The measurement parameter should contain a list of the desired measurements for your DAQ process. To construct this list, you can simply create a list of measurement name and then call the &lt;em&gt;create_measurement_list &lt;/em&gt;function. This function will automatically generate the compatible list of measurements that can be used in the measurements parameter.&amp;nbsp;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family:Source Code Pro,Monaco,Consolas,monospace,serif&quot;&gt;&lt;span style=&quot;font-size:14px&quot;&gt;measurement_names = [&quot;channel_d&quot;, &quot;TestDWord_501&quot;, &quot;TestDWord_502&quot;, &quot;TestWord_992&quot;, &quot;TestWord_991&quot;, &quot;TestWord_989&quot;]
daq_measurements = create_measurement_list(measurement_names, session)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family:&amp;quot;Source Code Pro&amp;quot;,Monaco,Consolas,monospace,serif; font-size:14px&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;The flexible callback mechanism in pyXCP allows users to interact with the DAQ process in a more modular and customizable way using policies. This flexibility makes it easier for users to integrate DAQ functionality into their workflow according to their specific needs. Before initializing the master, first we need to initialize policy that we will use:&amp;nbsp;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family:Source Code Pro,Monaco,Consolas,monospace,serif&quot;&gt;&lt;span style=&quot;font-size:14px&quot;&gt;daq_parser = DaqToCsv(daq_list)&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;Then, we need to make an instance of ArgumentParser class which is used to set up the environment for running the DAQ process. Crete a master as follows:&amp;nbsp;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family:Source Code Pro,Monaco,Consolas,monospace,serif&quot;&gt;&lt;span style=&quot;font-size:14px&quot;&gt;ap = ArgumentParser()
with ap.run(policy=daq_parser) as xm:
    xcp = XCPclass(master=xm)&lt;/span&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;p&gt;After that, you can use the functions defined in the pyxcp library &lt;em&gt;(connect, disconnect, upload, download)&lt;/em&gt; to connect and get additional info about the slave device. For unlocking a slave resource, you can implement your own function&amp;nbsp;as it is done in the XCP script attached below if you know the algorithm. Another option is to provide the DLL file for unlocking after calling the &lt;em&gt;get_seed_and_unlock &lt;/em&gt;function.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Important note&lt;/strong&gt;: If you wish to use the DLL method for unlocking the resource, you will need to modify the pyxcp_conf.py file, where you need to uncomment and set the &lt;em&gt;custom_dll_loader &lt;/em&gt;parameter.&lt;/p&gt;&lt;p&gt;This part of code is an example of how to use the functions defined in pyxcp and implement the xcp_script. The function &lt;em&gt;get_seed_and_unlock &lt;/em&gt;gets the XCP seed key and unlocks the specified resource.&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family:Source Code Pro,Monaco,Consolas,monospace,serif&quot;&gt;&lt;span style=&quot;font-size:14px&quot;&gt;xcp = XCPclass(master=xm)
timestamp_enable = False
conn = xm.connect()
mode_info = xm.getCommModeInfo()
gid = xm.getId(0x1)
status = xm.getStatus()
xm.synch()

xcp.get_seed_and_unlock(xm, 0x04, dll_path)
DAQ_proc_info = xm.getDaqProcessorInfo()
DAQ_res_info = xm.getDaqResolutionInfo()
DAQ_info = xm.getDaqInfo()
for i in range(0, len(DAQ_info[&quot;channels&quot;])):
    DAQ_event_info = xm.getDaqEventInfo(i)
    upload_rcv = xm.upload(DAQ_event_info.eventChannelNameLength)

xcp.get_seed_and_unlock(xm, 0x01, dll_path)
scp = xm.setCalPage(0x83, 0, 0)

xcp.build_checksum_for_slave(xm, session)
xcp.set_mta_and_build_checksum(xm, session)
for i in range(0, DAQ_proc_info.maxEventChannel - 1):
    DAQ_event_info = xm.getDaqEventInfo(i)
    upload_rcv = xm.upload(DAQ_event_info.eventChannelNameLength)
pwm = xcp.get_measurement(xm, &quot;PWM&quot;, session)
print(pwm)
pwm_filter = xcp.get_measurement(xm, &quot;PWMFiltered&quot;, session)
print(pwm_filter)

value = 5
PWM_Level = xcp.get_characteristic_value(xm, &quot;PWM_Level&quot;, session)
print(PWM_Level)

xcp.set_characteristic_value(xm, value, &quot;PWM_Level&quot;, session)

PWM_Level = xcp.get_characteristic_value(xm, &quot;PWM_Level&quot;, session)
print(PWM_Level)

daq_parser.setup()
daq_parser.start()
sleep(1)
daq_parser.stop()
session.close()
xm.disconnect()&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;em&gt;get_measurement &lt;/em&gt;uploads the specified measurement value from slave to master. &lt;em&gt;set_characteristic_value &lt;/em&gt;downloads the specified characteristic value from master to slave. &lt;em&gt;get_characteristic_value &lt;/em&gt;uploads the specified characteristic value from slave to master.&lt;/p&gt;&lt;p&gt;Once the DAQ sequence is started, the results are stored in the .csv file in our example. You can parse that file using our custom function as follows:&amp;nbsp;&lt;/p&gt;&lt;pre&gt;&lt;span style=&quot;font-family:Source Code Pro,Monaco,Consolas,monospace,serif&quot;&gt;&lt;span style=&quot;font-size:14px&quot;&gt;data_dict = parse_csv(&quot;test.csv&quot;)
for i in range(len(data_dict)):
    print(data_dict[measurement_names[i]])&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;Example XCP scripts are attached. Feel free to adapt the scripts provided to your needs.&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=13536451398907822172&quot;&gt;XCP_on_CAN_script&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=16624735235799792504&quot;&gt;XCP_on_ETH_script&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Example HIL SCADA panel file:&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=14989128700179562455&quot;&gt;SCADA_example&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Example of config file:&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=2149648188116924395&quot;&gt;config_file_with_dll&lt;/a&gt;&lt;/p&gt;</description>
<category>Knowledge Base</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=438/does-typhoon-hil-support-xcp-protocol</guid>
<pubDate>Tue, 05 Aug 2025 13:50:02 +0000</pubDate>
</item>
<item>
<title>Does Typhoon HIL support UDS on CAN protocol?</title>
<link>https://typhoon-hil.com/forum/?qa=436/does-typhoon-hil-support-uds-on-can-protocol</link>
<description>&lt;p&gt;Yes&lt;strong&gt;,&amp;nbsp;&lt;/strong&gt;Typhoon HIL supports UDS on CAN protocol.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;1. Introduction&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;The Unified Diagnostic Services (UDS) communication protocol is a standardized diagnostic protocol used in the automotive industry for communicating with and diagnosing electronic control units (ECUs) in vehicles. It can operate over Controller Area Network (CAN) bus, a widely-used communication network in modern vehicles.&lt;/p&gt;&lt;p&gt;Unified Diagnostic Services (UDS) is a client-server protocol commonly used in the automotive industry for diagnostic communication between a client (usually a diagnostic tool or tester) and a server (an electronic control unit or ECU within a vehicle). In this context:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Client: The client, typically a diagnostic tool or software application, initiates communication with the ECU by sending diagnostic requests and commands.&lt;/li&gt;&lt;li&gt;Server: The server, which is the ECU within the vehicle, responds to the client&#039;s requests, providing diagnostic information, performing actions requested by the client, and managing the internal functions of the ECU.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;strong&gt;2. UDS in Typhoon HIL toolchain&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;UDS Client is supported in the Typhoon HIL toolchain in HIL SCADA, via the Python library&amp;nbsp;&lt;a rel=&quot;nofollow&quot; href=&quot;http://github.com/pylessard/python-udsoncan&quot;&gt;udsoncan&lt;/a&gt;.&amp;nbsp;Parsing and importing of CDD files is done with the Python library&amp;nbsp;&lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;https://github.com/cantools/cantools&quot;&gt;cantools&lt;/a&gt;. UDS Server is not supported in the Typhoon HIL toolchain.&lt;/p&gt;&lt;p&gt;Attached below is an example HIL SCADA panel file, where you can open the widget properties and write the Python code you want to execute.&lt;/p&gt;&lt;p&gt;First, import the libraries and modules for UDS communication and other libraries.&lt;/p&gt;&lt;pre&gt;import isotp
import cantools
from udsoncan.connections import *
from udsoncan.client import Client
from udsoncan import DataIdentifier, IOValues
from udsoncan.configs import default_client_config
import os.path, os&lt;/pre&gt;&lt;p&gt;To access additional Python scripts in your simulation, you will need to append the path for the script to the system path.&lt;/p&gt;&lt;p&gt;sys.path.append(&quot;d:/path/to/python/file&quot;)&lt;br&gt;from uds_script import UDSclass, create_config_dict&lt;/p&gt;&lt;p&gt;The CDD file plays a crucial role in defining the communication parameters and structure for diagnostic communication between a diagnostic tool (such as a scan tool or diagnostic tester) and the electronic control unit (ECU) within a vehicle. To load this file, we use the&amp;nbsp;&lt;em&gt;cantools&amp;nbsp;&lt;/em&gt;library and the&amp;nbsp;&lt;em&gt;create_config_dict&amp;nbsp;&lt;/em&gt;function:&lt;/p&gt;&lt;pre&gt;database_uds_example = cantools.db.load_file(uds_example_path)
config = dict(default_client_config)
config = create_config_dict(database=database_uds_example, config=config)&lt;/pre&gt;&lt;p&gt;To initialize the UDS Client we need to define the link layer, network layer, transport layer, and the interface between the application and transport layer:&lt;/p&gt;&lt;pre&gt;bus = VectorBus(channel=0, bitrate=500000, app_name=&quot;UDSsim&quot;) - Link Layer (CAN protocol)
tp_addr = isotp.Address(isotp.AddressingMode.Normal_11bits, txid=0x700, rxid=0x600)- Network layer
stack = isotp.CanStack(bus=bus, address=tp_addr, params=isotp_params) - Network/Transport layer (IsoTP protocol)
conn = PythonIsoTpConnection(stack) - interface between Application and Transport layer&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;After we have created the connection layers and config parameters, we can create the UDS Client:&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;pre&gt;with Client(conn=conn, request_timeout=3, config=config) as client:&lt;/pre&gt;&lt;p&gt;After that, we can use the functions defined in the udsoncan library&amp;nbsp;&lt;em&gt;(open, close, tester_present)&amp;nbsp;&lt;/em&gt;to communicate with the server and get additional information.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Here is an example how to communcate with the server:&lt;/p&gt;&lt;pre&gt;# Read and write data example for did = &quot;Windows&quot;
 uds.read_data(client=client, database=database_uds_example, did_ident=0x81)

 uds.write_data(client, database_uds_example, name=&quot;Windows&quot;, value=(0x04, 0x03, 0x02, 0x01))

 uds.read_data(client, database_uds_example, did_ident=0x81)

 uds.io_control_write(client, database_uds_example, name=&quot;Windows&quot;, values=(0x08, 0x07, 0x06, 0x05))&lt;/pre&gt;&lt;p&gt;The&amp;nbsp;&lt;em&gt;read_data&lt;/em&gt;&amp;nbsp;function reads the data from a specific ECU data identifier, while the&amp;nbsp;&lt;em&gt;write_data&lt;/em&gt;&amp;nbsp;function writes data to a specific ECU data identifier.&lt;/p&gt;&lt;p&gt;An example UDS script is attached. Feel free to adapt the scripts provided to your needs.&lt;a rel=&quot;nofollow&quot; href=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=12487893191047436312&quot;&gt;uds_script&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://typhoon-hil.com/forum/?qa=blob&amp;amp;qa_blobid=1010900618394658647&quot;&gt;uds_example&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category>Knowledge Base</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=436/does-typhoon-hil-support-uds-on-can-protocol</guid>
<pubDate>Tue, 05 Aug 2025 06:47:52 +0000</pubDate>
</item>
<item>
<title>Exporting data real time in VHIL mode or TyphoonSim</title>
<link>https://typhoon-hil.com/forum/?qa=435/exporting-data-real-time-in-vhil-mode-or-typhoonsim</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
I am trying to model a DC motor in Typhoon in either VHIL or TyphoonSim. I want to export the Electrical Torque of the motor in real time to import in a Matlab Simscape model for visualization of the motor. How can I do this transfer? Ideally I would like to do this via TCP/UDP, as is possible in a real HIL device.&lt;br /&gt;
&lt;br /&gt;
I thought of streaming the data in SCADA API and reading the file using a custom script. If there are any easier methods of achieving this please let me know.&lt;br /&gt;
&lt;br /&gt;
Thanks for your answers in advance!</description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=435/exporting-data-real-time-in-vhil-mode-or-typhoonsim</guid>
<pubDate>Fri, 01 Aug 2025 11:31:24 +0000</pubDate>
</item>
<item>
<title>6-phase PMSM with single isolated neutral point</title>
<link>https://typhoon-hil.com/forum/?qa=434/6-phase-pmsm-with-single-isolated-neutral-point</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
Does anyone have the Typhoon model of PMSM (symmetrical or assymetrical) with a six-phase star-wound stator and single isolated neutral point?</description>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=434/6-phase-pmsm-with-single-isolated-neutral-point</guid>
<pubDate>Fri, 01 Aug 2025 09:59:48 +0000</pubDate>
</item>
</channel>
</rss>