Login  Register

opening multiple simultaneous ports using Serial Macro Extensions plugin?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

opening multiple simultaneous ports using Serial Macro Extensions plugin?

Bill Christens-Barry
83 posts
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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

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

Jerome Mutterer-3
170 posts
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
>