Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3214

Error received: Invalid use of Null: data.Root.ChannelGroups(...).Channels(...).Maximum

$
0
0

Hi there,

 

since DIAdem 2018 I get this error when using the Maximum property. It works if I load in .tdms files (second run through the script), which I saved previously in the script (after first run).

If I stop the script right before the error, the channel exists and does have a Maximum value... (see picture attached)

 

I want to use it for scaling a y-Axis.

myCurrGraph.YAxisList.Item(1).Scaling.End = (Trunc(data.Root.ChannelGroups("TraceLoadChart").Channels("ALTERNATOR").Maximum*1.6/50) + 1) * 50

 

Thanks in advance.

Adek

 


Viewing all articles
Browse latest Browse all 3214

Latest Images

Trending Articles



Latest Images