565 lines
14 KiB
XML
565 lines
14 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>Form</class>
|
|
<widget class="QWidget" name="Form">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>800</width>
|
|
<height>600</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>EPM测试工具</string>
|
|
</property>
|
|
<property name="autoFillBackground">
|
|
<bool>true</bool>
|
|
</property>
|
|
<widget class="QLabel" name="label">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>30</x>
|
|
<y>19</y>
|
|
<width>54</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>串口号</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QComboBox" name="cb_com_select_port">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>80</x>
|
|
<y>20</y>
|
|
<width>221</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_com_open">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>310</x>
|
|
<y>20</y>
|
|
<width>75</width>
|
|
<height>31</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>打开</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QTabWidget" name="tabWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>60</y>
|
|
<width>801</width>
|
|
<height>541</height>
|
|
</rect>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>0</number>
|
|
</property>
|
|
<widget class="QWidget" name="tab_1">
|
|
<attribute name="title">
|
|
<string>操作</string>
|
|
</attribute>
|
|
<widget class="QPushButton" name="bt_reset">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>10</y>
|
|
<width>75</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>设备复位</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="Line" name="line">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>70</y>
|
|
<width>791</width>
|
|
<height>16</height>
|
|
</rect>
|
|
</property>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>100</y>
|
|
<width>81</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>IP电流(μA)</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QSpinBox" name="sb_current">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>100</x>
|
|
<y>100</y>
|
|
<width>111</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>0-4000</string>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>4000</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>10</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>100</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_config">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>90</x>
|
|
<y>10</y>
|
|
<width>75</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>一并发送</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QTextEdit" name="txt_content">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>320</y>
|
|
<width>331</width>
|
|
<height>191</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_current_config_write">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>220</x>
|
|
<y>100</y>
|
|
<width>60</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>发送</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_current_config_read">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>280</x>
|
|
<y>100</y>
|
|
<width>60</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>查询</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_content_clear">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>750</x>
|
|
<y>50</y>
|
|
<width>41</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>清除</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_command3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>40</y>
|
|
<width>75</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>读取状态</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_command4">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>90</x>
|
|
<y>40</y>
|
|
<width>75</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>读取流程</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_command5">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>170</x>
|
|
<y>40</y>
|
|
<width>75</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>配置流程</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_command6">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>250</x>
|
|
<y>40</y>
|
|
<width>75</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>执行流程</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>140</y>
|
|
<width>81</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>设置阀门</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QComboBox" name="cb_valve">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>100</x>
|
|
<y>140</y>
|
|
<width>111</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_set_valve_open">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>220</x>
|
|
<y>140</y>
|
|
<width>60</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>开启</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_set_valve_close">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>280</x>
|
|
<y>140</y>
|
|
<width>60</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>关闭</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_4">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>180</y>
|
|
<width>81</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>调节比例阀(kpa)</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QSpinBox" name="sb_valve_ratio_value">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>100</x>
|
|
<y>180</y>
|
|
<width>111</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>180-800</string>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>20000</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>10</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>0</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_read_valve_ratio_value">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>280</x>
|
|
<y>180</y>
|
|
<width>60</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>查询</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_send_valve_ratio_value">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>220</x>
|
|
<y>180</y>
|
|
<width>60</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>发送</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_command11">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>670</x>
|
|
<y>50</y>
|
|
<width>75</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>标定传感器</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_command8">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>330</x>
|
|
<y>40</y>
|
|
<width>75</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>读取数据</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QSpinBox" name="sb_device_address">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>100</x>
|
|
<y>220</y>
|
|
<width>111</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>200</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>1</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>220</y>
|
|
<width>81</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>设置地址</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_command9">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>220</x>
|
|
<y>220</y>
|
|
<width>60</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>发送</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_command10">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>280</x>
|
|
<y>220</y>
|
|
<width>60</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>查询</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QWidget" name="verticalLayoutWidget">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>370</x>
|
|
<y>110</y>
|
|
<width>421</width>
|
|
<height>401</height>
|
|
</rect>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="graph_layout"/>
|
|
</widget>
|
|
<widget class="QRadioButton" name="radio_ip">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>370</x>
|
|
<y>90</y>
|
|
<width>89</width>
|
|
<height>16</height>
|
|
</rect>
|
|
</property>
|
|
<property name="acceptDrops">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>IP</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
<widget class="QRadioButton" name="radio_valve">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>440</x>
|
|
<y>90</y>
|
|
<width>89</width>
|
|
<height>16</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>比例阀</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_pyqtgraph">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>720</x>
|
|
<y>20</y>
|
|
<width>75</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>pyqtgraph</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QLabel" name="label_6">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>10</x>
|
|
<y>260</y>
|
|
<width>81</width>
|
|
<height>21</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>步进电机</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QSpinBox" name="sb_step_motor">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>180</x>
|
|
<y>260</y>
|
|
<width>71</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>9000</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>1</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>90</number>
|
|
</property>
|
|
</widget>
|
|
<widget class="QPushButton" name="bt_command15">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>250</x>
|
|
<y>260</y>
|
|
<width>60</width>
|
|
<height>23</height>
|
|
</rect>
|
|
</property>
|
|
<property name="text">
|
|
<string>发送</string>
|
|
</property>
|
|
</widget>
|
|
<widget class="QComboBox" name="cb_step_motor">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>100</x>
|
|
<y>260</y>
|
|
<width>71</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
</widget>
|
|
</widget>
|
|
<widget class="QWidget" name="tab_2">
|
|
<attribute name="title">
|
|
<string>设置</string>
|
|
</attribute>
|
|
</widget>
|
|
</widget>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|