Public Member Functions | |
ConnectionPanel () | |
Constructor. | |
Static Public Attributes | |
final int | MAXTEXT = 15 |
Sets the width of daqServer. | |
final int | PORTTEXT = 5 |
Sets the width of commandPort. | |
Package Attributes | |
JButton | connection |
Button that attempts to establish a connection with the server running the DAQ. | |
JButton | disconnect |
Button that disconnects the program from the DAQ. | |
JLabel | daqMachine |
Label for daqServer. | |
JLabel | labelComPort |
Label for commandPort. | |
JTextField | daqServer |
Displays the host where the DAQ is running. | |
JTextField | commandPort |
The remote port where the DAQ expects the connection. | |
JLabel | connectStat |
Displays either Connected or offline. |
It is used to display the components to establish a connection with the DAQ and to keep the status of that connection. It gives the options to change the server where the DAQ is running, and allows the user to specify the port where to connect to.
Definition at line 63 of file DaqPanel.java.
|
Constructor. Initializes variables and adds the buttons and the labels to the Panel. Definition at line 104 of file DaqPanel.java. References commandPort, connection, connectStat, daqMachine, daqServer, disconnect, labelComPort, MAXTEXT, and PORTTEXT. |
|
The remote port where the DAQ expects the connection. The user may modify this. 55055 is the default value. Definition at line 95 of file DaqPanel.java. Referenced by ConnectionPanel(). |
|
Button that attempts to establish a connection with the server running the DAQ. Gives up after 20 seconds. Definition at line 74 of file DaqPanel.java. Referenced by ConnectionPanel(). |
|
Displays the host where the DAQ is running. The user may modify this. 'localhost' is the default value. Definition at line 90 of file DaqPanel.java. Referenced by ConnectionPanel(). |
|
Button that disconnects the program from the DAQ. Does not do anything if already disconnected Definition at line 79 of file DaqPanel.java. Referenced by ConnectionPanel(). |