04-02-2015 03:50 PM
I am working with a NI 1772 smart camera and Vision Builder AI 2013 and I am running an inspection that is time dependant.
When running an inspection my camera will momentarily freeze or lockup or act really slow for a few seconds, then on it's own go back to running normal. Even running a simple inspection where I am just displaying this picture to the VGA monitor it will do this. I have tried adding delays to the loop thinking the CPU is getting overloaded with no improvement. Runs good for about 60 seconds getting about 60 frames per second, then for about 10 to 15 seconds I only get about 1 frame per second, then suddenly returns to normal. This goes on like this indefinitely.
04-03-2015 08:04 AM
Hi there,
Consider running one example (with and without the video output enabled) to check if the problem is with the code, If it’s not the code (performance issues, CPU usage) then it might be the video port that is malfunctioning.
04-06-2015 09:58 AM
Ok, following up on this issue. I have resoved it. First off, I was wrong about my simple "take a picture" inspection. It wasn't as simple as I thought. It still had a little custom VI, that listened on the ethernet port for a command to "take pictures". It was the VI reference that was the issue. Apperently because my network has so much traffic, it seemed to be causing the program to slow (perhaps to process traffic not related to the camera). Disconnecting from my main network proved the easiest solution. If I run my camera and machine on it's own isolated network, I don't have the issue. Thanks for everyone who read this thread and attempted to help.