Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get error 66 with cRIO and the STM library after ~6 hours

Solved!
Go to solution

I have a RT Software (for the cRIO controller 9004) and a Host Software (on my development computer) which exchange data via the STM library. All works quite well, but after approximately 6 hours the host quits with a message "error 66 in STM Read Msg.vi". Why does this happen? I'm using LV 8.2 and the STM library 1.0.32.  

 

many thanks in advance.

0 Kudos
Message 1 of 5
(4,422 Views)

Hi,

 

probably one of these links might help you. 

 

 http://digital.ni.com/public.nsf/allkb/4CB799F36D0EA56A862576200064B2F9?OpenDocument

 http://digital.ni.com/public.nsf/allkb/14FFB5B2FDE57B1F86257013004DDA8B?OpenDocument

 

Seems to be a timing problem, but its interesting that the error occurs after about 6 hours. Does the error occur always after about 6 hours?

 

Greg

 

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

thank you for your answer GINNI.

 

I tested this 3 times and the error always occured after 6 hours and some minutes.

 

this one looks promising, but I don't fully understand because I can't see the picture: 

http://digital.ni.com/public.nsf/allkb/4CB799F36D0EA56A862576200064B2F9?OpenDocument

 

For sending messages I have a timed loop similar the example in the STM library (see attachment). where exactly should I put the wait function?

 

 

 

 

 

0 Kudos
Message 3 of 5
(4,377 Views)
Solution
Accepted by topic author kein

Hi kein,

 

would it be possible to send your whole RT project in order to test it. Make sure that the SubVIs are included. Thanks! One possible reason for your error might be that your VI uses 100 % of CPU capacity so the communication over TCP/IP breaks down due to leakage of resources, because the VIs priority is higher. Check the resource usage of CPU while executing. 

 

 

Regards

 

Greg

0 Kudos
Message 4 of 5
(4,358 Views)

Yes you're right. That's something I should think of earlier.

In my case the memory usage steadily increased until it overflow, and that happend in about 6 hours.

 

The reason for the overflow was the right input-node in a timed while loop (red circle in picture below). Then I deleted the error-wire, no overflow of the memory occured and everything works as expected. I was a little bit surprised that something like this could create a memory-overflow

0 Kudos
Message 5 of 5
(4,344 Views)