电机控制项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

790 lines
18 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>MotorControll</class>
  4. <widget class="QMainWindow" name="MotorControll">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>965</width>
  10. <height>867</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>MotorControll</string>
  15. </property>
  16. <widget class="QWidget" name="centralWidget">
  17. <widget class="QGroupBox" name="groupBox">
  18. <property name="geometry">
  19. <rect>
  20. <x>10</x>
  21. <y>10</y>
  22. <width>361</width>
  23. <height>161</height>
  24. </rect>
  25. </property>
  26. <property name="title">
  27. <string>基础配置</string>
  28. </property>
  29. <widget class="QPushButton" name="pushButton">
  30. <property name="geometry">
  31. <rect>
  32. <x>10</x>
  33. <y>30</y>
  34. <width>111</width>
  35. <height>41</height>
  36. </rect>
  37. </property>
  38. <property name="text">
  39. <string>通信连接</string>
  40. </property>
  41. </widget>
  42. <widget class="QPushButton" name="pushButton_2">
  43. <property name="geometry">
  44. <rect>
  45. <x>230</x>
  46. <y>30</y>
  47. <width>111</width>
  48. <height>41</height>
  49. </rect>
  50. </property>
  51. <property name="text">
  52. <string>C运动配置</string>
  53. </property>
  54. </widget>
  55. <widget class="QPushButton" name="pushButton_3">
  56. <property name="geometry">
  57. <rect>
  58. <x>10</x>
  59. <y>110</y>
  60. <width>111</width>
  61. <height>41</height>
  62. </rect>
  63. </property>
  64. <property name="text">
  65. <string>开启电机</string>
  66. </property>
  67. </widget>
  68. <widget class="QPushButton" name="pushButton_4">
  69. <property name="geometry">
  70. <rect>
  71. <x>230</x>
  72. <y>110</y>
  73. <width>111</width>
  74. <height>41</height>
  75. </rect>
  76. </property>
  77. <property name="text">
  78. <string>关闭电机</string>
  79. </property>
  80. </widget>
  81. </widget>
  82. <widget class="QGroupBox" name="groupBox_2">
  83. <property name="geometry">
  84. <rect>
  85. <x>10</x>
  86. <y>175</y>
  87. <width>421</width>
  88. <height>261</height>
  89. </rect>
  90. </property>
  91. <property name="title">
  92. <string>点动</string>
  93. </property>
  94. <widget class="QPushButton" name="DotPositiveBtn">
  95. <property name="geometry">
  96. <rect>
  97. <x>10</x>
  98. <y>140</y>
  99. <width>111</width>
  100. <height>41</height>
  101. </rect>
  102. </property>
  103. <property name="text">
  104. <string>正向点动</string>
  105. </property>
  106. </widget>
  107. <widget class="QPushButton" name="DotStepUpdataBtn">
  108. <property name="geometry">
  109. <rect>
  110. <x>300</x>
  111. <y>20</y>
  112. <width>111</width>
  113. <height>41</height>
  114. </rect>
  115. </property>
  116. <property name="text">
  117. <string>更新步长</string>
  118. </property>
  119. </widget>
  120. <widget class="QPushButton" name="DotSpeedUpdataBtn">
  121. <property name="geometry">
  122. <rect>
  123. <x>300</x>
  124. <y>80</y>
  125. <width>111</width>
  126. <height>41</height>
  127. </rect>
  128. </property>
  129. <property name="text">
  130. <string>更新速度</string>
  131. </property>
  132. </widget>
  133. <widget class="QPushButton" name="DotReverseBtn">
  134. <property name="geometry">
  135. <rect>
  136. <x>160</x>
  137. <y>140</y>
  138. <width>111</width>
  139. <height>41</height>
  140. </rect>
  141. </property>
  142. <property name="text">
  143. <string>反向点动</string>
  144. </property>
  145. </widget>
  146. <widget class="QPushButton" name="DotKeepRunBtn">
  147. <property name="geometry">
  148. <rect>
  149. <x>160</x>
  150. <y>200</y>
  151. <width>111</width>
  152. <height>41</height>
  153. </rect>
  154. </property>
  155. <property name="text">
  156. <string>继续运动</string>
  157. </property>
  158. </widget>
  159. <widget class="QPushButton" name="DotStopRunBtn">
  160. <property name="geometry">
  161. <rect>
  162. <x>10</x>
  163. <y>200</y>
  164. <width>111</width>
  165. <height>41</height>
  166. </rect>
  167. </property>
  168. <property name="text">
  169. <string>停止运动</string>
  170. </property>
  171. </widget>
  172. <widget class="QLabel" name="label">
  173. <property name="geometry">
  174. <rect>
  175. <x>10</x>
  176. <y>30</y>
  177. <width>72</width>
  178. <height>15</height>
  179. </rect>
  180. </property>
  181. <property name="text">
  182. <string>点动步长</string>
  183. </property>
  184. </widget>
  185. <widget class="QLabel" name="label_2">
  186. <property name="geometry">
  187. <rect>
  188. <x>10</x>
  189. <y>90</y>
  190. <width>70</width>
  191. <height>15</height>
  192. </rect>
  193. </property>
  194. <property name="text">
  195. <string>点动速度</string>
  196. </property>
  197. </widget>
  198. <widget class="QLineEdit" name="DotStepLedit">
  199. <property name="geometry">
  200. <rect>
  201. <x>90</x>
  202. <y>30</y>
  203. <width>131</width>
  204. <height>21</height>
  205. </rect>
  206. </property>
  207. </widget>
  208. <widget class="QLineEdit" name="DotSpeedLedit">
  209. <property name="geometry">
  210. <rect>
  211. <x>90</x>
  212. <y>90</y>
  213. <width>131</width>
  214. <height>21</height>
  215. </rect>
  216. </property>
  217. </widget>
  218. <widget class="QLabel" name="label_3">
  219. <property name="geometry">
  220. <rect>
  221. <x>240</x>
  222. <y>30</y>
  223. <width>31</width>
  224. <height>16</height>
  225. </rect>
  226. </property>
  227. <property name="text">
  228. <string>脉冲</string>
  229. </property>
  230. </widget>
  231. <widget class="QLabel" name="label_4">
  232. <property name="geometry">
  233. <rect>
  234. <x>240</x>
  235. <y>90</y>
  236. <width>72</width>
  237. <height>15</height>
  238. </rect>
  239. </property>
  240. <property name="text">
  241. <string>脉冲/秒</string>
  242. </property>
  243. </widget>
  244. <zorder>DotPositiveBtn</zorder>
  245. <zorder>DotStepUpdataBtn</zorder>
  246. <zorder>DotSpeedUpdataBtn</zorder>
  247. <zorder>DotReverseBtn</zorder>
  248. <zorder>DotKeepRunBtn</zorder>
  249. <zorder>DotStopRunBtn</zorder>
  250. <zorder>label</zorder>
  251. <zorder>label_2</zorder>
  252. <zorder>DotSpeedLedit</zorder>
  253. <zorder>label_3</zorder>
  254. <zorder>label_4</zorder>
  255. <zorder>DotStepLedit</zorder>
  256. </widget>
  257. <widget class="QGroupBox" name="groupBox_3">
  258. <property name="geometry">
  259. <rect>
  260. <x>480</x>
  261. <y>10</y>
  262. <width>481</width>
  263. <height>434</height>
  264. </rect>
  265. </property>
  266. <property name="sizePolicy">
  267. <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
  268. <horstretch>0</horstretch>
  269. <verstretch>0</verstretch>
  270. </sizepolicy>
  271. </property>
  272. <property name="minimumSize">
  273. <size>
  274. <width>300</width>
  275. <height>0</height>
  276. </size>
  277. </property>
  278. <property name="maximumSize">
  279. <size>
  280. <width>1000</width>
  281. <height>16777215</height>
  282. </size>
  283. </property>
  284. <property name="title">
  285. <string>监控</string>
  286. </property>
  287. <layout class="QGridLayout" name="gridLayout">
  288. <item row="0" column="0">
  289. <widget class="QTableWidget" name="DataMonitorTableWidget">
  290. <property name="textElideMode">
  291. <enum>Qt::ElideMiddle</enum>
  292. </property>
  293. <attribute name="horizontalHeaderCascadingSectionResizes">
  294. <bool>false</bool>
  295. </attribute>
  296. <attribute name="horizontalHeaderStretchLastSection">
  297. <bool>true</bool>
  298. </attribute>
  299. </widget>
  300. </item>
  301. </layout>
  302. </widget>
  303. <widget class="QGroupBox" name="groupBox_4">
  304. <property name="geometry">
  305. <rect>
  306. <x>10</x>
  307. <y>480</y>
  308. <width>441</width>
  309. <height>341</height>
  310. </rect>
  311. </property>
  312. <property name="title">
  313. <string>基础运动</string>
  314. </property>
  315. <widget class="QLabel" name="label_6">
  316. <property name="geometry">
  317. <rect>
  318. <x>10</x>
  319. <y>80</y>
  320. <width>60</width>
  321. <height>28</height>
  322. </rect>
  323. </property>
  324. <property name="text">
  325. <string>运行速度</string>
  326. </property>
  327. </widget>
  328. <widget class="QLabel" name="label_5">
  329. <property name="geometry">
  330. <rect>
  331. <x>10</x>
  332. <y>30</y>
  333. <width>60</width>
  334. <height>28</height>
  335. </rect>
  336. </property>
  337. <property name="text">
  338. <string>目标位置</string>
  339. </property>
  340. </widget>
  341. <widget class="QLabel" name="label_7">
  342. <property name="geometry">
  343. <rect>
  344. <x>10</x>
  345. <y>130</y>
  346. <width>60</width>
  347. <height>28</height>
  348. </rect>
  349. </property>
  350. <property name="text">
  351. <string>加速时间</string>
  352. </property>
  353. </widget>
  354. <widget class="QLabel" name="label_8">
  355. <property name="geometry">
  356. <rect>
  357. <x>10</x>
  358. <y>180</y>
  359. <width>60</width>
  360. <height>28</height>
  361. </rect>
  362. </property>
  363. <property name="text">
  364. <string>位置修改</string>
  365. </property>
  366. </widget>
  367. <widget class="QLineEdit" name="RunSpeedLedit">
  368. <property name="geometry">
  369. <rect>
  370. <x>90</x>
  371. <y>80</y>
  372. <width>140</width>
  373. <height>25</height>
  374. </rect>
  375. </property>
  376. <property name="text">
  377. <string>0</string>
  378. </property>
  379. <property name="alignment">
  380. <set>Qt::AlignCenter</set>
  381. </property>
  382. </widget>
  383. <widget class="QLineEdit" name="RunPlaceLedit">
  384. <property name="geometry">
  385. <rect>
  386. <x>90</x>
  387. <y>30</y>
  388. <width>140</width>
  389. <height>25</height>
  390. </rect>
  391. </property>
  392. <property name="text">
  393. <string>10000</string>
  394. </property>
  395. <property name="alignment">
  396. <set>Qt::AlignCenter</set>
  397. </property>
  398. </widget>
  399. <widget class="QLineEdit" name="RunTimeLedit">
  400. <property name="geometry">
  401. <rect>
  402. <x>90</x>
  403. <y>130</y>
  404. <width>140</width>
  405. <height>25</height>
  406. </rect>
  407. </property>
  408. <property name="text">
  409. <string>0</string>
  410. </property>
  411. <property name="alignment">
  412. <set>Qt::AlignCenter</set>
  413. </property>
  414. </widget>
  415. <widget class="QLineEdit" name="RunStartPlaceLedit">
  416. <property name="geometry">
  417. <rect>
  418. <x>90</x>
  419. <y>180</y>
  420. <width>140</width>
  421. <height>25</height>
  422. </rect>
  423. </property>
  424. <property name="text">
  425. <string>0</string>
  426. </property>
  427. <property name="alignment">
  428. <set>Qt::AlignCenter</set>
  429. </property>
  430. </widget>
  431. <widget class="QLabel" name="label_9">
  432. <property name="geometry">
  433. <rect>
  434. <x>250</x>
  435. <y>30</y>
  436. <width>31</width>
  437. <height>16</height>
  438. </rect>
  439. </property>
  440. <property name="text">
  441. <string>脉冲</string>
  442. </property>
  443. </widget>
  444. <widget class="QLabel" name="label_10">
  445. <property name="geometry">
  446. <rect>
  447. <x>250</x>
  448. <y>80</y>
  449. <width>72</width>
  450. <height>15</height>
  451. </rect>
  452. </property>
  453. <property name="text">
  454. <string>脉冲/秒</string>
  455. </property>
  456. </widget>
  457. <widget class="QLabel" name="label_11">
  458. <property name="geometry">
  459. <rect>
  460. <x>250</x>
  461. <y>130</y>
  462. <width>72</width>
  463. <height>15</height>
  464. </rect>
  465. </property>
  466. <property name="text">
  467. <string>毫秒</string>
  468. </property>
  469. </widget>
  470. <widget class="QLabel" name="label_12">
  471. <property name="geometry">
  472. <rect>
  473. <x>250</x>
  474. <y>180</y>
  475. <width>31</width>
  476. <height>16</height>
  477. </rect>
  478. </property>
  479. <property name="text">
  480. <string>脉冲</string>
  481. </property>
  482. </widget>
  483. <widget class="QPushButton" name="RunPlaceUpdataBtn">
  484. <property name="geometry">
  485. <rect>
  486. <x>310</x>
  487. <y>15</y>
  488. <width>111</width>
  489. <height>41</height>
  490. </rect>
  491. </property>
  492. <property name="text">
  493. <string>更新位置</string>
  494. </property>
  495. </widget>
  496. <widget class="QPushButton" name="RunSpeedUpdataBtn">
  497. <property name="geometry">
  498. <rect>
  499. <x>310</x>
  500. <y>70</y>
  501. <width>111</width>
  502. <height>41</height>
  503. </rect>
  504. </property>
  505. <property name="text">
  506. <string>更新速度</string>
  507. </property>
  508. </widget>
  509. <widget class="QPushButton" name="RunTimeUpdataBtn">
  510. <property name="geometry">
  511. <rect>
  512. <x>310</x>
  513. <y>120</y>
  514. <width>111</width>
  515. <height>41</height>
  516. </rect>
  517. </property>
  518. <property name="text">
  519. <string>更新时间</string>
  520. </property>
  521. </widget>
  522. <widget class="QPushButton" name="RunStartPlaceModifyBtn">
  523. <property name="geometry">
  524. <rect>
  525. <x>310</x>
  526. <y>170</y>
  527. <width>111</width>
  528. <height>41</height>
  529. </rect>
  530. </property>
  531. <property name="text">
  532. <string>修改位置</string>
  533. </property>
  534. </widget>
  535. <widget class="QPushButton" name="RunStartAbsolutBtn">
  536. <property name="geometry">
  537. <rect>
  538. <x>10</x>
  539. <y>230</y>
  540. <width>111</width>
  541. <height>41</height>
  542. </rect>
  543. </property>
  544. <property name="text">
  545. <string>绝对运动</string>
  546. </property>
  547. </widget>
  548. <widget class="QPushButton" name="RunStartRelativeBtn">
  549. <property name="geometry">
  550. <rect>
  551. <x>10</x>
  552. <y>280</y>
  553. <width>111</width>
  554. <height>41</height>
  555. </rect>
  556. </property>
  557. <property name="text">
  558. <string>相对运动</string>
  559. </property>
  560. </widget>
  561. <widget class="QPushButton" name="RunStopBtn">
  562. <property name="geometry">
  563. <rect>
  564. <x>210</x>
  565. <y>230</y>
  566. <width>111</width>
  567. <height>41</height>
  568. </rect>
  569. </property>
  570. <property name="text">
  571. <string>停止运动</string>
  572. </property>
  573. </widget>
  574. <widget class="QPushButton" name="RunKeepBtn">
  575. <property name="geometry">
  576. <rect>
  577. <x>210</x>
  578. <y>280</y>
  579. <width>111</width>
  580. <height>41</height>
  581. </rect>
  582. </property>
  583. <property name="text">
  584. <string>继续运动</string>
  585. </property>
  586. </widget>
  587. </widget>
  588. <widget class="QGroupBox" name="groupBox_5">
  589. <property name="geometry">
  590. <rect>
  591. <x>480</x>
  592. <y>480</y>
  593. <width>441</width>
  594. <height>341</height>
  595. </rect>
  596. </property>
  597. <property name="title">
  598. <string>多段运动</string>
  599. </property>
  600. <widget class="QLabel" name="label_13">
  601. <property name="geometry">
  602. <rect>
  603. <x>20</x>
  604. <y>34</y>
  605. <width>60</width>
  606. <height>28</height>
  607. </rect>
  608. </property>
  609. <property name="text">
  610. <string>运动模式</string>
  611. </property>
  612. </widget>
  613. <widget class="QComboBox" name="RunMoreModelBox">
  614. <property name="geometry">
  615. <rect>
  616. <x>100</x>
  617. <y>34</y>
  618. <width>111</width>
  619. <height>41</height>
  620. </rect>
  621. </property>
  622. <item>
  623. <property name="text">
  624. <string>相对运动</string>
  625. </property>
  626. </item>
  627. <item>
  628. <property name="text">
  629. <string>绝对运动</string>
  630. </property>
  631. </item>
  632. </widget>
  633. <widget class="QLabel" name="label_14">
  634. <property name="geometry">
  635. <rect>
  636. <x>20</x>
  637. <y>100</y>
  638. <width>72</width>
  639. <height>15</height>
  640. </rect>
  641. </property>
  642. <property name="text">
  643. <string>加速时间</string>
  644. </property>
  645. </widget>
  646. <widget class="QLineEdit" name="RunMoreAddSpeedTimeLedit">
  647. <property name="geometry">
  648. <rect>
  649. <x>100</x>
  650. <y>100</y>
  651. <width>111</width>
  652. <height>21</height>
  653. </rect>
  654. </property>
  655. <property name="text">
  656. <string>1000</string>
  657. </property>
  658. <property name="alignment">
  659. <set>Qt::AlignCenter</set>
  660. </property>
  661. </widget>
  662. <widget class="QLabel" name="label_15">
  663. <property name="geometry">
  664. <rect>
  665. <x>220</x>
  666. <y>100</y>
  667. <width>31</width>
  668. <height>16</height>
  669. </rect>
  670. </property>
  671. <property name="text">
  672. <string>毫秒</string>
  673. </property>
  674. </widget>
  675. <widget class="QLabel" name="label_16">
  676. <property name="geometry">
  677. <rect>
  678. <x>20</x>
  679. <y>160</y>
  680. <width>72</width>
  681. <height>15</height>
  682. </rect>
  683. </property>
  684. <property name="text">
  685. <string>减速时间</string>
  686. </property>
  687. </widget>
  688. <widget class="QLineEdit" name="RunMoreSubSpeedTimeLedit">
  689. <property name="geometry">
  690. <rect>
  691. <x>100</x>
  692. <y>160</y>
  693. <width>111</width>
  694. <height>21</height>
  695. </rect>
  696. </property>
  697. <property name="text">
  698. <string>1000</string>
  699. </property>
  700. <property name="alignment">
  701. <set>Qt::AlignCenter</set>
  702. </property>
  703. </widget>
  704. <widget class="QLabel" name="label_17">
  705. <property name="geometry">
  706. <rect>
  707. <x>220</x>
  708. <y>160</y>
  709. <width>31</width>
  710. <height>15</height>
  711. </rect>
  712. </property>
  713. <property name="text">
  714. <string>毫秒</string>
  715. </property>
  716. </widget>
  717. <widget class="QPushButton" name="RunMoreDataUpdataBtn">
  718. <property name="geometry">
  719. <rect>
  720. <x>290</x>
  721. <y>110</y>
  722. <width>111</width>
  723. <height>41</height>
  724. </rect>
  725. </property>
  726. <property name="text">
  727. <string>更新数据</string>
  728. </property>
  729. </widget>
  730. <widget class="QPushButton" name="RunMoreAddRunBtn">
  731. <property name="geometry">
  732. <rect>
  733. <x>290</x>
  734. <y>34</y>
  735. <width>111</width>
  736. <height>41</height>
  737. </rect>
  738. </property>
  739. <property name="text">
  740. <string>添加运动</string>
  741. </property>
  742. </widget>
  743. <widget class="QPushButton" name="RunMoreStartBtn">
  744. <property name="geometry">
  745. <rect>
  746. <x>20</x>
  747. <y>250</y>
  748. <width>111</width>
  749. <height>41</height>
  750. </rect>
  751. </property>
  752. <property name="text">
  753. <string>启动运动</string>
  754. </property>
  755. </widget>
  756. <widget class="QPushButton" name="RunMoreStopBtn">
  757. <property name="geometry">
  758. <rect>
  759. <x>160</x>
  760. <y>250</y>
  761. <width>111</width>
  762. <height>41</height>
  763. </rect>
  764. </property>
  765. <property name="text">
  766. <string>停止运动</string>
  767. </property>
  768. </widget>
  769. <widget class="QPushButton" name="RunMoreKeepBtn">
  770. <property name="geometry">
  771. <rect>
  772. <x>290</x>
  773. <y>250</y>
  774. <width>111</width>
  775. <height>41</height>
  776. </rect>
  777. </property>
  778. <property name="text">
  779. <string>继续运动</string>
  780. </property>
  781. </widget>
  782. </widget>
  783. </widget>
  784. <widget class="QStatusBar" name="statusBar"/>
  785. </widget>
  786. <layoutdefault spacing="6" margin="11"/>
  787. <resources/>
  788. <connections/>
  789. </ui>