CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Apr 24, 2019 11:06 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Apr 11, 2019 4:02 pm 
Offline

Joined: Wed Apr 10, 2019 9:52 am
Posts: 1
Hi Guys I am trying to write some code and it involves many Visualisations.

Currently I use frames and then use the invisible state to hide the ones I don't need at the time. Part of the reason for this is I want the visualisations to change with the step no.

I have seen there is code on here to put a dialog box on the screen but what I really would like to do is change the shown visualisation. Doing it the other way with making the frames invisible results in a really laggy interface where the boxes don't always open and shut properly. Any ideas ?

Kind regards

Andrew


Top
   
PostPosted: Thu Apr 11, 2019 11:23 pm 
Offline

Joined: Sun Nov 19, 2017 4:14 pm
Posts: 19
If you want to show the same Visu at all VisuClients, in the visualization manager you can set the checkbox "Use Currentvisu variables".
Then you can set the actual visu very simple like this:
if .... then
VisuElems.CURRENTVISU:='Visu1'; //type the name of the visu to be shown between the ' '
end_if
if .... then
VisuElems.CURRENTVISU:='Visu2';
end_if


Top
   
PostPosted: Wed Apr 24, 2019 7:25 am 
Offline

Joined: Thu Aug 30, 2018 8:40 am
Posts: 62
Hello Andrew,
you could also use the switch frame variable to switch between frames instead of hiding each frame.

The best way to switch a visu is the provided answer by Dave_76.

Best regards,
Marcel


Top
   
PostPosted: Wed Apr 24, 2019 9:26 am 
Offline

Joined: Thu Aug 30, 2018 8:40 am
Posts: 62
Hello Andrew,
sorry for the double post.

For changing the visu you can also use the "new" Visu Utils library. Check out https://help.codesys.com/webapp/t6Wggu4 ... n=3.5.12.0 for more.

Best regards,
Marcel


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited