User input to camera adapter

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

User input to camera adapter

T1000

Dear all,

 

is there any methode to get an user imput to/from camera adapter? for example If you see multiple camera, instead to open the first camera, ask user which camera should be opened for this gived instance?

 

Ravi




_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general
Reply | Threaded
Open this post in threaded view
|

Re: User input to camera adapter

Stuurman, Nico
Hi Ravi,

is there any methode to get an user imput to/from camera adapter? for example If you see multiple camera, instead to open the first camera, ask user which camera should be opened for this gived instance?

Device Adapters were not designed to create a UI or otherwise directly interact with the user.  All interactions go through the core.  Apart from the specific functions that a device has to implement, you can use properties to communicate with the user.  In your specific case, you want to define a pre-initialization property that specifies the specific camera (for instance, through a serial number taht you can get from the attached camera).  The hardware configuration wizard will prompt the user to select the correct value for the pre-initialization property, and this will get saved in the configuration file.  So, if there are two cameras, and you sometimes want to use one, other times the other, make two configuration files, one for each camera.

As an example, look at the Andor device adapter (https://github.com/nicost/micro-manager/blob/master/DeviceAdapters/Andor/Andor.cpp), search for the AndorCameera::OnCamera property.

Best,

Nico





_______________________________________________
micro-manager-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/micro-manager-general