FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

while loop inside timed loop

Hi everybody!

   Please, have a look here

graziano
0 Kudos
Message 1 of 3
(6,350 Views)
I have had a read through the previous correspondents. It looks like you have had an interesting problem. Have you now solved it or are you still having issues with your CFP hanging.
 
Please advise on the what further advice you need on this case?
 
Thanks
Graham Green
Software Product Marketing
NI | Emerson
Message 2 of 3
(6,231 Views)
Hi Graham!
   I'm sorry for answering late, but I was away from the office, for system setting-up and activation supervisoring.

   Actually, I didn't solve the problem, I just decided not to use timed loops, which behaviour I can't understand in detail.... I mean, it's quite easy to use and configure a timed loop, but why my simple program hangs controller? It seems an issue related to how OS deals with timed loops.

   Common while loops work great, and are a little faster.

    I should also say that in my application, there's no "Hard real time" task, all tasks have to be executed almost at the same priority, and if one of the task fails, application fails.  Example: if the loop (task....) that handle serial communication with remote supervisoring system fails, it is useless that I collect and process data correctly from the field.... and vice versa.

   What I wanted to underline, is that timed loop have some weaknesses.  Of course, in my example I use them in an odd manner, but the fact that this HANGS cFP.... is not really desirable! As I said somewhere else, cFP does not respond to ping!!!!

   Thanks anyway for interesting in this problem, have a nice day!

graziano
0 Kudos
Message 3 of 3
(6,210 Views)