Login  Register

Re: Serial IO in ImageJ - Need help

Posted by Michael Schmid on Apr 30, 2009; 4:23pm
URL: http://imagej.273.s1.nabble.com/Re-Serial-IO-in-ImageJ-tp3692680p3692687.html

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.
>>>>>
>>>
>>>