02-15-2018 03:52 PM
I have cluster with 4 elements - objects (first three class 2DO2DI2AL, the last one class DIAL). APPINIT loop creates NOTIFIER for every object in cluster and stores notifiers references inside objects private data. MAIN loop periodically change some data inside all objects and send values via Notifier. GUI loop gets data from notifiers and displays them.
MAIN loop behaves correctly. However GUI loop shows bad data.
I went through the code again and again and I'm not able to find whats wrong.... 😞
Keep in mind that forking of cluster wire is only for getting Notifiers refs into GUI loop (no data of objects !!!). Data transfer via notifiers.
Thanks for any help...
Solved! Go to Solution.
02-15-2018 04:09 PM - edited 02-15-2018 04:12 PM
Ignore my initial post. You are using a named notifier, so all 3 classes are using the same notifier reference. Get rid of the notifier name.
Also, whats the point of the 'Appintit' Loop? You can get rid of that all together.
02-15-2018 04:31 PM
OMG. Stupid mistake. I'm sorry... 😞
Get rid of AppInit loop: Do you mean to use state machine inside RUN method including init as 1st state ?
02-15-2018 04:36 PM
@petrnowak wrote:
OMG. Stupid mistake. I'm sorry... 😞
Get rid of AppInit loop: Do you mean to use state machine inside RUN method including init as 1st state ?
No, I mean the actual while loop isnt doing anything, correct? You can keep the code inside the loop, just get rid of the loop.
02-15-2018 04:49 PM
You're right. Thanks Paul !