![]() It then passes that object to the constructor for java.io.OutputStreamWriter. It calls a static method to return an OutputStream object for the serial port. The serialexample program uses the I/O package java.io, to write to and read from the serial port. (The example can be run without an oscilloscope.) The serialexample program then calls several methods on the SerialPort object to configure the serial port. The program calls the open method on that object to return an object of the class, which describes the low-level interface to the COM1 serial port, assumed to be connected to a Tektronix oscilloscope. ![]() After defining port configuration variables, serialexample constructs a object, to manage the serial communications port. The serialexample program uses classes of the Java API m package, which support access to communications ports. ![]() Example - Communicating Through a Serial Port :: Calling Java from MATLAB (External Interfaces) External InterfacesĮxample - Communicating Through a Serial Port
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |