It appears that the problem is that the application is continuously
opening NI-488.2 device handles, without ever closing any of
them. Instead of calling ibdev in a loop, just call it once for
the application and save the ud that comes back. That, or when
the application is done using the handle for a moment, call ibonl(ud,
0) to close the device handle. The NI-488.2 driver has a limit of
1024 open device handles.
Craig A.
National Instruments Engineer