LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange LVOOP / Notifier problem

Solved!
Go to solution

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...


*** LV2018 ***
0 Kudos
Message 1 of 5
(2,642 Views)
Solution
Accepted by topic author petrnowak

 

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. 

0 Kudos
Message 2 of 5
(2,636 Views)

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 ?


*** LV2018 ***
0 Kudos
Message 3 of 5
(2,620 Views)

@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. 

0 Kudos
Message 4 of 5
(2,617 Views)

You're right. Thanks Paul !


*** LV2018 ***
0 Kudos
Message 5 of 5
(2,609 Views)