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 Mon Dec 17, 2018 10:39 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Oct 17, 2018 3:54 am 
Offline

Joined: Mon Nov 27, 2017 3:33 am
Posts: 3
Hi,

I Switch library internal visualization by the way as shown below.

It works well before,but now it doesn't work.Could you please tell me if it's right ? Or could you please provide me a well working way?

Method 1:

Code:
VisuElems.g_VisuManager.SetMainVisuGlobally(VisuElems.Visu_ClientType.TargetVisualization ,stVisu := VisuName);


Method 2:
Code:
VisuElems.CURRENTVISU:=VisuName;


Best regards.


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Wed Oct 17, 2018 6:29 am 
Offline
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 113
I think you should use LibraryNamespace in VisuName:

Code:
VisuName := MyLibraryNamespace.Screen1;


Top
   
PostPosted: Wed Oct 17, 2018 9:13 am 
Offline

Joined: Mon Nov 27, 2017 3:33 am
Posts: 3
e.kislov wrote:
I think you should use LibraryNamespace in VisuName:

Code:
VisuName := MyLibraryNamespace.Screen1;


Hi e.kislov,

Thanks for your reply.

I have used the library namespace, but I still can't switch. Please note the selected content in the attached image.


Top
   
PostPosted: Wed Oct 17, 2018 11:11 am 
Offline
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 113
Yes, you're right.

I try it and as i see Library Visu Switching works only without mark "Internal" (it was expected) and only with visu elements (InputConfiguration - OnMouseClick - Switch Visu), not from code...


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