iFix: CFixPicture_Initialize is flaky

kdcui

Lifetime Supporting Member
Join Date
Dec 2007
Location
USA
Posts
386
Sometimes I come across screens that have a rather sizable amount of code in the Initialize event of an iFix picture.

In one case, the the author was setting a digital register.

In another, the author was creating objects, setting them to a database tag, and reading the value, and manipulating pull down boxes or text displays based on the read value (this also involved TagGroups)

In the former case, the script would sometimes fail to update the database DR tag.

In the latter, sometimes the picture cannot evaluate the tag and fails to load properly.

Generally I've found that the Initialize event can't be relied upon to do intensive tasks. My hypothesis is that the Initalize event is happening too quick for things to register with the iFix database, but I could be wrong...

Has anyone else come across issues like these?
 
i have a picture with a lot of code propagating combo boxs with sql server trans actions. so far i haven't had a problem. I did seperate the code from being in the initialize event by making it it's own module and the initialize event calls the procedure in the module.
 
Hmm, perhaps it is our network setup. I've done what you have said as well, and sometime the initialize event will fail to call the subroutine I partitioned the other code into.
 
Interesting...I will give that a try, thanks.

What is it about loading from the cache that would cause this? Does Initialize not like to run properly when fetched?
 

Similar Topics

Dear all, I am beginer in ifix hmi programming. I have 2 ifix 6.0 pc with license FiX and client.. Can some one tell me how to configure sample...
Replies
0
Views
137
Hello, I have to deal with iFix again and am looking at the most efficient way to create alarms to display in iFix, i.e. not creating an...
Replies
0
Views
147
Hi everyone. I'm beginner with Ifix. I'm appreciate if you share me some document to understand how to play with Ifix 6.0. By the way, I have some...
Replies
11
Views
685
Hi everyone. Ifix scada is new for me. Please help help me to clarify is it possible to open Ifix scada runtime on dual monitor and how to do? Thanks
Replies
1
Views
431
Hi team! I'm starting some iFIX application migrations and some of them are being developed with the high performance library. Some objects that...
Replies
4
Views
803
Back
Top Bottom