<?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: Saving LabVIEW Object Array. in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4035018#M1157504</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a class called device.lvclass and child classes are NI Cards , like PXI6226.lvclass,PXI6259.lvclass and etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inside Parent class (Device.lvclass) class I have property called "device array", That is created using LabVIEW base object and I m inserting all the child classes inside that parent Property. I save that device object to a binary file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After modifying any if the classes(Parent or child) if i try to read the old file , its showing the file corrupted error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Apr 2020 18:17:58 GMT</pubDate>
    <dc:creator>VipinrajKK</dc:creator>
    <dc:date>2020-04-11T18:17:58Z</dc:date>
    <item>
      <title>Saving LabVIEW Object Array.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4034758#M1157396</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement of saving my LabVIEW Object Array to a file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I need to save only the LabVIEW Class Data. I have a Parent class called Device, and under that I have different Child Devices. Initially I thought of saving it as a binary file and its working fine. But if I modify any class ,like add or delete the Property of method of it, The file I saved is not opening .I understand its because of data type mismatch.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can anyone suggest me what is best method of saving Class array. The array includes the parent class and child classes also.I will be using some of the parent properties in child classes .Also child class is having its own properties too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I thought of using XML or Ini file to Save the Class Data. Section as Class name and Key is the property and Data is the value of the property.&lt;/P&gt;
&lt;P&gt;Can programmatic get all the properties of a class and value in it (including the parent class property used ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vipinraj KK&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CLA.png" style="width: 71px;"&gt;&lt;img src="https://ip1.i.lithium.com/6141f1ef5168599343e4b46918a0b42854603305/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32363534313969393543463237434436334631334436342f696d6167652d64696d656e73696f6e732f37317837313f763d7632" width="71" height="71" role="button" title="CLA.png" alt="CLA.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 16:06:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4034758#M1157396</guid>
      <dc:creator>VipinrajKK</dc:creator>
      <dc:date>2020-04-10T16:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Saving LabVIEW Object Array.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4034767#M1157400</link>
      <description>&lt;P&gt;If you use the built-in LabVIEW&lt;A href="https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/flatten-to-xml.html" target="_self"&gt; flatten to XML&lt;/A&gt; and &lt;A href="https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/functions/unflatten-from-xml.html" target="_self"&gt;unflatten from XML&lt;/A&gt; nodes, it's all done automatically.&amp;nbsp; It's even smart enough to be able to load old versions of the class data somewhat well.&amp;nbsp; It does an even better job at loading old versions if you use the techniques listed in &lt;A href="https://www.ni.com/en/support/documentation/supplemental/07/preserving-labview-class-data.html" target="_self"&gt;this article on preserving class data&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 22:56:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4034767#M1157400</guid>
      <dc:creator>Kyle97330</dc:creator>
      <dc:date>2026-01-30T22:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Saving LabVIEW Object Array.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4034772#M1157402</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really thanks for the quick reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will check the option and update here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 17:03:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4034772#M1157402</guid>
      <dc:creator>VipinrajKK</dc:creator>
      <dc:date>2020-04-10T17:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Saving LabVIEW Object Array.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4034977#M1157484</link>
      <description>&lt;P&gt;What error do you receive? Loading old versions of class data should work also from binary file. Adding or removing methods will not change the class flattend private data so it has no reason not to load. Do you have a class holding your array of objects or you build the array before saving? I would create such a class with methods for saving and loading from file. Also, all the classes in the file must be already in memory when loading.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 16:52:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4034977#M1157484</guid>
      <dc:creator>LucianM</dc:creator>
      <dc:date>2020-04-11T16:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Saving LabVIEW Object Array.</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4035018#M1157504</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your reply&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a class called device.lvclass and child classes are NI Cards , like PXI6226.lvclass,PXI6259.lvclass and etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inside Parent class (Device.lvclass) class I have property called "device array", That is created using LabVIEW base object and I m inserting all the child classes inside that parent Property. I save that device object to a binary file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After modifying any if the classes(Parent or child) if i try to read the old file , its showing the file corrupted error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Apr 2020 18:17:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Saving-LabVIEW-Object-Array/m-p/4035018#M1157504</guid>
      <dc:creator>VipinrajKK</dc:creator>
      <dc:date>2020-04-11T18:17:58Z</dc:date>
    </item>
  </channel>
</rss>

