Preloading mimics before SV start for performance?

7 Posts
3 Users
0 Likes
36 Views
(@js.lee@arcinfo.com)
Posts: 0
New Member Guest
 

Customer is asking a question:

He is wondering if there was a way to "preload" mimics in some way. Their project is experiencing performance issues at startup when they are opening all their mimics. He also wants to do the same with images, with reference to the B folder. It seems his reasoning for asking for this preload function is because he looked into the v10.0 HMI demo project and saw a LIBCACHE folder inside that was full of images.

As I understand, PcVue doesn't work that way and it only loads mimics and images after startup, but I thought I should ask here first. Maybe he thinks there's some kind of compression with the mimics/images?

 
Posted : 22/10/2013 7:50 am
ED
 ED
(@e-duvalarcinfo-com)
Posts: 138
Estimable Member
 

The solution is to specify that the mimic is cache in its properties.
That way the first load up of the mimic will take as long as before but subsequent opening will be instantenous.
Carefull not to put too much (>100) windows in cache. Only the big one with lots of picture and animation.

 
Posted : 22/10/2013 1:48 pm
(@js.lee@arcinfo.com)
Posts: 0
New Member Guest
 

Alright.
He clarified his question further though: Is there any way to put the mimic into the cache before first opening it?
Or does the caching work even through multiple sessions and so this isn't actually a problem for him? I don't have a very big mimic on hand to test loading speeds...

 
Posted : 22/10/2013 3:40 pm
f.martin
(@f-martinarcinfo-com)
Posts: 148
Member Admin
 

Hello,

you can have a look to the SCADA Basic function WINDOW("PRELOAD",...). If the mimic has the cache option, it will be pre-loaded. But it has to be executed on each station/session.

The loading time dépends on a lot of parameters:
- the size of the pictures
- the amount of gradient color used
- activeX like AITimer
- expressions in the animations
- ...
Is it possible for you to analyse the content of the mimicsthat take a too long time to load ?

 
Posted : 23/10/2013 1:57 am
(@js.lee@arcinfo.com)
Posts: 0
New Member Guest
 

I would have to first get the project from him. I'll relay on this info to him.

 
Posted : 23/10/2013 7:01 am
(@js.lee@arcinfo.com)
Posts: 0
New Member Guest
 

Yes, I got some limited project files from him, particularly folders B, S and W.

His response was that there are still delays even though a mimic has been cached. The offending mimic is "ScreenSelectorMain", which is opened using the VBA command [FrontVue.Mimics.Open "ScreenSelectorMain", "", , , AUXMIMICNAME, , , , 0, 0, False].

 
Posted : 23/10/2013 11:27 am
f.martin
(@f-martinarcinfo-com)
Posts: 148
Member Admin
 

Well, this mimic seems to be quite light, but on opening they are calling a VBA method "modScreenSelector.LoadActiveDisplays". What does it do ?

Even if the mimic is in the cache, this method is called each time you open the mimic. If it takes 2mn to execute, then you'll always have a 2mn delay before the opening of the mimic.

Next step: get more info about this method (it's located in the SCR directory of the project)

 
Posted : 23/10/2013 12:18 pm