What am I doing wrong??

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
7 posts • Page 1 of 1
User avatar
aorange
Posts: 147
Joined: Thu Nov 04, 2010 10:07 am

What am I doing wrong??

Post by aorange »

Ok, so I am quite rusty as I haven't used WinCC-OA in 2 years but something doesn't add up here. Can anyone explain what I am doing wrong or missing?

Image

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: What am I doing wrong??

Post by leoknipp »

Hello,

with the function dpNames() you will get a list of dp-elements which match the pattern.
There is no check made if the config you have added at the pattern is really exisiting. Therefore the result is okay.

Best Regards
Leopold Knipp
Senior Support Specialist

User avatar
aorange
Posts: 147
Joined: Thu Nov 04, 2010 10:07 am

Re: What am I doing wrong??

Post by aorange »

But if the config doesn't exist the surely it couldn't possibly match the pattern, right?

User avatar
aorange
Posts: 147
Joined: Thu Nov 04, 2010 10:07 am

Re: What am I doing wrong??

Post by aorange »

hmm think I got it.. it just doesn't take the config part of the pattern into consideration.

Is there a way to test if a config exists then? I seem to remember having done this but as I said, I am very rusty :P

Gertjan van Schijndel
Posts: 634
Joined: Mon Aug 02, 2010 10:37 am

Re: What am I doing wrong??

Post by Gertjan van Schijndel »

The config exists when:

Code: Select all

:.._type != DPCONFIG_NONE

User avatar
fmulder
Posts: 330
Joined: Wed Feb 03, 2010 9:46 am

Re: What am I doing wrong??

Post by fmulder »

Jonathan,

You can do a dpGet() on the ".._type". When the value is not 0 then the config exists.

User avatar
aorange
Posts: 147
Joined: Thu Nov 04, 2010 10:07 am

Re: What am I doing wrong??

Post by aorange »

Thanks guys.. ;)

Post Reply
7 posts • Page 1 of 1