Flexible Settings Files

Discover an example in how we take advantages of the oop in labview. Here we talk about interface for adapt data in configuration files.

Setting files as ini, xml, json, csv, binary it’s used to give flexibility by parametrization the application after compiled.

IN our experience we use Cluster to transport the all setting data, it’s readable and easy to use for both the type of files.

But in our libraries each time the cluster need to change, and we need a more flexible type of data.

The Variant is the first opportunity, but need a lot of work for flatten, unflatten.

The Naturally Hierarchly architectures of the classes inspire us to take also the data as a class.

Then the idea is to create a parent data “SettingData” and we create the desired setting data as a child, without change the functional code as Read/Write method that remain only in the parent class.

The advantage is:

1-No need to create vi adapted for the class, or no need to create code to adapt variant.

2-Polymorphic at runtime

3-Protect Data

Not simply to start in the concept and in the organization on the disk, but after some experiment and a couple of hour to take confident in use it, is useful.

The class XML-Class is the parent and it’s the place where the data are.

Only need to add a class, inherit from the XML Class and then create the controls and the accessors to set and get the data.

Scopri i nostri servizi e Prodotti, Contattaci ora!

Potrebbe interessarti anche

La taratura delle schede di acquisizione è un passaggio fondamentale per garantire la precisione e l’affidabilità delle macchine di collaudo in produzione. Tuttavia, il processo di taratura può essere lungo e costoso, soprattutto se si deve trasportare ogni volta le schede di acquisizione presso un laboratorio specializzato. Inoltre, il fermo macchina per l’attesa delle tarature o la necessità di pagare un servizio costoso può causare interruzioni alla produzione.
I sistemi di avvitamento di precisione, permettono serraggi esatti, dove coppia e posizionamento del serraggio garantiscono la Qualità e Affidabilità del prodotto.