Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Hard-release camera from IMAQ-1394 using img1394WriteBlock() ?

Hi,

When developing, my program sometimes crashes, and then the camera is not released (using imaq1394Close).

Since the camera is not released, then I cannot start the application again, and access the camera. Windows thinks that it is still in use, since I never got to call imaq1394Close before the program crashed.

Sometimes I actually have to reboot my PC in order to regain access to the camera.

So I was wondering if anybody has made a small .exe file (or has some sourcecode) for using img1394WriteBlock() to "hard-release" the camera?

As far as I have understood, img1394WriteBlock() writes a block to the register. But I am not sure what are the correct input parameters for freeing the camera.


I appreciate any comments!

Torbjørn
0 Kudos
Message 1 of 2
(2,887 Views)
Hello Torbjorn,

You can access img1394WriteBlock() from the imaq1394.dll. This has been mentioned in a previous thread called "Can I access the camera registers in version 1.1 of the IMAQ 1394 driver?"

BB_Phil
0 Kudos
Message 2 of 2
(2,887 Views)