(no subject)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

(no subject)

Girault France
Dear all,
 
In one of my previous post, I had a question for an automatisation of a plugin (plugin for a SensiCam camera). I've played with the source code of the plugin and now it seems to work quite well when I open it... It takes automatically an image .
Now I would like to let the plugin open while making a loop constiting of the movement of a microscope stage (written in the same macro that call my sensicam plugin).
While the loop is running, I would like to take images by calling the plugin again (which has to stay open). On the interface of this sensicam plugin, capturing an image can be done by clicking on a specific button.
 
In case, it's not possible for whatever reason, I would like to run the plugin at some point in my main macro (which runs the loop) and then close it after the automatic capture of the image.But of course, it doesn't close when I run close():
 
run("camera");   //it runs by using a shortcut otherwise, it doesn-t work
close(); //It doesn't work
 
In case anybody have any suggestions that could help me, I would be more than happy !!
 
 
many thanks !
 
france
 
Reply | Threaded
Open this post in threaded view
|

Re: SensiCam camera capture

Gabriel Landini
On Friday 23 June 2006 23:32, Girault France wrote:
> In one of my previous post, I had a question for an automatisation of a
> plugin (plugin for a SensiCam camera). I've played with the source code of
> the plugin and now it seems to work quite well when I open it... It takes
> automatically an image . Now I would like to let the plugin open while
> making a loop constiting of the movement of a microscope stage (written in
> the same macro that call my sensicam plugin). While the loop is running, I
> would like to take images by calling the plugin again (which has to stay
> open). On the interface of this sensicam plugin, capturing an image can be
> done by clicking on a specific button.

I want to solve a similar problem with the QImaging cameras plugin for IJ.
The plugin seems to be a wrapper of their QCapture windows program (which is
included in the CD that comes with the camera).

Now the problem (which I think is similar to yours?) is to trigger the capture
while the plugin is open.
Just recording the launch of the plugin opens a different thread that waits
for the user to push the "snap" button, so there is no way to snap an image
from a macro. (I asked QI for such function to be added, but I guess that one
has to wait and see...).

I have been wondering (I know this is a very ugly solution) if there is some
program that could be called from the macro language or from a plugin that
emulates or records a click on the snap button. I remember in the early days
of Windows there was some kind of macro recorder that could store this kind
of cursor movement and action.

This way, calling the recorded cursor movement/click would snap a new image
each time.
Is there such a program that runs on newer Windows versions?

Any suggestions are welcome.

Alternatively, if anybody has managed to run the QImaging SDK examples for
linux, please drop me a note. (Can't make it work in SuSE 10.1).

Cheers,

Gabriel

 
Reply | Threaded
Open this post in threaded view
|

Re: SensiCam camera capture

John Cahill
Hi Gabriel,
You may find a solution here.
http://macros.com/features.htm
It will depend on you being able to trigger the Macro Express macro
when required.
Perhaps by opening a dummy image window from imageJ?
Not pretty but it might just work!

cheers,

John Cahill
Carlisle, MA



On 6/24/06, Gabriel Landini <[hidden email]> wrote:

> On Friday 23 June 2006 23:32, Girault France wrote:
> > In one of my previous post, I had a question for an automatisation of a
> > plugin (plugin for a SensiCam camera). I've played with the source code of
> > the plugin and now it seems to work quite well when I open it... It takes
> > automatically an image . Now I would like to let the plugin open while
> > making a loop constiting of the movement of a microscope stage (written in
> > the same macro that call my sensicam plugin). While the loop is running, I
> > would like to take images by calling the plugin again (which has to stay
> > open). On the interface of this sensicam plugin, capturing an image can be
> > done by clicking on a specific button.
>
> I want to solve a similar problem with the QImaging cameras plugin for IJ.
> The plugin seems to be a wrapper of their QCapture windows program (which is
> included in the CD that comes with the camera).
>
> Now the problem (which I think is similar to yours?) is to trigger the capture
> while the plugin is open.
> Just recording the launch of the plugin opens a different thread that waits
> for the user to push the "snap" button, so there is no way to snap an image
> from a macro. (I asked QI for such function to be added, but I guess that one
> has to wait and see...).
>
> I have been wondering (I know this is a very ugly solution) if there is some
> program that could be called from the macro language or from a plugin that
> emulates or records a click on the snap button. I remember in the early days
> of Windows there was some kind of macro recorder that could store this kind
> of cursor movement and action.
>
> This way, calling the recorded cursor movement/click would snap a new image
> each time.
> Is there such a program that runs on newer Windows versions?
>
> Any suggestions are welcome.
>
> Alternatively, if anybody has managed to run the QImaging SDK examples for
> linux, please drop me a note. (Can't make it work in SuSE 10.1).
>
> Cheers,
>
> Gabriel
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: SensiCam camera capture

Vincenzo Della Mea
In reply to this post by Gabriel Landini
> Now the problem (which I think is similar to yours?) is to trigger  
> the capture
> while the plugin is open.
> Just recording the launch of the plugin opens a different thread  
> that waits
> for the user to push the "snap" button, so there is no way to snap  
> an image
> from a macro. (I asked QI for such function to be added, but I  
> guess that one
> has to wait and see...).

I remembered we had the same problem (having had a Qimaging camera  
to try it before buying) and we ended up with buying a Scion camera,  
whcih plugin is more integrated.
Another way is to use TWAIN plugins, but often there is still the  
need for user interaction.

Vincenzo