03-12-2019 07:59 AM - edited 03-12-2019 08:11 AM
Hi, I would like to ask about how can I create a Diadem property as a DataTypeFloat64.
I tried something like, following example, but It not works:
Dim prop Set prop = Data.Root.ChannelGroups("Measurement").Properties Call prop.Add("__w001_AverageVoltage", 0,DataTypeFloat64)
THX for help.
03-12-2019 02:00 PM
Call Data.Root.ChannelGroups("Measurement").Properties.Add("__w001_AverageVoltage", 0, DataTypeFloat64)
03-13-2019 01:44 AM
Hi steelbull,
Your script code works fine with my DIAdem (tested in version 2018, 2017 and 2015). I’m pretty sure the problem is not the property setting itself. To find the error I need more script content.
Greetings
Walter
03-13-2019 06:32 AM
Current DIAdem versions seems to be O.K. with your code.
Option Explicit Dim prop Set prop = Data.Root.ChannelGroups(1).Properties Call prop.Add("__w001_AverageVoltage", Cdbl(0),DataTypeFloat64)
will convert your integer to double which the error seems to complain about.