<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Typhoon HIL Forum - Recent questions and answers in Test Automation</title>
<link>https://typhoon-hil.com/forum/?qa=qa/test-automation</link>
<description>Powered by Question2Answer</description>
<item>
<title>Answered: KeyError: &#039;time_data_type&#039; in stub.py when stop_capture() is called</title>
<link>https://typhoon-hil.com/forum/?qa=432/keyerror-time_data_type-in-stub-when-stop_capture-called&amp;show=433#a433</link>
<description>&lt;p&gt;Hi&amp;nbsp;&lt;span style=&quot;color:#000000&quot;&gt;Wojciech,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#000000&quot;&gt;can you reproduce the same issue when latest SW &amp;nbsp;version&amp;nbsp;is used&lt;br&gt;(THCC 2025.2) ?&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category>Test Automation</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=432/keyerror-time_data_type-in-stub-when-stop_capture-called&amp;show=433#a433</guid>
<pubDate>Thu, 31 Jul 2025 08:09:33 +0000</pubDate>
</item>
<item>
<title>Answered: Does the THIL API support setting a fixed circular buffer size (FIFO overwrite) for captures?</title>
<link>https://typhoon-hil.com/forum/?qa=376/support-setting-fixed-circular-buffer-overwrite-captures&amp;show=378#a378</link>
<description>Hi,&lt;br /&gt;
&lt;br /&gt;
Currently, HIL API start_capture doesn&amp;#039;t support circular buffer behavior or size limiting.&lt;br /&gt;
&lt;br /&gt;
start_capture expects queue.Queue or list object as dataBuffer, so in theory custom container can be created (which implements list or Queue interface), with some additional logic like circular data buffer.</description>
<category>Test Automation</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=376/support-setting-fixed-circular-buffer-overwrite-captures&amp;show=378#a378</guid>
<pubDate>Thu, 03 Apr 2025 13:21:05 +0000</pubDate>
</item>
<item>
<title>Answered: Missing SchematicAPI get_model_init_code method</title>
<link>https://typhoon-hil.com/forum/?qa=349/missing-schematicapi-get_model_init_code-method&amp;show=355#a355</link>
<description>&lt;p&gt;Hi Radovan,&lt;/p&gt;&lt;p&gt;There is a way to do this by using &lt;strong&gt;mdl.set_ns_var()&lt;/strong&gt; and &lt;strong&gt;mdl.get_ns_var()&lt;/strong&gt; functions.&lt;/p&gt;&lt;p&gt;Let say your variable is named &lt;strong&gt;temp_var&lt;/strong&gt;. To read it you can call:&lt;/p&gt;&lt;p&gt;With&amp;nbsp;&lt;strong&gt;mdl.get_ns_var(&quot;temp_var&quot;)&lt;/strong&gt; you will get value of that variable.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Problem occurs when you want to change it. If you just call &lt;strong&gt;mdl.set_ns_var(&quot;temp_var&quot;, 10)&lt;/strong&gt; your variable will still be set on the previous value after compile. Reason for this is that during compilation model init is called and it will overwrite changed variable.&lt;/p&gt;&lt;div&gt;What you could do is to leave model init empty and than you will not face this problem, however if you try to compile it through schematic, you will get an error because there is no variable defined.&lt;/div&gt;&lt;div&gt;Better approach is to check first if variable already exists, in model init of course. Something like this:&lt;/div&gt;&lt;div&gt;&lt;strong&gt;if &quot;&lt;/strong&gt;&lt;strong&gt;temp_var&lt;/strong&gt;&lt;strong&gt;&quot; not in mdl.get_ns_vars():&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;temp_var&lt;/strong&gt;&lt;strong&gt; = 1&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;In this case you will be always able to load compile model through schematic, or through API. If you dont set ns varable, temp_var will be set to 1, but if you set with set_ns_var to, lets say 10, it will be 10.&lt;/div&gt;&lt;div&gt;Drawback of this is that you will not be able to read initial value, at least without compiling the model.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;</description>
<category>Test Automation</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=349/missing-schematicapi-get_model_init_code-method&amp;show=355#a355</guid>
<pubDate>Thu, 20 Feb 2025 15:04:32 +0000</pubDate>
</item>
<item>
<title>Answered: I keep getting exceptional errors, how do I solve this?</title>
<link>https://typhoon-hil.com/forum/?qa=351/i-keep-getting-exceptional-errors-how-do-i-solve-this&amp;show=352#a352</link>
<description>Hello,&lt;br /&gt;
&lt;br /&gt;
Do you have more information regarding this problem?</description>
<category>Test Automation</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=351/i-keep-getting-exceptional-errors-how-do-i-solve-this&amp;show=352#a352</guid>
<pubDate>Wed, 19 Feb 2025 09:25:04 +0000</pubDate>
</item>
<item>
<title>Answered: How to import plot from Matplotlib into PDF report in Typhoon Test IDE</title>
<link>https://typhoon-hil.com/forum/?qa=335/how-import-plot-from-matplotlib-into-pdf-report-typhoon-test&amp;show=336#a336</link>
<description>&lt;p&gt;Hi Laurin,&lt;/p&gt;&lt;p&gt;I&#039;m not sure which way you generated and exported your plots, but adding of the plots in &lt;em&gt;.png &lt;/em&gt;format should be possible using &lt;em&gt;attach_figure &lt;/em&gt;function from TyphoonTest API: &lt;a rel=&quot;nofollow&quot; href=&quot;https://www.typhoon-hil.com/documentation/typhoon-hil-typhoontest-library/api/typhoon.test.reporting.figures.attach_figure.html#typhoon.test.reporting.figures.attach_figure:~:text=attach_figure-,attach_figure,-%C2%B6&quot;&gt;documentation&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I&#039;ve never used that function with pdf reports, but I&#039;d expect it to work the same way it does for Allure reports.&lt;/p&gt;</description>
<category>Test Automation</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=335/how-import-plot-from-matplotlib-into-pdf-report-typhoon-test&amp;show=336#a336</guid>
<pubDate>Mon, 10 Feb 2025 14:50:40 +0000</pubDate>
</item>
<item>
<title>Answered: Typhoon Schematic (or any) API solution for multiple devices connected to the PC</title>
<link>https://typhoon-hil.com/forum/?qa=237/typhoon-schematic-any-solution-multiple-devices-connected&amp;show=238#a238</link>
<description>Hello Christian,&lt;br /&gt;
&lt;br /&gt;
Do you have both HIL devices connected to the same PC?</description>
<category>Test Automation</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=237/typhoon-schematic-any-solution-multiple-devices-connected&amp;show=238#a238</guid>
<pubDate>Wed, 20 Nov 2024 09:52:21 +0000</pubDate>
</item>
<item>
<title>Answered: Assistance Required for Integrating Reinforcement Learning Model with Typhoon HIL</title>
<link>https://typhoon-hil.com/forum/?qa=177/assistance-required-integrating-reinforcement-learning&amp;show=185#a185</link>
<description>Hi Bikas, welcome to the forum. Is your intention to use an actual HIL device in this project? Are RL model + LVRT comprising a controller model that you plan to load onto some DSP/hardware target?</description>
<category>Test Automation</category>
<guid isPermaLink="true">https://typhoon-hil.com/forum/?qa=177/assistance-required-integrating-reinforcement-learning&amp;show=185#a185</guid>
<pubDate>Mon, 28 Oct 2024 08:32:42 +0000</pubDate>
</item>
</channel>
</rss>