08-24-2018 09:27 AM
Hi,
This commands returns an error 'invalid use of null...' most of the time. Sometimes, it works ok...
msgbox Data.GetChannel("Voltage phase a filt avg").Properties("minimum").Value
I don't see what I am doing wrong - any help appreciated.
Diadem 2015, SP2
Thanks
Thomas
Solved! Go to Solution.
08-24-2018 09:59 AM
The syntax is correct. Does the channel exist, or is there a spelling error with the blanks? Have you tried to use wildcards?
msgbox Data.GetChannel("Voltage*").Properties("minimum").Value
Have you tried this?
Data.GetChannel("Voltage phase a filt avg").Minimum
08-27-2018 02:17 AM
Hi Winner,
Thanks for the fast response. Unfortunately, I have no success with your proposals, but I did notice a pattern in the behavior. The problem arises when I try to access channels which have been created by a script. If I just click once on the channel name in the data portal, the problem does not appear. It is as if the channel is not fully recognized until I click on it.....
Thomas
08-27-2018 07:17 AM
Hi winner,
I have found a solution. If I use the ChnCharacter command, then the properties are recalculated and all works ok.
call ChnCharacter("Voltage phase a filt avg")
Thanks for the support!
Thomas