Is it possible to create my special lamp for webvisu ?
I want a special lamp:
- 3 cercles with for each value of color
- 1 value at the center
- visibility parameter
- function with mouse click.
Now I do it with 2 cercles but it complicated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Simply create 3 visualizations (one for each state). Then place a frame into the page you want to see that and assign the 3 visualizations you created. Fix the dimensions and assign a Switch variables. Handle the variable into your code.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think you have two ways to do that :
1Β°) Expensive solution : With "CODESYS Visual element toolkit" which can ordered via the 3S sales department.
Expensive but more efficient, you can add a program to your object.
2Β°) Free solution : With a visualization page with parameters
- create a visualization page, called SpecialLamp (for example !), with several object : circle, text display, ...
- define variables into the Interface Editor of this page.
- use this variables to animate your objects.
- put this page into a frame into the main visualization page where you want to use this special lamp,
- set up this special object with your project's variables (References).
I attach a small example.
Hopefully this will meet your request.
Yes you can call a function.
You also can simply replace a variable by an equation.
For example, instead to use a variable for "change color" property, you can write something like that :
iValeur1>=25 AND iValeur1<=241
So you can avoid to create a special variable managed in a program module, it can be very usefull.
But it can also make more difficult to understand a complete application, because the program is "hidden" in a lot of modules (PRG, FB, FUN) and in several visualization objects.
BR
π
1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to create my special lamp for webvisu ?
I want a special lamp:
- 3 cercles with for each value of color
- 1 value at the center
- visibility parameter
- function with mouse click.
Now I do it with 2 cercles but it complicated.
Hello,
Simply create 3 visualizations (one for each state). Then place a frame into the page you want to see that and assign the 3 visualizations you created. Fix the dimensions and assign a Switch variables. Handle the variable into your code.
Hi,
I think you have two ways to do that :
1Β°) Expensive solution : With "CODESYS Visual element toolkit" which can ordered via the 3S sales department.
Expensive but more efficient, you can add a program to your object.
2Β°) Free solution : With a visualization page with parameters
- create a visualization page, called SpecialLamp (for example !), with several object : circle, text display, ...
- define variables into the Interface Editor of this page.
- use this variables to animate your objects.
- put this page into a frame into the main visualization page where you want to use this special lamp,
- set up this special object with your project's variables (References).
I attach a small example.
Hopefully this will meet your request.
Best regards.
Best way is to use the frame concept and create the required look this way
Thank you very much ! It works very well !!!!
Is it possible to put a small code into this frame ?
If my_special_entry =3 then
visibility := TRUE;
text for bubble := "help texte";
....
Hi,
one way is call a function from visualization. For example call external function from "Text variable" property of rectangle component.
Best Regards
Thank you very much, I didn't know we can call function here !
Yes you can call a function.
You also can simply replace a variable by an equation.
For example, instead to use a variable for "change color" property, you can write something like that :
iValeur1>=25 AND iValeur1<=241
So you can avoid to create a special variable managed in a program module, it can be very usefull.
But it can also make more difficult to understand a complete application, because the program is "hidden" in a lot of modules (PRG, FB, FUN) and in several visualization objects.
BR
Thank you very much!
I want to compose a text for bubble information ( when mouse is on web symbole)) with 2 variables:
" {Text dipense of list} {number}"
I get only 1 part of this composed text: only text from TextList/variable or only number from variable INT
Last edit: galexis 2020-07-09