DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Unit Conversions

I am working with a logger that doesn't have much flexibility.

 

Uses .csv format. The channel name, and unit appear in the same cell.

 

Right now, to convert units I am using the calculation manager. This works pretty well except when a sensor is changed out and the channel is repurposed I need to go in and manually change the names in the script. Makes it very difficult to look at old data as I'll have to clear a few errors.

 

Any ideas on how to improve how I am converting units?

Here is what I am currently using:

 

Call CalculationSet.Clear()
Call CalculationSet.Load(DH_PathDocuments&"Dynon Calculationsbroke-Cirrus.TCA")
Call Data.Root.ChannelGroups.Add("Unit Conversions", 2).Activate()
Call CalculationSet.SelectAll(False)
Call CalculationSet.CalculationGroups("Unit Conversions").SelectAll(True)
Call CalculationSet.CalculationGroups("Convert To Hot Day").SelectAll(True)
Call CalculationSet.CalculationGroups("Intercooler Performance").SelectAll(True)
Call CalculationSet.RunSelected()

 

 

Thanks!

0 Kudos
Message 1 of 1
(112 Views)