Skip to content

Commit 182dc0c

Browse files
committed
GTK built panel - document addition
1 parent 929c24c commit 182dc0c

5 files changed

Lines changed: 113 additions & 74 deletions

File tree

docs/src/gui/gladevcp-panels.adoc

Lines changed: 111 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,121 @@ There are several *builtin panels* available.
1919

2020
In a terminal type `gladevcp` to see a list.
2121

22-
=== gtk_verser_probe
22+
---
23+
24+
=== GTK Verser Probe
2325
A GTK based version of the third party Verser probe.
2426

2527
image::images/gtk_verser_probe.png["GTK Verser Probe",align="center"]
2628

27-
=== gtk_little_probe
29+
This is old version from 2015. This older version has **less functionality**, but it **takes up less space on the screen**, which can be useful on smaller displays.
30+
31+
**Actual version and manual:**
32+
33+
* https://vers.ge/en/blog/useful-articles/probe-screen-v28
34+
* https://github.com/verser-git/probe_screen_v2.9
35+
36+
37+
**Modification INI file for embedded panel in Gmoccapy:**
38+
```ini
39+
[DISPLAY]
40+
DISPLAY = gmoccapy
41+
EMBED_TAB_NAME = Probe
42+
EMBED_TAB_LOCATION = ntb_user_tabs
43+
EMBED_TAB_COMMAND = gladevcp -x {XID} gtk_verser_probe
44+
45+
[TOOLSENSOR]
46+
RAPID_SPEED = 600
47+
48+
[RS274NGC]
49+
# for package install:
50+
SUBROUTINE_PATH = ./macros:/usr/share/linuxcnc/nc_files/gtk_probe/
51+
52+
# For RIP installation, use the path according to your directory:
53+
# SUBROUTINE_PATH = ./macros:~/linuxcnc/nc_files/probe/gtk_probe/
54+
```
55+
56+
**Example using dbounce with Mesa card in HAL file:**
57+
```hal
58+
# ---probe signal---
59+
loadrt dbounce names=dbounce.probe
60+
addf dbounce.probe servo-thread
61+
62+
setp dbounce.probe.delay 5
63+
net probe-db dbounce.probe.in <= hm2_7i96.0.gpio.000.in
64+
net probe-in motion.probe-input <= dbounce.probe.out
65+
```
66+
67+
---
68+
=== GTK little Probe
2869
A GTK based version of the third party Verser probe in a tabbed layout for smaller displays.
2970

3071
image::images/gtk_little_probe.png["GTK little Probe",align="center"]
72+
73+
This is modification of Probe Screen application by Serguei Glavatski (c) 2015
74+
This modification moved the icons from one window to containers with switchable vertical tabs. The goal of this modification is to minimize the window.
75+
76+
77+
**Modification INI file for embedded panel in Gmoccapy:**
78+
```ini
79+
[DISPLAY]
80+
DISPLAY = gmoccapy
81+
EMBED_TAB_NAME = Probe
82+
EMBED_TAB_LOCATION = ntb_preview
83+
EMBED_TAB_COMMAND = gladevcp -x {XID} gtk_little_probe
84+
85+
[TOOLSENSOR]
86+
RAPID_SPEED = 600
87+
88+
[RS274NGC]
89+
# for package install:
90+
SUBROUTINE_PATH = ./macros:/usr/share/linuxcnc/nc_files/probe/gtk_probe/
91+
92+
# For RIP installation, use the path according to your directory:
93+
# SUBROUTINE_PATH = ./macros:~/linuxcnc/nc_files/probe/gtk_probe/
94+
```
95+
Use only one Probe Screen by Serguei Glavatski in one LCNC configuration.
96+
97+
98+
**Example using dbounce with Mesa card in HAL file:**
99+
```hal
100+
# ---probe signal---
101+
loadrt dbounce names=dbounce.probe
102+
addf dbounce.probe servo-thread
103+
104+
setp dbounce.probe.delay 5
105+
net probe-db dbounce.probe.in <= hm2_7i96.0.gpio.000.in
106+
net probe-in motion.probe-input <= dbounce.probe.out
107+
```
108+
---
109+
110+
=== GTK Mesa Tests
111+
This screen allows the user to verify whether they have a suitable and well-tuned PC for their Mesa card.
112+
113+
Based on the design of Mesa Configuration Tool II https://github.com/jethornton/mesact Copyright (c) 2022 jethornton
114+
115+
Although this screen was originally part of the configurator, it is not the configurator. It is a control system. Mesa tests uses data from a running LinuxCNC, but does not send any data to LinuxCNC, nor does it set anything. Parameter adjustment is only allowed to simulate the desired state.
116+
117+
image::images/gtk_mesa_tests-servo.png["GTK Mesa Tests, Servo Thread",align="center"]
118+
119+
Servo Thread test:
120+
121+
* press the "Get CPU speed" button
122+
* press the "Get tmax" button
123+
* press the "Get period" button
124+
* press the "Calculate" button
125+
* check the result [%]
126+
127+
image::images/gtk_mesa_tests-nic.png["GTK Mesa Tests, NIC",align="center"]
128+
129+
NIC test:
130+
131+
* press the "Get CPU speed" button
132+
* press the "Get read.tmax" button
133+
* press the "Get write.tmax" button
134+
* press the "Get period" button
135+
* press the "Calculate" button
136+
* check the result [%]
137+
138+
139+
Mesa Tests is a tool designed for beginners to sleep better or to know if they need to buy better hardware or tune their hardware better. It is better to use tools like Halshow or Halscope to monitor the parameters (pins,thread, ...) used. The list of parameters is displayed on the right side of the screen.
89.8 KB
Loading
72.4 KB
Loading

lib/python/gladevcp/builtin-panels/gtk_little_probe/README.md

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,4 @@ The modification was made by zz912.
1212
### Load with gladevcp command:
1313
```bash
1414
gladevcp gtk_little_probe
15-
```
16-
17-
---
18-
19-
## Modification INI file for embedded panel in Gmoccapy:
20-
```ini
21-
[DISPLAY]
22-
DISPLAY = gmoccapy
23-
EMBED_TAB_NAME = Probe
24-
EMBED_TAB_LOCATION = ntb_preview
25-
EMBED_TAB_COMMAND = gladevcp -x {XID} gtk_little_probe
26-
27-
[TOOLSENSOR]
28-
RAPID_SPEED = 600
29-
30-
[RS274NGC]
31-
# for package install:
32-
SUBROUTINE_PATH = ./macros:/usr/share/linuxcnc/nc_files/probe/gtk_probe/
33-
34-
# For RIP installation, use the path according to your directory:
35-
# SUBROUTINE_PATH = ./macros:~/linuxcnc/nc_files/probe/gtk_probe/
36-
```
37-
Use only one Probe Screen by Serguei Glavatski in one LCNC configuration.
38-
39-
40-
---
41-
42-
## Example using dbounce with Mesa card in HAL file:
43-
```hal
44-
# ---probe signal---
45-
loadrt dbounce names=dbounce.probe
46-
addf dbounce.probe servo-thread
47-
48-
setp dbounce.probe.delay 5
49-
net probe-db dbounce.probe.in <= hm2_7i96.0.gpio.000.in
50-
net probe-in motion.probe-input <= dbounce.probe.out
51-
```
15+
```

lib/python/gladevcp/builtin-panels/gtk_verser_probe/README.md

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,4 @@ Old version from 2015. This older version has **less functionality**, but it **t
1111
### Load with gladevcp command:
1212
```bash
1313
gladevcp gtk_verser_probe
14-
```
15-
16-
---
17-
18-
## Modification INI file for embedded panel in Gmoccapy:
19-
```ini
20-
[DISPLAY]
21-
DISPLAY = gmoccapy
22-
EMBED_TAB_NAME = Probe
23-
EMBED_TAB_LOCATION = ntb_user_tabs
24-
EMBED_TAB_COMMAND = gladevcp -x {XID} gtk_verser_probe
25-
26-
[TOOLSENSOR]
27-
RAPID_SPEED = 600
28-
29-
[RS274NGC]
30-
# for package install:
31-
SUBROUTINE_PATH = ./macros:/usr/share/linuxcnc/nc_files/gtk_probe/
32-
33-
# For RIP installation, use the path according to your directory:
34-
# SUBROUTINE_PATH = ./macros:~/linuxcnc/nc_files/probe/gtk_probe/
35-
```
36-
37-
---
38-
39-
## Example using dbounce with Mesa card in HAL file:
40-
```hal
41-
# ---probe signal---
42-
loadrt dbounce names=dbounce.probe
43-
addf dbounce.probe servo-thread
44-
45-
setp dbounce.probe.delay 5
46-
net probe-db dbounce.probe.in <= hm2_7i96.0.gpio.000.in
47-
net probe-in motion.probe-input <= dbounce.probe.out
48-
```
14+
```

0 commit comments

Comments
 (0)