LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed Loops on Automatic Processor Assignment Causing LV to hang on "Resetting VI"

Hello,

I've been working on a robotic application with a "Host" and a "Target".  One has a Host.vi, the other Target.vi - both have several sub-VIs and loops containing RT FIFO functions and Network Stream functions.  My target is usually a cFP-2200, but I sometimes simulate it using desktop to laptop, vise-versa, or localhost.  I've been working on troubleshooting an odd crash scenario on my host end, usually a desktop or laptop machine involving Host.VI.  From what I can tell, no error is generated, and a timed loop structure crashes or hangs with no indication of why and nothing found in my error handling - it's just locked as if an infinite loop, but not taking any CPU or memory resources, and no wire outputs preventing a proper shutdown procedure.  Clicking the Abort button on LabView causes LabView to hang on a small "Resetting VI: Host.vi" dialog, which becomes unresponsive as do all the other LabView processes.  I have to terminate the LabView.exe process using Windows Task Manager.

 

The crash/hang event of the loop seemed independent of other variables, and would happen anywhere between 1 minute to 1.5 hours as I recorded in my debugging notes.  It didn't matter how heavily the application was used, or resources available, and disabling large segments in a Diagram Disable structure had no result - even a near-empty loop would crash (I had to keep something in there to have the program execute).  

 

With my debugging options getting limited, and me playing around more than following a structured troubleshooting technique, I set the processor assignment of all the loops from Automatic -2 to manually CPU 0.  And... not a crash since.  No idea why.  Wish I had time to look into it further and help you guys out with a more thorough investigation, but I wanted to get my limited findings published on your site so that others Googling for a similar problem can find some resolve.  All I'm really playing around with are Network Streams, RT FIFO Objects, and Timed Loop Structures, and basic controls and indicators (some local variables, no shared variables).

 

Core i7 CPU on desktop, core i5 CPU on laptop.  Windows 7 64-bit for both.

Message 1 of 3
(2,443 Views)

Any luck sorting this out? I similarily have hangs in a program using timed loops and don't know what's causing the issue.

0 Kudos
Message 2 of 3
(2,294 Views)

Hi buckidge,

 

In the last paragraph, SelrothKashka mentions his solution.

 

Have you tried to change the processor value in your timed loop?

 

Regards,

Joel I.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,269 Views)