Re: Serial IO in ImageJ

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

Re: Serial IO in ImageJ

Bob G-3
Hi there,
  I need the ability to send and receive characters using serial IO  from within an ImageJ macro under Windows.
  I used to be able to do this many years ago using NIHImage on the Mac.

  Does anyone know of a serial IO plug-in or something similar?

  I have not been able to figure out what to do with, or to  make sense out of, any of the  plug-ins or libraries I have found on the internet.

  I am not capable of Java programming.
  I can only do macro programming.  

  Alternately, perhaps someone could write such a plug-in for me for a contracting fee.

  Any help on this is greatly appreciated.

  Thanks,
  Bob
  (619)445-5156
  (619)445-5201 Fax
  (619)987-5927 Cell
Reply | Threaded
Open this post in threaded view
|

Re: Serial IO in ImageJ

Boris Epstein
Bob G wrote:

> Hi there,
>   I need the ability to send and receive characters using serial IO  from within an ImageJ macro under Windows.
>   I used to be able to do this many years ago using NIHImage on the Mac.
>
>   Does anyone know of a serial IO plug-in or something similar?
>
>   I have not been able to figure out what to do with, or to  make sense out of, any of the  plug-ins or libraries I have found on the internet.
>
>   I am not capable of Java programming.
>   I can only do macro programming.  
>
>   Alternately, perhaps someone could write such a plug-in for me for a contracting fee.
>
>   Any help on this is greatly appreciated.
>
>   Thanks,
>   Bob
>   (619)445-5156
>   (619)445-5201 Fax
>   (619)987-5927 Cell
>  
Bob,

What sort of I/O is this? What is it used for?

--
*Boris Epstein
National Resource For Imaging Mass Spectrometry
<http://www.nrims.hms.harvard.edu/>
Cambridge, MA
Mobile: (617) 816-9654*


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.
Reply | Threaded
Open this post in threaded view
|

Re: Serial IO in ImageJ

Michael Schmid
Hi Bob,

have a look at eSlide

  http://www.eslide.net/ijstage.php

Michael
_____________________________________________________________

On Wed, April 29, 2009 21:50, Boris Epstein wrote:

> Bob G wrote:
>> Hi there,
>>   I need the ability to send and receive characters using serial IO
>> from within an ImageJ macro under Windows.
>>   I used to be able to do this many years ago using NIHImage on the Mac.
>>
>>   Does anyone know of a serial IO plug-in or something similar?
>>
>>   I have not been able to figure out what to do with, or to  make sense
>> out of, any of the  plug-ins or libraries I have found on the
>> internet.
>>
>>   I am not capable of Java programming.
>>   I can only do macro programming.
>>
>>   Alternately, perhaps someone could write such a plug-in for me for a
>> contracting fee.
>>
>>   Any help on this is greatly appreciated.
>>
>>   Thanks,
>>   Bob
>>   (619)445-5156
>>   (619)445-5201 Fax
>>   (619)987-5927 Cell
>>
> Bob,
>
> What sort of I/O is this? What is it used for?
>
> --
> *Boris Epstein
> National Resource For Imaging Mass Spectrometry
> <http://www.nrims.hms.harvard.edu/>
> Cambridge, MA
> Mobile: (617) 816-9654*
>
>
> The information in this e-mail is intended only for the person to whom it
> is
> addressed. If you believe this e-mail was sent to you in error and the
> e-mail
> contains patient information, please contact the Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
Reply | Threaded
Open this post in threaded view
|

Re: Serial IO in ImageJ

Michael Schmid
Hi Bob,

with Windows, I had no trouble to get RXTX running -
   put RXTXcomm.jar into Program Files\ImageJ\jre\lib\ext
   put rxtxSerial.dll into Program Files\ImageJ\jre\bin

For IJSerial itself, see the eslide.net web site, it is simply an  
ImageJ plugin with an additional properties file. These two files  
should be in Program Files\ImageJ\plugins\Serial

On Mac OSX, there is a problem that is not correctly described in the  
documentation:
Directory /var/lock must exist and have write permission for the user  
running ImageJ. RXTX creates lock files there to avoid different  
programs accessing the serial line at the same time. After a program  
crash it might be necessary to delete the lock file there to get it  
running again.

Michael
________________________________________________________________

On 29 Apr 2009, at 22:15, <[hidden email]>  
<[hidden email]> wrote:

> I spent  a whole day trying to figure out how to use it....with no  
> luck.
>
> I am not a 'new age' programmer.
> All these libraries, configurations, directory locations etc. make  
> no sense to me, and I am completely unable to understand them or  
> use them.
>
> Bob
>
> ----- Original Message ----- From: "Michael Schmid"
>
>> Hi Bob,
>>
>> have a look at eSlide
>>
>>  http://www.eslide.net/ijstage.php
>>
>> Michael
>> _____________________________________________________________
>>
>> On Wed, April 29, 2009 21:50, Boris Epstein wrote:
>>> Bob G wrote:
>>>> Hi there,
>>>>   I need the ability to send and receive characters using serial IO
>>>> from within an ImageJ macro under Windows.
>>>>   I used to be able to do this many years ago using NIHImage on  
>>>> the Mac.
>>>>
>>>>   Does anyone know of a serial IO plug-in or something similar?
>>>>
>>>>   I have not been able to figure out what to do with, or to  
>>>> make sense
>>>> out of, any of the  plug-ins or libraries I have found on the
>>>> internet.
>>>>
>>>>   I am not capable of Java programming.
>>>>   I can only do macro programming.
>>>>
>>>>   Alternately, perhaps someone could write such a plug-in for me  
>>>> for a
>>>> contracting fee.
>>>>
>>>>   Any help on this is greatly appreciated.
>>>>
>>>>   Thanks,
>>>>   Bob
>>>>   (619)445-5156
>>>>   (619)445-5201 Fax
>>>>   (619)987-5927 Cell
>>>>
>>> Bob,
>>>
>>> What sort of I/O is this? What is it used for?
>>>
>>> --
>>> *Boris Epstein
>>> National Resource For Imaging Mass Spectrometry
>>> <http://www.nrims.hms.harvard.edu/>
>>> Cambridge, MA
>>> Mobile: (617) 816-9654*
>>>
>>>
>>> The information in this e-mail is intended only for the person to  
>>> whom it
>>> is
>>> addressed. If you believe this e-mail was sent to you in error  
>>> and the
>>> e-mail
>>> contains patient information, please contact the Partners Compliance
>>> HelpLine at
>>> http://www.partners.org/complianceline . If the e-mail was sent  
>>> to you in
>>> error
>>> but does not contain patient information, please contact the  
>>> sender and
>>> properly
>>> dispose of the e-mail.
>>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Serial IO in ImageJ - Need help

Bob G-3
Hi,

Thanks for your e-mail, but I am  not knowledgeable of the things to do.

See questions below:

----- Original Message -----
From: "Michael Schmid" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, April 30, 2009 2:29 AM
Subject: Re: Serial IO in ImageJ


> Hi Bob,
>
> with Windows, I had no trouble to get RXTX running -
>   put RXTXcomm.jar into Program Files\ImageJ\jre\lib\ext
>   put rxtxSerial.dll into Program Files\ImageJ\jre\bin

BOB: I have tried to find, identify, and locate these files on the web
without success.
BOB: Are these single files?, directories?, several files?
BOB: Where do I find these files?
BOB: How many files are there? and what are their EXACT names?
BOB:  There seem to be many files related to 'RXTX'.

>
> For IJSerial itself, see the eslide.net web site, it is simply an  ImageJ
> plugin with an additional properties file. These two files  should be in
> Program Files\ImageJ\plugins\Serial

BOB: I have tried to find, identify, and locate these files also on the web
without success.
BOB: Are these single files?, directories?, several files?
BOB: Where do I find these EXACT files?
BOB: How many files are there? and what are there EXACT names?
BOB:  Also, where is deascription of the command syntax to use serial IO in
an ImageJ macro?

>
> On Mac OSX, there is a problem that is not correctly described in the
> documentation:
> Directory /var/lock must exist and have write permission for the user
> running ImageJ. RXTX creates lock files there to avoid different  programs
> accessing the serial line at the same time. After a program  crash it
> might be necessary to delete the lock file there to get it  running again.
>
> Michael
> ________________________________________________________________
>
> On 29 Apr 2009, at 22:15, <[hidden email]>
> <[hidden email]> wrote:
>
>> I spent  a whole day trying to figure out how to use it....with no  luck.
>>
>> I am not a 'new age' programmer.
>> All these libraries, configurations, directory locations etc. make  no
>> sense to me, and I am completely unable to understand them or  use them.
>>
>> Bob
>>
>> ----- Original Message ----- From: "Michael Schmid"
>>
>>> Hi Bob,
>>>
>>> have a look at eSlide
>>>
>>>  http://www.eslide.net/ijstage.php
>>>
>>> Michael
>>> _____________________________________________________________
>>>
>>> On Wed, April 29, 2009 21:50, Boris Epstein wrote:
>>>> Bob G wrote:
>>>>> Hi there,
>>>>>   I need the ability to send and receive characters using serial IO
>>>>> from within an ImageJ macro under Windows.
>>>>>   I used to be able to do this many years ago using NIHImage on  the
>>>>> Mac.
>>>>>
>>>>>   Does anyone know of a serial IO plug-in or something similar?
>>>>>
>>>>>   I have not been able to figure out what to do with, or to   make
>>>>> sense
>>>>> out of, any of the  plug-ins or libraries I have found on the
>>>>> internet.
>>>>>
>>>>>   I am not capable of Java programming.
>>>>>   I can only do macro programming.
>>>>>
>>>>>   Alternately, perhaps someone could write such a plug-in for me  for
>>>>> a
>>>>> contracting fee.
>>>>>
>>>>>   Any help on this is greatly appreciated.
>>>>>
>>>>>   Thanks,
>>>>>   Bob
>>>>>   (619)445-5156
>>>>>   (619)445-5201 Fax
>>>>>   (619)987-5927 Cell
>>>>>
>>>> Bob,
>>>>
>>>> What sort of I/O is this? What is it used for?
>>>>
>>>> --
>>>> *Boris Epstein
>>>> National Resource For Imaging Mass Spectrometry
>>>> <http://www.nrims.hms.harvard.edu/>
>>>> Cambridge, MA
>>>> Mobile: (617) 816-9654*
>>>>
>>>>
>>>> The information in this e-mail is intended only for the person to  whom
>>>> it
>>>> is
>>>> addressed. If you believe this e-mail was sent to you in error  and the
>>>> e-mail
>>>> contains patient information, please contact the Partners Compliance
>>>> HelpLine at
>>>> http://www.partners.org/complianceline . If the e-mail was sent  to you
>>>> in
>>>> error
>>>> but does not contain patient information, please contact the  sender
>>>> and
>>>> properly
>>>> dispose of the e-mail.
>>>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Serial IO in ImageJ

Bob G-3
In reply to this post by Bob G-3
Hi Everyone,

I have found all instructions and suggestions from people of how to do this
with eslide.net and RXTX  to be unclear and incomplete.  I am not a
programmer and do not understand how to find, locate, use libraries of files
etc. There are many requirements regarding directoy structures, locations of
files, file names etc. which must be in a very exact way, and are never
described EXACTLY.  And when these descriptions are not EXACT, nothing works
because I am unable to follow incomplete instructions.

I would like to pay someone to provide me with a COMPLETELY configured
ImageJ progam and directory structure (already setup, or with COMPLETE
instructions for a dummy), to be able to use serial IO within an ImageJ
macro. It must also describe the EXACT command syntax to creat commands
within an ImageJ macro which can send and receive characters over serial IO.

Can anybody do this?

Bob
(619)445-5156
(619)445-5201 Fax
(619)987-5927 Cell
Reply | Threaded
Open this post in threaded view
|

Re: Serial IO in ImageJ - Need help

Michael Schmid
In reply to this post by Bob G-3
Hi Bob,

go to http://rxtx.qbang.org/wiki/index.php/Download
and get
rxtx-2.1-7-bins-r2.zip

Unzip it (double-click).
You will find RXTXcomm.jar in the folder itself.
Got to subfolder WINDOWS and its subfolder, there you get rxtxSerial.dll

See my previous mail for where to move these.

In the ...\ImageJ\plugins directory, create a new directory named  
"serial"
Get file http://www.eslide.net/IJSerial-1.1.zip
Unzip (double click) it.
 From subolder IJSerialPlugin, move files initDevice.properties and  
serial_plugin.java to the new ...\ImageJ\plugins\serial folder.

In ImageJ, use 'Compile&Run' to compile serial_plugin.java.
Then restart ImageJ.

Michael
________________________________________________________________

On 30 Apr 2009, at 18:07, Bob G wrote:

> Hi,
>
> Thanks for your e-mail, but I am  not knowledgeable of the things  
> to do.
>
> See questions below:
>
> ----- Original Message ----- From: "Michael Schmid"  
> <[hidden email]>
> To: <[hidden email]>
> Sent: Thursday, April 30, 2009 2:29 AM
> Subject: Re: Serial IO in ImageJ
>
>
>> Hi Bob,
>>
>> with Windows, I had no trouble to get RXTX running -
>>   put RXTXcomm.jar into Program Files\ImageJ\jre\lib\ext
>>   put rxtxSerial.dll into Program Files\ImageJ\jre\bin
>
> BOB: I have tried to find, identify, and locate these files on the  
> web without success.
> BOB: Are these single files?, directories?, several files?
> BOB: Where do I find these files?
> BOB: How many files are there? and what are their EXACT names?
> BOB:  There seem to be many files related to 'RXTX'.
>
>>
>> For IJSerial itself, see the eslide.net web site, it is simply an  
>> ImageJ plugin with an additional properties file. These two files  
>> should be in Program Files\ImageJ\plugins\Serial
>
> BOB: I have tried to find, identify, and locate these files also on  
> the web without success.
> BOB: Are these single files?, directories?, several files?
> BOB: Where do I find these EXACT files?
> BOB: How many files are there? and what are there EXACT names?
> BOB:  Also, where is deascription of the command syntax to use  
> serial IO in an ImageJ macro?
>
>>
>> On Mac OSX, there is a problem that is not correctly described in  
>> the documentation:
>> Directory /var/lock must exist and have write permission for the  
>> user running ImageJ. RXTX creates lock files there to avoid  
>> different  programs accessing the serial line at the same time.  
>> After a program  crash it might be necessary to delete the lock  
>> file there to get it  running again.
>>
>> Michael
>> ________________________________________________________________
>>
>> On 29 Apr 2009, at 22:15, <[hidden email]>  
>> <[hidden email]> wrote:
>>
>>> I spent  a whole day trying to figure out how to use it....with  
>>> no  luck.
>>>
>>> I am not a 'new age' programmer.
>>> All these libraries, configurations, directory locations etc.  
>>> make  no sense to me, and I am completely unable to understand  
>>> them or  use them.
>>>
>>> Bob
>>>
>>> ----- Original Message ----- From: "Michael Schmid"
>>>
>>>> Hi Bob,
>>>>
>>>> have a look at eSlide
>>>>
>>>>  http://www.eslide.net/ijstage.php
>>>>
>>>> Michael
>>>> _____________________________________________________________
>>>>
>>>> On Wed, April 29, 2009 21:50, Boris Epstein wrote:
>>>>> Bob G wrote:
>>>>>> Hi there,
>>>>>>   I need the ability to send and receive characters using  
>>>>>> serial IO
>>>>>> from within an ImageJ macro under Windows.
>>>>>>   I used to be able to do this many years ago using NIHImage  
>>>>>> on  the Mac.
>>>>>>
>>>>>>   Does anyone know of a serial IO plug-in or something similar?
>>>>>>
>>>>>>   I have not been able to figure out what to do with, or to    
>>>>>> make sense
>>>>>> out of, any of the  plug-ins or libraries I have found on the
>>>>>> internet.
>>>>>>
>>>>>>   I am not capable of Java programming.
>>>>>>   I can only do macro programming.
>>>>>>
>>>>>>   Alternately, perhaps someone could write such a plug-in for  
>>>>>> me  for a
>>>>>> contracting fee.
>>>>>>
>>>>>>   Any help on this is greatly appreciated.
>>>>>>
>>>>>>   Thanks,
>>>>>>   Bob
>>>>>>   (619)445-5156
>>>>>>   (619)445-5201 Fax
>>>>>>   (619)987-5927 Cell
>>>>>>
>>>>> Bob,
>>>>>
>>>>> What sort of I/O is this? What is it used for?
>>>>>
>>>>> --
>>>>> *Boris Epstein
>>>>> National Resource For Imaging Mass Spectrometry
>>>>> <http://www.nrims.hms.harvard.edu/>
>>>>> Cambridge, MA
>>>>> Mobile: (617) 816-9654*
>>>>>
>>>>>
>>>>> The information in this e-mail is intended only for the person  
>>>>> to  whom it
>>>>> is
>>>>> addressed. If you believe this e-mail was sent to you in error  
>>>>> and the
>>>>> e-mail
>>>>> contains patient information, please contact the Partners  
>>>>> Compliance
>>>>> HelpLine at
>>>>> http://www.partners.org/complianceline . If the e-mail was  
>>>>> sent  to you in
>>>>> error
>>>>> but does not contain patient information, please contact the  
>>>>> sender and
>>>>> properly
>>>>> dispose of the e-mail.
>>>>>
>>>
>>>
Reply | Threaded
Open this post in threaded view
|

Re: Serial IO in ImageJ

Vincenzo Della Mea-2
In reply to this post by Bob G-3
Dear Bob,
we might arrange some support in installation using remote desktop or  
VNC (for free). However a minimum expertise is needed to write macros:  
macro syntax is not that difficult, but usually difficulties are in  
the serial protocol (which is up to you), and in peripheral  
configuration (do you know baud rate, stop bits, parity, etc?).

Regards,
Vincenzo (from eSlide)

Il giorno 30/apr/09, alle ore 18:22, Bob G ha scritto:

> Hi Everyone,
>
> I have found all instructions and suggestions from people of how to  
> do this
> with eslide.net and RXTX  to be unclear and incomplete.  I am not a
> programmer and do not understand how to find, locate, use libraries  
> of files
> etc. There are many requirements regarding directoy structures,  
> locations of
> files, file names etc. which must be in a very exact way, and are  
> never
> described EXACTLY.  And when these descriptions are not EXACT,  
> nothing works
> because I am unable to follow incomplete instructions.
>
> I would like to pay someone to provide me with a COMPLETELY configured
> ImageJ progam and directory structure (already setup, or with COMPLETE
> instructions for a dummy), to be able to use serial IO within an  
> ImageJ
> macro. It must also describe the EXACT command syntax to creat  
> commands
> within an ImageJ macro which can send and receive characters over  
> serial IO.
>
> Can anybody do this?
>
> Bob
> (619)445-5156
> (619)445-5201 Fax
> (619)987-5927 Cell

* 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 for the Family of International  
Classifications