opening multiple simultaneous ports using Serial Macro Extensions plugin?

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

opening multiple simultaneous ports using Serial Macro Extensions plugin?

Bill Christens-Barry
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
|

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

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