citect 5.4 resolution

Hello Slight smile 

Does anyone know how to change the runtime resolution for a configured runtime project? The project was configured with lower resolution back in the old days (window xp). I have try function winsize(1920,1080) in cicode and it doesn't work. Schneider website mentioned to add INI parameter through computer setup editor which is no way to be found in this version. 

  • Citect pages are bitmapped and not vectorial, so I think you can't resize them "automatically". Even if you can do it, the result will be strange.

    In your situation, what I usually do is:

    - Resize the templates (open your templates and resize each of them, or replace the base template with another base template with new size)

    - Open all pages and adjust, first approach is center the contents of each page, later if you have time/budget distribute and arrange the contents, sometimes or some pages as the screen was 4x3 and now is wide, the extra space in the side can be used for additional info, like KPIs, etc.

    Regards

  • If you want to resize the pages in the editor so they look best at a higher resolution, you'd have to do what Nuno said. However, if you're only concerned about making them fit the monitor in the runtime, you can do it with citect.ini parameters. Since there was no Setup Editor in Citect 5.4, you could edit c:\windows\citect.ini in Notepad. Or, go to the Citect help, choose Contents |  Technical Reference | Parameters | Parameter Categories | Page parameters | DynamicSizing. Click the button to edit the parameter and set the value to TRUE

    Use the same method to set [Page] InheritParentScale=TRUE and [Animator] FullScreen=1

    The runtime will now fill the full height of the screen, and popup windows will be stretched the same amount. However, the pages won't fit the full width of the monitor if you have widescreen monitors. There is a [Page]MaintainAspectRatio=0 parameter to fix that, but I don't believe it was available until v6.0.

    The other option is to change your desktop resolution to match the size of the Citect pages, but that will make all text look a little blurry.

  • Hi Nuno, what do you mean by resizing the templates? I try to create the page with resolution SXGA, but the maximum I can get is still a square box. 

  • Hi Eric, that is the issue, I can't find MaintainAspectRatio in v5.4, I can only reach the full height of the monitor but not the full width. 

  • Hi.

    That depends on your "tree" of templates.

    From the image you share it looks like a very old "normal" template from include project. That include project just have until SXGA 1280x1024 (4:3).

    There are other templates out of the box in projects csv_include(intil SXVA), tab_style_include (HD1028 and WUXGA), sxw_style_include(HD768,HD1028 and WUXGA), sa_include (HD2018, UHD4K), and you can design your templates in any size you need choosing "User defined".

    If your project uses the normal template from include project, changing to other more recent style like sa (situational awareness) will be the official citect answer, but will imply some work, so to keep the look and feel,  the faster approach is open the normal template, resize it (file, properties, appearance, view area) and save it with a new name "myNormal" INSIDE your project.

    Some pages like alarms, summary, trends etc may use different templates based also in included project, open those templates (like "alarm"), save them in your project with a new name "MyAlarm", then change the base template (file, properties, appearance, template) to your myNormal template and adjust the other stuff in the template.

    After having the needed templates in your project in the size you want, you need to open all pages and replace the template from include project with your template.

    Instead of saving the new templates in your project you may create a include project for your templates, symbols, code, etc, that can be used in different projects, but be aware of NEVER save your template in the include project or it will not be in the backup and will be deleted on updates. 

    Sorry for the long post, I hope it helps.

  • ah, citect 5.4?

    There you don't have all those includes and resolutions, but you have "User Defined" so all the rest applies.