Login  Register

Re: opening multiple simultaneous ports using Serial Macro Extensions plugin?

Posted by Jerome Mutterer-3 on Feb 17, 2011; 10:44pm
URL: http://imagej.273.s1.nabble.com/opening-multiple-simultaneous-ports-using-Serial-Macro-Extensions-plugin-tp3685652p3685653.html

Hi Bill,
Unfortunately the serial macro extension plugin only supports one serial
port so far. I'll try and see how this could be improved.

Jerome.


On Thu, Feb 17, 2011 at 11:28 PM, Bill Christens-Barry <
[hidden email]> wrote:

> I've been using RXTX and the Serial Macro Extensions plugin (at
> http://imagejdocu.tudor.lu/doku.php?id=plugin:utilities:serial_macro_extensions:start)
> in macros to communicate with serial devices, using syntax like:
>
>    Ext.open(firstPort, 9600, "DATABITS_8 STOPBITS_1 PARITY_ODD");
>
> Can I simultaneously have two ports open, a la:
>
>    Ext.open(somePortSpecifier, 9600, "DATABITS_8 STOPBITS_1 PARITY_ODD");
>    Ext.open(someOtherPortSpecifier, 9600, "DATABITS_8 STOPBITS_1
> PARITY_ODD");
>
> Do I first need to construct multiple instances, something like:
>
>    Ext firstPort = new Ext();
>    Ext secondPort = new Ext();
>
> Thanks.
>
> Bill Christens-Barry
>