VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Read scale coefficients and mappings

I would like to include a .vi as an On Deploy Action that reads the currently defined scales, their coefficients, and any realated mappings so that they can be exported as an xml based configuration record file.  What is the best way to read these values? 

Aaron Smith
0 Kudos
Message 1 of 2
(3,647 Views)

Hello,

 

On the target side, I don't know. Perhaps parsing a delpoyed file ?

 

On the PC side you may try calling the API:

 

Runtime API ==>

public interface ICalibration2
    Membre de NationalInstruments.VeriStand.ClientAPI

Résumé :
Interface to get and set calibration settings for channels on the test system. Use the NationalInstruments.VeriStand.ClientAPI.Factory.GetICalibration2(System.String) method of the NationalInstruments.VeriStand.ClientAPI.Factory class to access this interface.

 

 

 

Configuration API (you need a Veristand developpement licence for using SystemDefinitionAPI) ==>

 

public NationalInstruments.VeriStand.SystemDefinitionAPI.Scales GetScales()
    Membre de NationalInstruments.VeriStand.SystemDefinitionAPI.Root

Résumé :
Gets the scales section of the system definition, which contains any scales you define.

Retourne :
A Scales object.

 

Best regards

 

0 Kudos
Message 2 of 2
(3,600 Views)