I have gone through documentation of dpTreeSetIcons() in help file and written one script to define icon in para module.I have also kept same icon in picture directory of my project as well as in my installation folder also.But after following steps mentioned in help file also I am unable to see user defined icons in para module.
User Defined Icon in Para module
- Indrani125
- Posts:41
- Joined: Wed Aug 07, 2019 10:50 am
User Defined Icon in Para module
Hello all,
I have gone through documentation of dpTreeSetIcons() in help file and written one script to define icon in para module.I have also kept same icon in picture directory of my project as well as in my installation folder also.But after following steps mentioned in help file also I am unable to see user defined icons in para module.
In my log viewer,I am getting one warning like attached.Can anyone please help or suggest?who has tried this??
I have gone through documentation of dpTreeSetIcons() in help file and written one script to define icon in para module.I have also kept same icon in picture directory of my project as well as in my installation folder also.But after following steps mentioned in help file also I am unable to see user defined icons in para module.
- Attachments
-
- error.PNG (9.83 KiB) Viewed 12280 times
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: User Defined Icon in Para module
Hello,
it works for me. According to the error message the script file does not exist.
it works for me. According to the error message the script file does not exist.
- Indrani125
- Posts:41
- Joined: Wed Aug 07, 2019 10:50 am
Re: User Defined Icon in Para module
Hi,
is there any license required for this?I have defined script as icons.ctl,kept related icons in picture folder of my project as well as in picture folder of wincc oa installation directory and running the script also from console..But the control manager for running script for user defined icon is stopping after sometime..can you please suggest from your experience of working on this? I am using script from help document for analog point and ran using control manager using the script name.but same warning coming.
PFA relevant attachments,
is there any license required for this?I have defined script as icons.ctl,kept related icons in picture folder of my project as well as in picture folder of wincc oa installation directory and running the script also from console..But the control manager for running script for user defined icon is stopping after sometime..can you please suggest from your experience of working on this? I am using script from help document for analog point and ran using control manager using the script name.but same warning coming.
PFA relevant attachments,
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: User Defined Icon in Para module
you must specify this for each userinterface as parameter -s
Options:
-m para -s icons.ctl
Options:
-m para -s icons.ctl
- Indrani125
- Posts:41
- Joined: Wed Aug 07, 2019 10:50 am
- adaneau
- Posts:310
- Joined: Tue Feb 21, 2012 9:49 am
Re: User Defined Icon in Para module
Hi,
Something puzzles me in your option: why did you write WCCOAui as option? It may be a reason why it doesnt work?
BR
Alexandre
Something puzzles me in your option: why did you write WCCOAui as option? It may be a reason why it doesnt work?
BR
Alexandre
- Indrani125
- Posts:41
- Joined: Wed Aug 07, 2019 10:50 am
Re: User Defined Icon in Para module
Hi..
Thank you..I have changed that also but it is not showing my defined icon in para module
I have copied standard icons from installation directory only..from control manager script is not running..how ever in help file..it is mentioned to specify option as -m para -s icons.ctl as told by kilianvp and you..but still not working
Thank you..I have changed that also but it is not showing my defined icon in para module
- dbindernagel
- Posts:161
- Joined: Mon Feb 23, 2015 1:34 pm
Re: User Defined Icon in Para module
It works for me also just fine. Maybe check some steps.
1.
Remove the ControlManger for "icons.ctl". It is not needed.
2.
The options for the Para User Interface should be "-m para -s icons.ctl"; not! "WCCOAui -m para -s icons.ctl"
3.
In your script you had used the system name "System1". Is your system name really "System1"?
If not then please change it in your script or remove the system name completely.
4.
Your icon file is named "analog1.png"?
Does this file exist in the following folder (assuming your project is located there)?
"C:\WinCC_OA_Proj\Userdefinedicon\pictures\analog1.png"
5.
Your script file is located here (assuming your project is located there)?
"C:\WinCC_OA_Proj\Userdefinedicon.17\scripts\icons.ctl"
6.
Try the following script. It uses an icon from the installation folder. You do not need to copy anything. This should always work.
1.
Remove the ControlManger for "icons.ctl". It is not needed.
2.
The options for the Para User Interface should be "-m para -s icons.ctl"; not! "WCCOAui -m para -s icons.ctl"
3.
In your script you had used the system name "System1". Is your system name really "System1"?
If not then please change it in your script or remove the system name completely.
4.
Your icon file is named "analog1.png"?
Does this file exist in the following folder (assuming your project is located there)?
"C:\WinCC_OA_Proj\Userdefinedicon\pictures\analog1.png"
5.
Your script file is located here (assuming your project is located there)?
"C:\WinCC_OA_Proj\Userdefinedicon.17\scripts\icons.ctl"
6.
Try the following script. It uses an icon from the installation folder. You do not need to copy anything. This should always work.
Code: Select all
main()
{
mapping map;
map["[ANALOG1]"] = "apply_16.png";
dpTreeSetIcons(map);
}
- Indrani125
- Posts:41
- Joined: Wed Aug 07, 2019 10:50 am
Re: User Defined Icon in Para module
Hi,
Really thank you!!!! all the steps are clear and I have followed them also..checked again..even if I try with your script..I am not able to in log viewer I am getting warning..is this warning reason behind not coming?do you have any idea why this warning comes?I have stored icon in picture folder also..
Really thank you!!!! all the steps are clear and I have followed them also..checked again..even if I try with your script..I am not able to in log viewer I am getting warning..is this warning reason behind not coming?do you have any idea why this warning comes?I have stored icon in picture folder also..
- dbindernagel
- Posts:161
- Joined: Mon Feb 23, 2015 1:34 pm
Re: User Defined Icon in Para module
No I don't get this error message.
I tried to reproduce the error and it does appear for me if the file does not exists or I have entered a wrong filename in the options.
So if I have the following in the options:
"-m para -s icon.ctl" (notice the missing "s") and the script file is called "icons.ctl" then I get exactly the same error message as you.
So please check the script is in the correct folder and the filename again, maybe capital "i" (.ctI) instead of small "L" (.ctl) by mistake. They look the same and the letters are near each other on the keyboard.
(Try to copy&paste the filename to the options of the user interface to be sure.)
If this does not help I can only think of a permission problem. Check the file permissions of this file for the user who opens the user interface.
Edit:
If you have created the file in a text editor it could be that it is now named "icons.ctl.txt". Enable file name extensions and check this, too.
I tried to reproduce the error and it does appear for me if the file does not exists or I have entered a wrong filename in the options.
So if I have the following in the options:
"-m para -s icon.ctl" (notice the missing "s") and the script file is called "icons.ctl" then I get exactly the same error message as you.
So please check the script is in the correct folder and the filename again, maybe capital "i" (.ctI) instead of small "L" (.ctl) by mistake. They look the same and the letters are near each other on the keyboard.
(Try to copy&paste the filename to the options of the user interface to be sure.)
If this does not help I can only think of a permission problem. Check the file permissions of this file for the user who opens the user interface.
Edit:
If you have created the file in a text editor it could be that it is now named "icons.ctl.txt". Enable file name extensions and check this, too.