<?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: Using dialogs with DIAdem Python in DIAdem</title>
    <link>https://ni.lithium.com/t5/DIAdem/Using-dialogs-with-DIAdem-Python/m-p/4100612#M28014</link>
    <description>&lt;P&gt;I found out that a possible workaround is to define a variable with dd.GlobalDim. That variable is then modifyable in the dialog.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeryDavid_0-1605712251170.png" style="width: 683px;"&gt;&lt;img src="https://ip1.i.lithium.com/dd5858400a654c08db75b317a2fbd5fb427aa41a/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32373633393069324545433934323039353032444437392f696d6167652d64696d656e73696f6e732f363833783232373f763d7632" width="683" height="227" role="button" title="SeryDavid_0-1605712251170.png" alt="SeryDavid_0-1605712251170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a cleaner solution for this?&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2020 15:09:38 GMT</pubDate>
    <dc:creator>SeryDavid</dc:creator>
    <dc:date>2020-11-18T15:09:38Z</dc:date>
    <item>
      <title>Using dialogs with DIAdem Python</title>
      <link>https://ni.lithium.com/t5/DIAdem/Using-dialogs-with-DIAdem-Python/m-p/4100560#M28013</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if I understand it correctly, then even when I use python for DIAdem programming, the language for dialogs is still VBS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is, how do I in that case send variables to and from the dialog?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I managed to send variables to the dialog with&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeryDavid_0-1605703176150.png" style="width: 610px;"&gt;&lt;img src="https://ip1.i.lithium.com/89165d93e4764c651ecd64a0361407f6e72638f0/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32373633373469424239334633363446464538414541432f696d6167652d64696d656e73696f6e732f3631307835383f763d7632" width="610" height="58" role="button" title="SeryDavid_0-1605703176150.png" alt="SeryDavid_0-1605703176150.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However when trying to modify the parameters (red rectangle on the photo) and read it back in python, the param array is unchanged.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeryDavid_1-1605703249752.png" style="width: 703px;"&gt;&lt;img src="https://ip1.i.lithium.com/f24512dfd3754e1daa7faac8f77897e6a60512b2/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32373633373569444141314436394633444641443032372f696d6167652d64696d656e73696f6e732f373033783532333f763d7632" width="703" height="523" role="button" title="SeryDavid_1-1605703249752.png" alt="SeryDavid_1-1605703249752.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried using the SetArgument function, but I was told that this function is deprecated. So then I tried modifying the array directly, but it seems that I modify just a copy of the array, which is not returned to python.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Finally I tried creating a python class and send an instance of the class to the dialog as parameter. However that does not seem to be supported:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeryDavid_2-1605703469957.png" style="width: 602px;"&gt;&lt;img src="https://ip1.i.lithium.com/b0f4523a1f60c84db481c4210e98347ad0afee19/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32373633373669363134313237373037413033373843462f696d6167652d64696d656e73696f6e732f363032783136313f763d7632" width="602" height="161" role="button" title="SeryDavid_2-1605703469957.png" alt="SeryDavid_2-1605703469957.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeryDavid_4-1605703649885.png" style="width: 475px;"&gt;&lt;img src="https://ip1.i.lithium.com/0b95bc662347ffe3f4b2412cea0cc9bf3e9ffa12/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32373633373869373646433931353341393234453734392f696d6167652d64696d656e73696f6e732f343735783232383f763d7632" width="475" height="228" role="button" title="SeryDavid_4-1605703649885.png" alt="SeryDavid_4-1605703649885.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeryDavid_5-1605703663271.png" style="width: 370px;"&gt;&lt;img src="https://ip1.i.lithium.com/0dc8dc246e222f0dcc3684c0e7caf22387d9a913/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32373633373969373032384138323743353931363144442f696d6167652d64696d656e73696f6e732f3337307835383f763d7632" width="370" height="58" role="button" title="SeryDavid_5-1605703663271.png" alt="SeryDavid_5-1605703663271.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any tutorial / example on working with DIAdem dialogs using python in DIAdem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 12:47:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/DIAdem/Using-dialogs-with-DIAdem-Python/m-p/4100560#M28013</guid>
      <dc:creator>SeryDavid</dc:creator>
      <dc:date>2020-11-18T12:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using dialogs with DIAdem Python</title>
      <link>https://ni.lithium.com/t5/DIAdem/Using-dialogs-with-DIAdem-Python/m-p/4100612#M28014</link>
      <description>&lt;P&gt;I found out that a possible workaround is to define a variable with dd.GlobalDim. That variable is then modifyable in the dialog.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SeryDavid_0-1605712251170.png" style="width: 683px;"&gt;&lt;img src="https://ip1.i.lithium.com/dd5858400a654c08db75b317a2fbd5fb427aa41a/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32373633393069324545433934323039353032444437392f696d6167652d64696d656e73696f6e732f363833783232373f763d7632" width="683" height="227" role="button" title="SeryDavid_0-1605712251170.png" alt="SeryDavid_0-1605712251170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a cleaner solution for this?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 15:09:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/DIAdem/Using-dialogs-with-DIAdem-Python/m-p/4100612#M28014</guid>
      <dc:creator>SeryDavid</dc:creator>
      <dc:date>2020-11-18T15:09:38Z</dc:date>
    </item>
  </channel>
</rss>

