<?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: Bug? Map operation with multiple keys in In-Place Element Structure in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4251726#M1237164</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Upon further testing, everything works correctly in LabVIEW 2022, so this is definitely a bug in earlier version. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thank you for your research.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had not used LabVIEW2022 yet.&lt;BR /&gt;I will install it as soon as possible.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2022 04:08:56 GMT</pubDate>
    <dc:creator>yubeshi</dc:creator>
    <dc:date>2022-08-26T04:08:56Z</dc:date>
    <item>
      <title>Bug? Map operation with multiple keys in In-Place Element Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4250875#M1236834</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Windows 10&lt;/LI&gt;
&lt;LI&gt;LabVIEW 20.0.1 f1 (32-bit) /&amp;nbsp;LabVIEW 21.0 (32-bit)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attempting to manipulate the Value of a map with multiple keys using an Inplace Element Structure will not work.&lt;/P&gt;
&lt;P&gt;Obviously the wrong type of terminal is displayed, as shown in the screenshot below.&lt;/P&gt;
&lt;P&gt;Also, the last element's Value terminal is displayed incorrectly, for example, it is sticking out from the bottom.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yubeshi_0-1661227661322.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/c33d94c13a6639a33be005a44a7ab9eb6d5d4f73/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303731353869323445324634364631443941433631422f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="yubeshi_0-1661227661322.png" alt="yubeshi_0-1661227661322.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;STRONG&gt;Background&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See below for how exactly I am trying to use this.&lt;/P&gt;
&lt;P&gt;I'm trying to transpose elements between maps that have the same structure.&lt;/P&gt;
&lt;P&gt;Maps are nested in combination with classes, and the desired map can be accessed by specifying a key.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yubeshi_1-1661228070265.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/97a6d006377c1661500c5edb6f97a0045ea543b9/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303731353969363842463045373133393538353137412f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="yubeshi_1-1661228070265.png" alt="yubeshi_1-1661228070265.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Currently I have the following code to deal with this, but I believe it will probably create an extra copy.&lt;/P&gt;
&lt;P&gt;I really don't want to create an extra copy, so I want to access both elements with in-place nodes.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yubeshi_2-1661228207303.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/143b0cbc5b95684ad998177be9b920e56ab7b580/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303731363069333945364642453341333645303936412f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="yubeshi_2-1661228207303.png" alt="yubeshi_2-1661228207303.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 04:51:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4250875#M1236834</guid>
      <dc:creator>yubeshi</dc:creator>
      <dc:date>2022-08-23T04:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Map operation with multiple keys in In-Place Element Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4250893#M1236849</link>
      <description>&lt;P&gt;My gut feeling is that the map access IPE probably wasn't designed to be re-sizeable and it might be just an omission that they can be resized.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The LabVIEW compiler is very good at avoiding data copies and I am not sure why you think you even need an IPE. Especially if you are adding elements to a map, it cannot really "in place" anyway, because the size changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I don't quite get the logic of what you are trying to do. Can you attach a more specific example?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 06:28:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4250893#M1236849</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2022-08-23T06:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Map operation with multiple keys in In-Place Element Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4251137#M1236950</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/146955"&gt;@yubeshi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Windows 10&lt;/LI&gt;
&lt;LI&gt;LabVIEW 20.0.1 f1 (32-bit) /&amp;nbsp;LabVIEW 21.0 (32-bit)&lt;/LI&gt;
&lt;/UL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Upon further testing, everything works correctly in LabVIEW 2022, so this is definitely a bug in earlier version. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&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="altenbach_0-1661284269726.png" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/315cf12fb40e090a89fa1ae8db230c66cdb672eb/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303732323469374244313538383945313036463944462f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="altenbach_0-1661284269726.png" alt="altenbach_0-1661284269726.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 19:51:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4251137#M1236950</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2022-08-23T19:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Map operation with multiple keys in In-Place Element Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4251725#M1237163</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/7614"&gt;@altenbach&lt;/a&gt;&amp;nbsp;さんは書きました:
&lt;P&gt;The LabVIEW compiler is very good at avoiding data copies and I am not sure why you think you even need an IPE. Especially if you are adding elements to a map, it cannot really "in place" anyway, because the size changes.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thank you for your comment.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;As you point out, I am not using IPE effectively.&lt;BR /&gt;I will consider reviewing it.&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="yubeshi_1-1661307949940.png" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/f4371e59408a63aaa8aa1171608befc9ce0387ad/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303732333569343342454333354630354135334339312f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="yubeshi_1-1661307949940.png" alt="yubeshi_1-1661307949940.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I thought there was a possibility that a copy of the data could be made here.&lt;/P&gt;
&lt;P&gt;But, when we view the buffer assignments, it appears that no copies have been made here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Sorry, I don't quite get the logic of what you are trying to do. Can you attach a more specific example?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is off topic for this topic, but I'll explain a little more about my application.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am creating a tool to translate some software into Japanese for myself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the software to be translated, there is a mechanism that can be translated by reading the "translation file".&lt;BR /&gt;There is also a "master file" that stores the original text before translation for translators.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The figure below shows the relationship between these files reflected in the data structure in LabVIEW.&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="yubeshi_0-1661361930795.png" style="width: 999px;"&gt;&lt;img src="https://ip1.i.lithium.com/7051797b2e3ba004e72bc5e6f86402fd8f12648a/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f33303732363469413736443239413033314233324538352f696d6167652d73697a652f6c617267653f763d76322670783d393939" role="button" title="yubeshi_0-1661361930795.png" alt="yubeshi_0-1661361930795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I need to edit files, compare values ​​between files, transcribe, transcribe to a keylist that should be ignored, etc.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to be able to perform these operations between arbitrary files by specifying a key, so I made this data structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fortunately, since the tool is dedicated to me, it is not so much of a problem, but I would like to consider improving it, since I think it is not a good usage in terms of performance and efficiency.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 04:05:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4251725#M1237163</guid>
      <dc:creator>yubeshi</dc:creator>
      <dc:date>2022-08-26T04:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Map operation with multiple keys in In-Place Element Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4251726#M1237164</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Upon further testing, everything works correctly in LabVIEW 2022, so this is definitely a bug in earlier version. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Thank you for your research.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had not used LabVIEW2022 yet.&lt;BR /&gt;I will install it as soon as possible.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 04:08:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4251726#M1237164</guid>
      <dc:creator>yubeshi</dc:creator>
      <dc:date>2022-08-26T04:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Bug? Map operation with multiple keys in In-Place Element Structure</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4252489#M1237454</link>
      <description>&lt;P&gt;Too many things get lost when translating LabVIEW code to a flat rectangular array of color pixels (i.e. an image). Do you have a small example set of VIs with some typical data.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 17:39:37 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Bug-Map-operation-with-multiple-keys-in-In-Place-Element/m-p/4252489#M1237454</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2022-08-30T17:39:37Z</dc:date>
    </item>
  </channel>
</rss>

