Class SerialPortLockTest
- java.lang.Object
-
- ptolemy.actor.lib.jjs.modules.serial.test.SerialPortLockTest
-
public class SerialPortLockTest extends java.lang.Object
Test the Serial Port locking- Since:
- Ptolemy II 11.0
- Version:
- $Id$
- Author:
- Christopher Brooks
- Pt.AcceptedRating:
- red (cxh)
- Pt.ProposedRating:
- red (cxh)
-
-
Constructor Summary
Constructors Constructor Description SerialPortLockTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Test for a locking problemstatic gnu.io.CommPort
openPort()
Open the first non-Bluetooth and non-cu Serial port.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
Test for a locking problemUsage:
java -classpath ${PTII}:${PTII}/lib/nrjavaserial-3.11.0.devel.jar ptolemy.actor.lib.jjs.modules.serial.test.SerialPortLockTest
- Parameters:
args
- Ignored- Throws:
java.lang.Exception
- Not thrown
-
openPort
public static gnu.io.CommPort openPort() throws java.lang.Throwable
Open the first non-Bluetooth and non-cu Serial port.- Returns:
- the port that was opened
- Throws:
java.lang.Throwable
- If looking up a port failed.
-
-