Control external

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

Control external

CRISTOBAL PEREZ
 
Hi ImageJ and Java experts!
 
I´m extremely new using ImageJ and programming
 
I have no idea if it is possible to control external devices through ImageJ or Java software
 
In other words, I need to turn on an external electrical motor if the image has specific characteristics
I hope you understood me,  if not , please tell me
 
Any help is really appreciated
 
I.E. Cristóbal Pérez
Universidad Autónoma de San Luis Potosí,
Sierra Leona No. 550.
San Luis Potosi, S.L.P. , México
 
 
 
 
 
_________________________________________________________________
Juega y gana, tenemos 3 Xbox a la semana.
http://club.prodigymsn.com/ 
Reply | Threaded
Open this post in threaded view
|

Re: Control external

Vincenzo Della Mea-2
Il giorno 10/giu/08, alle ore 17:09, CRISTOBAL PEREZ ha scritto:

>
> Hi ImageJ and Java experts!
>
> I´m extremely new using ImageJ and programming
>
> I have no idea if it is possible to control external devices through  
> ImageJ or Java software
>
> In other words, I need to turn on an external electrical motor if  
> the image has specific characteristics
> I hope you understood me,  if not , please tell me

if there is serial controller attached to it, you could use IJserial (http://www.eslide.net/ijstage.php 
  ). Of course, this makes sense only if you need the rest of ImageJ.

Regards,
Vincenzo



* Vincenzo Della Mea
* Medical Informatics, Telemedicine and Ehealth Lab
* University of Udine, Italy
* http://www.dimi.uniud.it/dellamea/ - http://mitel.dimi.uniud.it/  -  http://www.eslide.net
* WHO Italian Collaborating Centre on Classifications
Reply | Threaded
Open this post in threaded view
|

Antwort: Control external

Joachim Wesner
In reply to this post by CRISTOBAL PEREZ
Hi Cristobal,

generally, everything that can be controlled from Java, can be controlled
from ImageJ.

As Java originally was conceived totally HW independent, it has some
problems
controlling unusual hardware, so it depends:

What is the interface through that you are working (serial, USB, PCI-card
etc.)?

Speed you require (s, ms, µs, ns)?

Native OS DLLs rep. shared libraries can be called, but this likely
requires some specific wrapper
code in C++ to be written.

For simple, slow tasks (~100ms) , it seems that people had success with the
Velleman USB-board

http://www.velleman.be/ot/en/product/view/?id=351346

Sincerely

Joachim

ImageJ Interest Group <[hidden email]> schrieb am 10.06.2008 17:09:12:

>
> Hi ImageJ and Java experts!
>
> I´m extremely new using ImageJ and programming
>
> I have no idea if it is possible to control external devices through
> ImageJ or Java software
>
> In other words, I need to turn on an external electrical motor if
> the image has specific characteristics
> I hope you understood me,  if not , please tell me
>
> Any help is really appreciated
>
> I.E. Cristóbal Pérez
> Universidad Autónoma de San Luis Potosí,
> Sierra Leona No. 550.
> San Luis Potosi, S.L.P. , México
>
>
>
>
>
> _________________________________________________________________
> Juega y gana, tenemos 3 Xbox a la semana.
> http://club.prodigymsn.com/


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: Control external

CRISTOBAL PEREZ
In reply to this post by Vincenzo Della Mea-2
Thanks for your help Vincenzo.
 
Unfortunalety the computer I use doesn´t have serial port,
Actually I would prefer to work with USB because it is easier for me
to find USB ports
 
On the other hand, I have already checked the link you show me
and it was very helpful for me because I know other option to work with
 
Sincerely
 
Cristóbal Pérez
 
Thank You again
 
> Date: Tue, 10 Jun 2008 17:31:51 +0200> From: [hidden email]> Subject: Re: Control external> To: [hidden email]> > Il giorno 10/giu/08, alle ore 17:09, CRISTOBAL PEREZ ha scritto:> > >> > Hi ImageJ and Java experts!> >> > I´m extremely new using ImageJ and programming> >> > I have no idea if it is possible to control external devices through > > ImageJ or Java software> >> > In other words, I need to turn on an external electrical motor if > > the image has specific characteristics> > I hope you understood me, if not , please tell me> > if there is serial controller attached to it, you could use IJserial (http://www.eslide.net/ijstage.php > ). Of course, this makes sense only if you need the rest of ImageJ.> > Regards,> Vincenzo> > > > * Vincenzo Della Mea> * Medical Informatics, Telemedicine and Ehealth Lab> * University of Udine, Italy> * http://www.dimi.uniud.it/dellamea/ - http://mitel.dimi.uniud.it/ - http://www.eslide.net> * WHO Italian Collaborating Centre on Classifications
_________________________________________________________________
P.D. Checa las nuevas fotos de mi Space
http://home.services.spaces.live.com/
Reply | Threaded
Open this post in threaded view
|

Re: Antwort: Control external

CRISTOBAL PEREZ
In reply to this post by Joachim Wesner
Thanks for your useful help Joachim
The interface through I want to work is USB port and I don´t need high Speed ( about  ~500ms) . It is a simple application
 
So, I think It could be appropiated to work with Velleman USB-board.
However I have to investigate more about this USB - Board
 
Sincerely
 
Cristóbal Pérez> Date: Tue, 10 Jun 2008 17:43:38 +0200> From: [hidden email]> Subject: Antwort: Control external> To: [hidden email]> > Hi Cristobal,> > generally, everything that can be controlled from Java, can be controlled> from ImageJ.> > As Java originally was conceived totally HW independent, it has some> problems> controlling unusual hardware, so it depends:> > What is the interface through that you are working (serial, USB, PCI-card> etc.)?> > Speed you require (s, ms, µs, ns)?> > Native OS DLLs rep. shared libraries can be called, but this likely> requires some specific wrapper> code in C++ to be written.> > For simple, slow tasks (~100ms) , it seems that people had success with the> Velleman USB-board> > http://www.velleman.be/ot/en/product/view/?id=351346> > Sincerely> > Joachim> > ImageJ Interest Group <[hidden email]> schrieb am 10.06.2008 17:09:12:> > >> > Hi ImageJ and Java experts!> >> > I´m extremely new using ImageJ and programming> >> > I have no idea if it is possible to control external devices through> > ImageJ or Java software> >> > In other words, I need to turn on an external electrical motor if> > the image has specific characteristics> > I hope you understood me, if not , please tell me> >> > Any help is really appreciated> >> > I.E. Cristóbal Pérez> > Universidad Autónoma de San Luis Potosí,> > Sierra Leona No. 550.> > San Luis Potosi, S.L.P. , México> >> >> >> >> >> > _________________________________________________________________> > Juega y gana, tenemos 3 Xbox a la semana.> > http://club.prodigymsn.com/> > > ______________________________________________________________________> This email has been scanned by the MessageLabs Email Security System.> For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________
_________________________________________________________________
P.D. Checa las nuevas fotos de mi Space
http://home.services.spaces.live.com/
Reply | Threaded
Open this post in threaded view
|

Re: Antwort: Control external

Nico Stuurman-4
> Thanks for your useful help Joachim
> The interface through I want to work is USB port and I don´t need  
> high Speed ( about  ~500ms) . It is a simple application
>
> So, I think It could be appropiated to work with Velleman USB-board.
> However I have to investigate more about this USB - Board

Micro-Manager (http://micro-manager.org) has drivers for both the  
Velleman K8055 and K8061 IO boards.  If your camera is supported in  
Micro-Manager as well, it should be straight forward to acquire  
images, analyze their content and send signals to the IO board based  
on the analysis.

Best,

Nico

>
> Sincerely
>
> Cristóbal Pérez> Date: Tue, 10 Jun 2008 17:43:38 +0200> From: [hidden email]
> > Subject: Antwort: Control external> To: [hidden email]> > Hi  
> Cristobal,> > generally, everything that can be controlled from  
> Java, can be controlled> from ImageJ.> > As Java originally was  
> conceived totally HW independent, it has some> problems> controlling  
> unusual hardware, so it depends:> > What is the interface through  
> that you are working (serial, USB, PCI-card> etc.)?> > Speed you  
> require (s, ms, µs, ns)?> > Native OS DLLs rep. shared libraries can  
> be called, but this likely> requires some specific wrapper> code in C
> ++ to be written.> > For simple, slow tasks (~100ms) , it seems that  
> people had success with the> Velleman USB-board> > http://www.velleman.be/ot/en/product/view/?id=351346 
> > > Sincerely> > Joachim> > ImageJ Interest Group  
> <[hidden email]> schrieb am 10.06.2008 17:09:12:> > >> > Hi  
> ImageJ and Java experts!> >> > I´m extremely new using ImageJ and  
> programming> >> > I have no idea if it is possible to control  
> external devices through> > ImageJ or Java software> >> > In other  
> words, I need to turn on an external electrical motor if> > the  
> image has specific characteristics> > I hope you understood me, if  
> not , please tell me> >> > Any help is really appreciated> >> > I.E.  
> Cristóbal Pérez> > Universidad Autónoma de San Luis Potosí,> >  
> Sierra Leona No. 550.> > San Luis Potosi, S.L.P. , México> >> >> >>  
> >> >> >  
> _________________________________________________________________> >  
> Juega y gana, tenemos 3 Xbox a la semana.> > http://club.prodigymsn.com/ 
> > > >  
> ______________________________________________________________________
> > This email has been scanned by the MessageLabs Email Security  
> System.> For more information please visit http://www.messagelabs.com/email 
>  >  
> ______________________________________________________________________
> _________________________________________________________________
> P.D. Checa las nuevas fotos de mi Space
> http://home.services.spaces.live.com/
Reply | Threaded
Open this post in threaded view
|

Re: Control external

Peter Stierlen
In reply to this post by CRISTOBAL PEREZ
Dear Cristobal,

I use the Velleman USB-board for a selfmade 3d laserscanner controlling 2
steppers (optional 3 stepper) and the laser switch. The USB-board is
connected via the Nanotec SMC11 boards (1/8 step mode) to the steppers.
The board is fast enough for my application but up to now the image grabbing
from the Quickcam Pro9000 is the bottle neck.

Controlling the board by Java/ImageJ is done with twusb.dll twusb.jar
http://www.wenzlaff.de/twusb.html

put twusb.jar into your Imagej plugin folder
put twusb.dll into your windows/system32 folder

all works fine also with Vista

...
import de.wenzlaff.twusb.schnittstelle.TWUsb;
import de.wenzlaff.twusb.schnittstelle.exception.TWUsbException;
...

        try{
        TWUsb.getInfo();
        TWUsb.OpenDevice(TWUsb.ADDRESSE_0);
  TWUsb.ClearDigitalChannel(TWUsb.DIGITALER_AUSGABE_KANAL_1);

...


best regards

Peter