From: Sean on
If I register an adaptor with the image acquisition toolbox, then I will not be able to register another adaptor with the same name.

I am writing my own adaptor and I need to test it. I don't want to give a new name for the same adaptor everytime. So, how do I unstall an adaptor in Matlab?
From: Dave Tarkowski on
Sean wrote:
> If I register an adaptor with the image acquisition toolbox, then I will not be able to register another adaptor with the same name.
>
> I am writing my own adaptor and I need to test it. I don't want to give a new name for the same adaptor everytime. So, how do I unstall an adaptor in Matlab?

When you register an adaptor, what you are really registering is the
file location, so if you're just compiling a new version of the adaptor
but keeping the location the same, you don't need to worry about
re-registering it.

If really do want to unregister an adaptor, you can do the following:

>> imaqregister('myadaptor.dll', 'unregister');

-Dave Tarkowski
From: Mark Jones on
Dave Tarkowski wrote:
> Sean wrote:
>> If I register an adaptor with the image acquisition toolbox, then I
>> will not be able to register another adaptor with the same name.
>> I am writing my own adaptor and I need to test it. I don't want to
>> give a new name for the same adaptor everytime. So, how do I unstall
>> an adaptor in Matlab?
>
> When you register an adaptor, what you are really registering is the
> file location, so if you're just compiling a new version of the adaptor
> but keeping the location the same, you don't need to worry about
> re-registering it.
>
> If really do want to unregister an adaptor, you can do the following:
>
> >> imaqregister('myadaptor.dll', 'unregister');
>
> -Dave Tarkowski

Also, if you want to keep MATLAB open during testing and recompilation,
you can call IMAQRESET before compilation so that the toolbox releases
the adaptor DLL. The adaptor DLL will then be reloaded the next time
you call IMAQHWINFO or VIDEOINPUT (for that adaptor).

Mark