In order to read the configuration and settings clusters two methods have to be provided. In the previous step you have already created them, namely: “Get settings chain.vi” and “Get configuration chain.vi”. Although perhaps you haven’t got in the beginning a configuration cluster, nor settings cluster, here we show how to set it up for empty clusters and how to use it once you have those clusters.

Add component name to array of names

Open “Get configuration chain.vi”. Add an error case structure after the call to parent.

  1. Drag and drop your class to the block diagram.
  2. Select from the Murmex.lvclass the method “Get component name.vi”. Either from the project explorer, either from Right mouse click menu >> Addons >> Distrio >> Murmex >> Murmex >> accessors >> Get component name.
  3. Build the array of class names with your component name as first element.
  4. Add an empty variant to the array of variants as first element.
  5. Repeat steps 1-4 for the “Get settings chain.vi”.
configuration chain empty
Convert cluster to variant
Once using a configuration cluster and / or settings cluster for your component, you need to update the methodsĀ ”Get settings chain.vi” and “Get configuration chain.vi”. Here we show how to do that.
  1. Add to your class a Virtual Folder and name it “type definitions”.
  2. Add to this newly created folder a Control.
  3. Change the control to “Strict Type Def”.
  4. Add an empty cluster to the front panel.
  5. Name the cluster “configuration”.
  6. Add the controls to the cluster you like to use.
  7. Save the control as “configuration cluster.ctl” configuration cluster
  8. Close the control.
  9. Open the private class data, it is the control directly under your class in the Project.
  10. Drag and drop the newly created control to the private class data.
  11. Close the private class data and save all.
  12. Open the method “Get configuration chain.vi”.
  13. Unbundle from the class wire the configuration cluster, convert it to variant and add it to the array of variants, instead of the empty variant.
  14. Repeat steps 1-13 for the settings cluster.
configuration chain