LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error "too many interfaces open"

My app grabs a series of images from a camera. Each time I run the app shuts down after about six or seven images and gives the error "too many interfaces open" I'm not entirely sure how to fix this, and suggestions would be appreciated.
0 Kudos
Message 1 of 4
(2,811 Views)
stellagirl wrote:

> My app grabs a series of images from a camera. Each time I run the app
> shuts down after about six or seven images and gives the error "too
> many interfaces open" I'm not entirely sure how to fix this, and
> suggestions would be appreciated.

What camera? What software? what LabVIEW version? Which functions are
you using to get the images into your app?

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 4
(2,811 Views)
Thank you for contacting National Instruments. Depending on what you are programming your application in, it sounds like you may need to take a look at your code and make sure that you are not opening the IMAQ interface (such as calling IMAQ Init.vi in LabVIEW) repeatedly in a loop or other structure.

If you are able to successfully snap and grab images through Measurement & Automation Explorer (MAX), then most likely somewhere in your program there is a small problem. Usually the easiest way to check on these types of issues and to examine what may be happening is to run a few of the shipping examples that are included with NI-IMAQ. In LabVIEW, you can open up a number of different snap and grab applications by going to Help in the menu bar and selecting
"Find Examples" to bring up the NI Example Finder. Choose to "Browse According To:" the Directory Structure and then expand the IMAQ folder. Under there you should see a number of library folders that will contain high level and low level snap and grab functions.

If you are using text based programming, then those IMAQ examples can be found at ..National Instruments\NI-IMAQ\Sample.

Regards,
Michael
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(2,811 Views)
Thanks for the prompt response, that's exactly what was happening.
0 Kudos
Message 4 of 4
(2,811 Views)