-
Notifications
You must be signed in to change notification settings - Fork 0
/
Diseno.fxml
157 lines (155 loc) · 8.32 KB
/
Diseno.fxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.chart.CategoryAxis?>
<?import javafx.scene.chart.LineChart?>
<?import javafx.scene.chart.NumberAxis?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.CheckBox?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.text.Font?>
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="745.0" prefWidth="1455.0" style="-fx-background-color: 255,255,255;" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="Controller.AltaController">
<children>
<Button fx:id="Boton_Graficar" layoutX="375.0" layoutY="631.0" maxHeight="-Infinity" maxWidth="-Infinity" mnemonicParsing="false" onAction="#Graficar" prefHeight="87.0" prefWidth="172.0" style="-fx-background-radius: 15px;" text="PLOT">
<font>
<Font name="Consolas Bold" size="25.0" />
</font></Button>
<CheckBox fx:id="Digital_O_1" alignment="CENTER" contentDisplay="TOP" layoutX="53.0" layoutY="477.0" mnemonicParsing="false" onAction="#Digital_Output" prefHeight="20.0" prefWidth="67.0" text="RED" textAlignment="CENTER">
<font>
<Font name="Consolas" size="20.0" />
</font></CheckBox>
<LineChart fx:id="Grafica" animated="false" layoutX="330.0" layoutY="91.0" prefHeight="541.0" prefWidth="1111.0" title="REAL TIME GRAPHICS">
<xAxis>
<CategoryAxis label="TIME" prefHeight="47.0" prefWidth="1051.0" tickLabelGap="0.0">
<tickLabelFont>
<Font name="Consolas" size="7.0" />
</tickLabelFont></CategoryAxis>
</xAxis>
<yAxis>
<NumberAxis side="LEFT">
<tickLabelFont>
<Font size="12.0" />
</tickLabelFont></NumberAxis>
</yAxis>
</LineChart>
<ComboBox fx:id="Opciones" layoutX="171.0" layoutY="325.0" onAction="#Can_Plot" prefWidth="150.0" promptText="CHANNEL" visibleRowCount="5" />
<TextField fx:id="Text_Muestreo" layoutX="171.0" layoutY="139.0" prefHeight="34.0" prefWidth="150.0">
<font>
<Font name="Consolas Italic" size="18.0" />
</font></TextField>
<Button fx:id="Boton_Stop" layoutX="579.0" layoutY="631.0" mnemonicParsing="false" onAction="#Stop_Action" prefHeight="87.0" prefWidth="172.0" style="-fx-background-radius: 15px;" text="STOP">
<font>
<Font name="Consolas Bold" size="26.0" />
</font></Button>
<Label fx:id="Texto" layoutX="19.0" layoutY="322.0" prefHeight="31.0" prefWidth="141.0" text="ANALOG INPUT: ">
<font>
<Font name="Consolas" size="18.0" />
</font></Label>
<Label alignment="CENTER" layoutX="68.0" layoutY="35.0" prefHeight="30.0" prefWidth="208.0" text="CONFIGURATIONS" textAlignment="CENTER">
<font>
<Font name="Consolas Bold" size="25.0" />
</font></Label>
<ComboBox fx:id="Opciones_Puertos" layoutX="106.0" layoutY="91.0" prefHeight="25.0" prefWidth="150.0" promptText="To be selected" />
<ComboBox fx:id="Opciones_D" layoutX="171.0" layoutY="376.0" onAction="#Can_Plot" prefWidth="150.0" promptText="CHANNEL" />
<Label fx:id="Texto1" layoutX="14.0" layoutY="373.0" prefHeight="31.0" prefWidth="150.0" text="DIGITAL INPUT:">
<font>
<Font name="Consolas" size="18.0" />
</font></Label>
<CheckBox fx:id="Digital_O_2" alignment="CENTER" layoutX="181.0" layoutY="477.0" mnemonicParsing="false" onAction="#Digital_Output" prefHeight="27.0" prefWidth="105.0" text="YELLOW">
<font>
<Font name="Consolas" size="20.0" />
</font></CheckBox>
<CheckBox fx:id="Digital_O_3" alignment="CENTER" layoutX="55.0" layoutY="528.0" mnemonicParsing="false" onAction="#Digital_Output" prefHeight="17.0" prefWidth="86.0" text="BLUE">
<font>
<Font name="Consolas" size="20.0" />
</font></CheckBox>
<CheckBox fx:id="Digital_O_4" alignment="CENTER" layoutX="181.0" layoutY="528.0" mnemonicParsing="false" onAction="#Digital_Output" prefHeight="17.0" prefWidth="96.0" text="GREEN">
<font>
<Font name="Consolas" size="20.0" />
</font></CheckBox>
<Label fx:id="Texto11" alignment="CENTER" contentDisplay="CENTER" layoutX="89.0" layoutY="422.0" prefHeight="31.0" prefWidth="165.0" text="DIGITAL OUTPUTS:" textAlignment="CENTER">
<font>
<Font name="Consolas Bold" size="18.0" />
</font></Label>
<Button fx:id="Boton_Save" layoutX="785.0" layoutY="631.0" mnemonicParsing="false" onAction="#save" prefHeight="87.0" prefWidth="172.0" style="-fx-background-radius: 15px;" text="SAVE">
<font>
<Font name="Consolas Bold" size="25.0" />
</font></Button>
<Label layoutX="30.0" layoutY="91.0" prefHeight="25.0" prefWidth="60.0" text="PORT:">
<font>
<Font name="Consolas" size="18.0" />
</font>
</Label>
<Label layoutX="27.0" layoutY="145.0" prefHeight="22.0" prefWidth="126.0" text="SAMPLE TIME:">
<font>
<Font name="Consolas" size="18.0" />
</font>
</Label>
<Button fx:id="Boton_Saveas" layoutX="992.0" layoutY="631.0" mnemonicParsing="false" onAction="#saveas" prefHeight="87.0" prefWidth="172.0" style="-fx-background-radius: 15px;" text="SAVE AS">
<font>
<Font name="Consolas Bold" size="25.0" />
</font>
</Button>
<Label alignment="CENTER" layoutX="407.0" layoutY="22.0" prefHeight="43.0" prefWidth="990.0" text="LABORATORY # 2 - INTERFACES - SERIAL COMUNICATION" textAlignment="CENTER">
<font>
<Font name="Consolas Bold" size="36.0" />
</font>
</Label>
<TextField fx:id="Text_Ventana" layoutX="171.0" layoutY="187.0" prefHeight="34.0" prefWidth="150.0">
<font>
<Font name="Consolas Italic" size="18.0" />
</font></TextField>
<Label layoutX="53.0" layoutY="193.0" prefHeight="22.0" prefWidth="70.0" text="WINDOW:">
<font>
<Font name="Consolas" size="18.0" />
</font>
</Label>
<Label layoutX="30.0" layoutY="256.0" prefHeight="25.0" prefWidth="116.0" text="INPUT TYPE:">
<font>
<Font name="Consolas" size="18.0" />
</font>
</Label>
<RadioButton fx:id="Analog_Boton" layoutX="185.0" layoutY="245.0" mnemonicParsing="false" onAction="#Signal_Tipo" text="Analog">
<font>
<Font name="Consolas" size="17.0" />
</font>
</RadioButton>
<RadioButton fx:id="Digital_Boton" layoutX="185.0" layoutY="281.0" mnemonicParsing="false" onAction="#Signal_Tipo" text="Digital">
<font>
<Font name="Consolas" size="17.0" />
</font>
</RadioButton>
<Label fx:id="Reco" alignment="CENTER" layoutX="28.0" layoutY="579.0" prefHeight="137.0" prefWidth="305.0" style="-fx-border-color: black;" text="RECOMENDATIONS:" textAlignment="CENTER">
<font>
<Font name="Consolas Italic" size="17.0" />
</font>
</Label>
<Button fx:id="Port_Boton" contentDisplay="CENTER" layoutX="269.0" layoutY="91.0" mnemonicParsing="false" onAction="#set_Port" prefHeight="25.0" prefWidth="53.0" text="SET" textAlignment="CENTER" />
<TextField fx:id="Saveas_Address" layoutX="1282.0" layoutY="683.0" prefHeight="34.0" prefWidth="150.0">
<font>
<Font name="Consolas Italic" size="18.0" />
</font>
</TextField>
<TextField fx:id="Saveas_Title" layoutX="1282.0" layoutY="630.0" prefHeight="34.0" prefWidth="150.0">
<font>
<Font name="Consolas Italic" size="18.0" />
</font>
</TextField>
<Label layoutX="1186.0" layoutY="635.0" prefHeight="25.0" prefWidth="70.0" text="Title:">
<font>
<Font name="Consolas" size="18.0" />
</font>
</Label>
<Label layoutX="1177.0" layoutY="688.0" prefHeight="25.0" prefWidth="87.0" text="Address:">
<font>
<Font name="Consolas" size="18.0" />
</font>
</Label>
</children>
<opaqueInsets>
<Insets />
</opaqueInsets>
</Pane>