Property: QuantityBased for CalculationChannel <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Properties > Property: QuantityBased for CalculationChannel <Data>
Property: QuantityBased for CalculationChannel <Data>
Specifies whether DIAdem calculates the calculation channel quantity-based in the script interface for internal data. You can only use the DestUnit property in a formula channel that you create with the AddCalculationChannel method. If you specify the "Default" value, DIAdem uses the default unit of the unit set of the result channel. If you specify a unit in the AddCalculationChannel for Channels <Data> method, DIAdem sets the QuantityBased for CalculationChannel <Data> to True and converts the unit to the specified unit. Refer to the Help page Calculating Quantity-Based and Non-Quantity-Based in DIAdem for the conditions and rules for quantity-based calculations.
Object.QuantityBased
Object | CalculationChannel <Data> Object with this property |
Object.QuantityBased | Boolean with read and write access |
The following example generates a calculation channel from a formula with the unit "m/s". DIAdem then displays whether the calculation was quantity-based and displays the target unit:
VBScript | Python |
Set oMyCalculationChn = Data.Root.Channelgroups(1).Channels.AddCalculationChannel("Result", "= Speed * 2","m/s", 1) Call LogFileWrite(oMyCalculationChn.DestUnit) Call LogFileWrite(oMyCalculationChn.QuantityBased)