While going to the demo application we saw we can start the user interface passed in arguments under options column,
how can we provide the same thing to start the ewo which we createda and added it to the panel and make it functional.
Please see the attached image.
Regarding how to pass arguments to start a panel of ewo created
- Pradeep Kumar
- Posts:39
- Joined: Fri Dec 09, 2016 2:54 pm
Regarding how to pass arguments to start a panel of ewo created
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Regarding how to pass arguments to start a panel of ewo created
if you mean "how to open a specific panel on startup", use the -p commandline option
- Pradeep Kumar
- Posts:39
- Joined: Fri Dec 09, 2016 2:54 pm
Re: Regarding how to pass arguments to start a panel of ewo created
and one more thing , the ewo made is static and after drag and dropeped to panel of WinCC OA.
i have two pushbuttons, how to make it functional?.
i just provided the simple implementation to change the color of another button ,cicking on first button.
But when i click on the ewo object, not functioning?.
Guidance is required,
i have two pushbuttons, how to make it functional?.
i just provided the simple implementation to change the color of another button ,cicking on first button.
But when i click on the ewo object, not functioning?.
Guidance is required,
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Regarding how to pass arguments to start a panel of ewo created
Are you talking about the template ewo from our api, which has 2 buttons ?
What do you mean with "not functioning" ?
The ewo delivers a Qt signal which in turn starts the scripts you find in Gedi in the extended attributes of the ewo ("clicked1" and "clicked2" scripts).
What do you mean with "not functioning" ?
The ewo delivers a Qt signal which in turn starts the scripts you find in Gedi in the extended attributes of the ewo ("clicked1" and "clicked2" scripts).
- Pradeep Kumar
- Posts:39
- Joined: Fri Dec 09, 2016 2:54 pm
Re: Regarding how to pass arguments to start a panel of ewo created
Yes the two buttons, i was talking about.
Not functionating meant to say when i click on the ewo , script editor opens up but i want the user to feel the button is clicked.
And
The ewo delivers a Qt signal which in turn starts the scripts you find in Gedi in the extended attributes of the ewo ("clicked1" and "clicked2" scripts).
How to do that, is it through Qt programming, we need to implement?
Not functionating meant to say when i click on the ewo , script editor opens up but i want the user to feel the button is clicked.
And
The ewo delivers a Qt signal which in turn starts the scripts you find in Gedi in the extended attributes of the ewo ("clicked1" and "clicked2" scripts).
How to do that, is it through Qt programming, we need to implement?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Regarding how to pass arguments to start a panel of ewo created
"when i click on the ewo , script editor opens up "
That is only happening in Gedi, but not when you run the panel in a Vision module.
"The ewo delivers a Qt signal ..."
"How to do that, is it through Qt programming, we need to implement?."
This is already implemented in this example EWO (with Qt in C++).
When you want to create your own ewo, it is essential that you know a bit of C++ and Qt even more.
That is only happening in Gedi, but not when you run the panel in a Vision module.
"The ewo delivers a Qt signal ..."
"How to do that, is it through Qt programming, we need to implement?."
This is already implemented in this example EWO (with Qt in C++).
When you want to create your own ewo, it is essential that you know a bit of C++ and Qt even more.
- Pradeep Kumar
- Posts:39
- Joined: Fri Dec 09, 2016 2:54 pm
Re: Regarding how to pass arguments to start a panel of ewo created
K now i am getting it.
Can we create our own ewo not by running the command newEWO.cmd ? , which it then provides the template.
Or after running the newEWO.cmd , we get the sample ewo , should we continue working on it further our implementation?
Can we create our own ewo not by running the command newEWO.cmd ? , which it then provides the template.
Or after running the newEWO.cmd , we get the sample ewo , should we continue working on it further our implementation?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Regarding how to pass arguments to start a panel of ewo created
The newEWO command just helps you, but it is not a requirement to create an EWO.
You can of course also create one from scratch
You can of course also create one from scratch
- Pradeep Kumar
- Posts:39
- Joined: Fri Dec 09, 2016 2:54 pm
Re: Regarding how to pass arguments to start a panel of ewo created
And as in the template do we need to have the interface or inherit from BaseExternlWidget and create our own widgets and arrange and do the normal operations?
do we need to have user defined class inherited from QWidget and then user defined class inherited from BaseExternWidget also?
do we need to have user defined class inherited from QWidget and then user defined class inherited from BaseExternWidget also?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Regarding how to pass arguments to start a panel of ewo created
Yes, the structure and inheritance must be the same.