<?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 Read potentiometer value in simulink with MBDT blocks in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Read-potentiometer-value-in-simulink-with-MBDT-blocks/m-p/1482869#M7452</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I was trying to get familiar with MBDT for Simulink.&lt;BR /&gt;The board I use is the s32k144.&lt;BR /&gt;The objective was to read the potentiometer value and graph it in PIL simulation.&lt;BR /&gt;I can actually read when it is at the minimum or the maximum value as if it were a boolean.&lt;BR /&gt;My Simulink diagram is as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pierpaolo_dini_0-1656601014918.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185188i75D58BCA1CE9E9BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pierpaolo_dini_0-1656601014918.png" alt="pierpaolo_dini_0-1656601014918.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pierpaolo_dini_1-1656601062440.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185189i3BA013FF2C54A533/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pierpaolo_dini_1-1656601062440.png" alt="pierpaolo_dini_1-1656601062440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;in fact, you can see how Simulink suggests that at the GPI Read block output, there is a boolean.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pierpaolo_dini_2-1656601148218.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185190i18E846D89202CB98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pierpaolo_dini_2-1656601148218.png" alt="pierpaolo_dini_2-1656601148218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can graph it via scope bl during the simulationock, but I can only see 0 or 1.&lt;/P&gt;&lt;P&gt;any suggestions for reading the entire set of values associated with the potentiometer?&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 08:20:34 GMT</pubDate>
    <dc:creator>pierpaolo_dini</dc:creator>
    <dc:date>2022-07-01T08:20:34Z</dc:date>
    <item>
      <title>Read potentiometer value in simulink with MBDT blocks</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Read-potentiometer-value-in-simulink-with-MBDT-blocks/m-p/1482869#M7452</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I was trying to get familiar with MBDT for Simulink.&lt;BR /&gt;The board I use is the s32k144.&lt;BR /&gt;The objective was to read the potentiometer value and graph it in PIL simulation.&lt;BR /&gt;I can actually read when it is at the minimum or the maximum value as if it were a boolean.&lt;BR /&gt;My Simulink diagram is as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pierpaolo_dini_0-1656601014918.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185188i75D58BCA1CE9E9BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pierpaolo_dini_0-1656601014918.png" alt="pierpaolo_dini_0-1656601014918.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pierpaolo_dini_1-1656601062440.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185189i3BA013FF2C54A533/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pierpaolo_dini_1-1656601062440.png" alt="pierpaolo_dini_1-1656601062440.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;in fact, you can see how Simulink suggests that at the GPI Read block output, there is a boolean.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pierpaolo_dini_2-1656601148218.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/185190i18E846D89202CB98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pierpaolo_dini_2-1656601148218.png" alt="pierpaolo_dini_2-1656601148218.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can graph it via scope bl during the simulationock, but I can only see 0 or 1.&lt;/P&gt;&lt;P&gt;any suggestions for reading the entire set of values associated with the potentiometer?&lt;/P&gt;&lt;P&gt;Thanks in advance for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 08:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Read-potentiometer-value-in-simulink-with-MBDT-blocks/m-p/1482869#M7452</guid>
      <dc:creator>pierpaolo_dini</dc:creator>
      <dc:date>2022-07-01T08:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Read potentiometer value in simulink with MBDT blocks</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Read-potentiometer-value-in-simulink-with-MBDT-blocks/m-p/1483336#M7454</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/129855"&gt;@pierpaolo_dini&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The GPIO blocks are digital so they can only read/write logic values (0 and 1). If you want to use the potentiometer, you have to use the&amp;nbsp;&lt;STRONG&gt;ADC&amp;nbsp;&lt;/STRONG&gt;(Analog To Digital Converter)&amp;nbsp;blocks. You can check&amp;nbsp;&lt;STRONG&gt;adc examples&lt;/STRONG&gt; to see how to use them.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Bancila Sorin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 08:56:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Read-potentiometer-value-in-simulink-with-MBDT-blocks/m-p/1483336#M7454</guid>
      <dc:creator>SorinIBancila</dc:creator>
      <dc:date>2022-07-01T08:56:25Z</dc:date>
    </item>
  </channel>
</rss>

