<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I send messages perodically using the NXP toolbox? in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948812#M3595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marius,&lt;/P&gt;&lt;P&gt;I'm using the following tools: Matlab R2016b, NXP_MBDToolbox_S32K1xx version 4.0.0 and the S32K144EVB-Q100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I intend to send 10 different messages all at once with a defined sample time. If you consider the bus load it is not possible to send 10 messages with a sample time of 1ms. In my model&amp;nbsp;the sample time varies. For example one time I'd like to send 10 messages the first with 1ms, &amp;nbsp;the second with 2ms, the third with three and so on. Next time&amp;nbsp;I'd like to send 5 messages with 2ms and 5 with 10ms. Every message should be sent&amp;nbsp;periodically with the defined sample time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2019 11:42:13 GMT</pubDate>
    <dc:creator>praktikant2fs35</dc:creator>
    <dc:date>2019-09-23T11:42:13Z</dc:date>
    <item>
      <title>How do I send messages perodically using the NXP toolbox?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948810#M3593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to send a couple of messages with the FCAN_Send block with a low&amp;nbsp; sample time (e.g. 1ms). I already tried to use a subsystem as atomic unit but depending on the number of blocks which were used in the simulink model the messages were sent only with a higher sample time. I also tried to use the Perodic_Interrupt_Timer as trigger. That worked very well but the number of channels is limited. Is it possible to trigger more than one subsystem with one Periodic_Interrupt_Timer? The Function_Call Split sadly causes an error. I tried to solve this issue by triggering a subsystem which contained ten Function_Call Generators that were used to trigger ten subsystems with the FCAN_Send block and&amp;nbsp; PIT_Interrupt_Enable_Disable blocks.&amp;nbsp; I managed to send ten different messages with the desired sample time. My solution is not very elagant and I don't really understand how the&amp;nbsp;&lt;SPAN&gt;PIT_Interrupt_Enable_Disable blocks work. So I'd like to know whether there is a easier solution to send the messages periodically with a desired sample time? Furthermore it would be interesting to know how to use the Periocic_Interrupt_Timer and the&amp;nbsp;PIT_Interrupt_Enable_Disable to trigger ten different subsystems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help on this issue would be highly appreciated! Thanks in advance!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2019 11:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948810#M3593</guid>
      <dc:creator>praktikant2fs35</dc:creator>
      <dc:date>2019-09-20T11:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send messages perodically using the NXP toolbox?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948811#M3594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/praktikant2fs3551.scw@zf.com"&gt;praktikant2fs3551.scw@zf.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all you didn't specified which MBDT toolbox or Matlab version or board (e.g S32K or MPC57xx) are you using.&lt;/P&gt;&lt;P&gt;However, let me get this straight: you want at some point in your application to start sending one&amp;nbsp; by one messages at 1ms between them? Or do you want to sent 10 messages, all at once at 1ms between those groups?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our toolboxes provides three PIT blocks (on MPC but is the same on S32K's LPIT):&lt;/P&gt;&lt;P&gt;1. PIT_Config - this block configures a PIT channel by setting the interval between interrupts in us or ticks. It also offers the possibility to start immediately after initialization the counter or to start at a certain point in your application by using the PIT_Counter_Start_Stop block.&lt;/P&gt;&lt;P&gt;2. PIT_Counter_Start_Stop - this block starts or stops the PIT channel counter. It the channel counter is stopped then no interrupt will be triggered either if it is active or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. PIT_Interrupt_Enable_Disable - As the name says this block enables or disables the interrupt. This means that the it only disables the interrupt, but the channel counter might still be active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically a PIT channel has a counter register. The PIT_Config configures the channel when to trigger an interrupt. The PIT_Counter_Start_Stop starts or stops the counter register while the PIT_Interrupt_Enable_Disable enables or disables if the interrupt should be triggered when the values from the counter matches the PIT config value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your reply,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2019 10:55:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948811#M3594</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-09-23T10:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send messages perodically using the NXP toolbox?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948812#M3595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marius,&lt;/P&gt;&lt;P&gt;I'm using the following tools: Matlab R2016b, NXP_MBDToolbox_S32K1xx version 4.0.0 and the S32K144EVB-Q100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I intend to send 10 different messages all at once with a defined sample time. If you consider the bus load it is not possible to send 10 messages with a sample time of 1ms. In my model&amp;nbsp;the sample time varies. For example one time I'd like to send 10 messages the first with 1ms, &amp;nbsp;the second with 2ms, the third with three and so on. Next time&amp;nbsp;I'd like to send 5 messages with 2ms and 5 with 10ms. Every message should be sent&amp;nbsp;periodically with the defined sample time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2019 11:42:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948812#M3595</guid>
      <dc:creator>praktikant2fs35</dc:creator>
      <dc:date>2019-09-23T11:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send messages perodically using the NXP toolbox?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948813#M3596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/praktikant2fs3551.scw@zf.com"&gt;praktikant2fs3551.scw@zf.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you send me your model to investigate your issue? I understand that you are facing a weird behaviour for the PIT enable disable blocks on the latest version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 12:53:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948813#M3596</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-10-03T12:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send messages perodically using the NXP toolbox?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948814#M3597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marius and Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached you can find my Simulink models. Fortunately they work as desired but maybe you can explain me how to find out the best setting of the PIT_enable_disable blocks. Probably you will only need the Simulink models with the name ten_messages_. The Converter blocks just do a bit of bitshifting. In the old version the interesting blocks are the Send block (with the PIT_enable_deisable) and the Trigger Generator. In the new version you should focus on the block called Multiple Send. The task of the whole model is to read a dbc-file and to send the messages which are specified in the dbc-file periodically. I saved the blocks in a simulink library and wrote a description. You can find the library, my dbc-file and the description attached. As I said you probably only need the simulink models but maybe the other files can help you understanding my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Von: Marius-lucian Andrei &lt;/P&gt;&lt;P&gt;Gesendet: Donnerstag, 3. Oktober 2019 14:54&lt;/P&gt;&lt;P&gt;An: SCW Praktikant 2 FS3551 SCW ETDC2&lt;/P&gt;&lt;P&gt;Betreff: You have been mentioned by Marius-lucian Andrei in Re: How do I send messages perodically using the NXP toolbox? in NXP Community&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP Community &amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have been mentioned&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by Marius-lucian Andrei&amp;lt;https://community.nxp.com/people/mariuslucianandrei?et=notification.mention&amp;gt; in Re: How do I send messages perodically using the NXP toolbox? in NXP Community - View Marius-lucian Andrei's reference to you&amp;lt;https://community.nxp.com/message/1214483?commentID=1214483&amp;amp;et=notification.mention#comment-1214483&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2019 07:31:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948814#M3597</guid>
      <dc:creator>praktikant2fs35</dc:creator>
      <dc:date>2019-10-07T07:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send messages perodically using the NXP toolbox?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948815#M3598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/praktikant2fs3551.scw@zf.com"&gt;praktikant2fs3551.scw@zf.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a look on your latest model and I should mention the following:&lt;/P&gt;&lt;P&gt;The MBDT Toolbox uses the LPIT0_Channel0 Interrupt to call periodically the step function, while the PIT0 Channel 3 is also used for the Profiler Block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The model attached contains all the messages logic called inside&amp;nbsp;a subsystem by the LPIT0 Channel1. The problem is that your model&amp;nbsp;contains a couple of blocks that enables or disables the PIT0 Channel 2&amp;nbsp;without containing the LPIT0 Channel 2 Config block. This means that&amp;nbsp;the Channel 2 is not even initialized. There is also the S62 block that contains&amp;nbsp;an enable and a disable block one after another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, inside the Enable Disable block there is a checkbox. If the checkbox is checked it will enable&amp;nbsp;the interrupt, also it will disable it. But in order this to work the user&amp;nbsp;must add a PIT block on the same channel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 08:33:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948815#M3598</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-10-11T08:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do I send messages perodically using the NXP toolbox?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948816#M3599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that my model does not make that much sense but have you tried to delete or comment out the “unlogic” PIT_enable_disable blocks? Because as far as I know the model would not work without them. And my actual question is whether there is another option to send the messages periodically with the desired sample time or to trigger with one PIT block ten FCAN_Send blocks using the PIT_enable_disable block of the same channel. I first tried to use in my model the  PIT_enable_disable blocks with the same channel (1) and that did  not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Von: mariuslucianandrei &lt;/P&gt;&lt;P&gt;Gesendet: Freitag, 11. Oktober 2019 10:34&lt;/P&gt;&lt;P&gt;An: SCW Praktikant 2 FS3551 SCW ETDC2&lt;/P&gt;&lt;P&gt;Betreff: Re:  - Re: How do I send messages perodically using the NXP toolbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NXP Community &amp;lt;https://community.freescale.com/resources/statics/1000/35400-NXP-Community-Email-banner-600x75.jpg&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re: How do I send messages perodically using the NXP toolbox?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reply from Marius-lucian Andrei&amp;lt;https://community.nxp.com/people/mariuslucianandrei?et=watches.email.thread&amp;gt; in NXP Model-Based Design Tools - View the full discussion&amp;lt;https://community.nxp.com/message/1217725?commentID=1217725&amp;amp;et=watches.email.thread#comment-1217725&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2019 09:04:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-do-I-send-messages-perodically-using-the-NXP-toolbox/m-p/948816#M3599</guid>
      <dc:creator>praktikant2fs35</dc:creator>
      <dc:date>2019-10-11T09:04:16Z</dc:date>
    </item>
  </channel>
</rss>

