{"id":465,"date":"2019-10-02T20:29:18","date_gmt":"2019-10-02T11:59:18","guid":{"rendered":"http:\/\/people.utm.my\/razman-ayop\/?p=465"},"modified":"2020-07-30T10:45:40","modified_gmt":"2020-07-30T02:15:40","slug":"emulating-the-sample-time-of-hardware-platform-in-simulation","status":"publish","type":"post","link":"https:\/\/people.utm.my\/razman-ayop\/emulating-the-sample-time-of-hardware-platform-in-simulation\/","title":{"rendered":"Emulating the Sample Time of Hardware Platform In Simulation"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-468\" src=\"https:\/\/people.utm.my\/razman-ayop\/wp-content\/uploads\/sites\/2074\/2019\/12\/aaa.jpg\" alt=\"\" width=\"517\" height=\"508\" srcset=\"https:\/\/people.utm.my\/razman-ayop\/wp-content\/uploads\/sites\/2074\/2019\/12\/aaa.jpg 517w, https:\/\/people.utm.my\/razman-ayop\/wp-content\/uploads\/sites\/2074\/2019\/12\/aaa-300x295.jpg 300w\" sizes=\"(max-width: 517px) 100vw, 517px\" \/><\/p>\n<p><strong>How to Set the Sample Time for Power Converter<\/strong><\/p>\n<ol>\n<li>Click Simulation (Upper Site)&gt; Model Configuration Parameter&gt;Solver&gt;Solver Option=Variable Step&gt; Additional Options: Max step size= 1e-6<\/li>\n<li>1e-6 is the standard. The minimum \u201cMax step size\u201d is:<br \/>\nMax Step Size &lt;= 1 \/ Switching Frequency \/ Sample In A Period<\/li>\n<li>Sample in a period is recommended at 30. Higher value give better results but require high computing power.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-466\" src=\"https:\/\/people.utm.my\/razman-ayop\/wp-content\/uploads\/sites\/2074\/2019\/12\/ggg.jpg\" alt=\"\" width=\"463\" height=\"322\" srcset=\"https:\/\/people.utm.my\/razman-ayop\/wp-content\/uploads\/sites\/2074\/2019\/12\/ggg.jpg 463w, https:\/\/people.utm.my\/razman-ayop\/wp-content\/uploads\/sites\/2074\/2019\/12\/ggg-300x209.jpg 300w\" sizes=\"(max-width: 463px) 100vw, 463px\" \/><\/li>\n<\/ol>\n<p><strong>How to Set the Sample Time for Controller<\/strong><\/p>\n<ol>\n<li>Group all the controller into a subsystem.<\/li>\n<li>Right click subsystem<\/li>\n<li>Block Parameter (Subsystem)<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-467\" src=\"https:\/\/people.utm.my\/razman-ayop\/wp-content\/uploads\/sites\/2074\/2019\/12\/aaaaassdcsv.jpg\" alt=\"\" width=\"284\" height=\"297\" \/><\/li>\n<li>Mark \u201cTreat as atomic unit\u201d<\/li>\n<li>Set the sample time to your desired instead of -1<\/li>\n<\/ol>\n<p>There will be error since the block inside the subsystem used sample time 0 (simulation sample time). It need to be set to -1 (inherited).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Set the Sample Time for Power Converter Click Simulation (Upper Site)&gt; Model Configuration Parameter&gt;Solver&gt;Solver Option=Variable Step&gt; Additional Options: Max step size= 1e-6 1e-6 is the standard. The minimum \u201cMax step size\u201d is: Max Step Size &lt;= 1 \/ Switching Frequency \/ Sample In A Period Sample in a period is recommended at 30. [&hellip;]<\/p>\n","protected":false},"author":24954,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[32],"tags":[],"class_list":["post-465","post","type-post","status-publish","format-standard","hentry","category-research-guidance"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/posts\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/users\/24954"}],"replies":[{"embeddable":true,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":1,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/posts\/465\/revisions"}],"predecessor-version":[{"id":469,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/posts\/465\/revisions\/469"}],"wp:attachment":[{"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/categories?post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/people.utm.my\/razman-ayop\/wp-json\/wp\/v2\/tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}