Skip to content

Commit cf1e430

Browse files
committed
docs: fix halshow page didn't appear in PDF docs
This moves the halshow docs page to the hal-tutorial to be included in the PDF documentation. It was only accessible as HTML via a link from HAL Tools page before.
1 parent 77b8141 commit cf1e430

6 files changed

Lines changed: 24 additions & 20 deletions

File tree

docs/src/Submakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ DOC_SRCS_EN := \
158158
hal/general-ref.adoc \
159159
hal/hal-examples.adoc \
160160
hal/halmodule.adoc \
161-
hal/halshow.adoc \
162161
hal/haltcl.adoc \
163162
hal/halui-examples.adoc \
164163
hal/intro.adoc \

docs/src/gui/qtvcp-widgets.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ Enter any of these _case sensitive_ commands to load the respective program or a
15271527
link:../hal/tools.html#sec:halmeter[`halmeter`] utility.
15281528
*`HALSHOW`*::
15291529
Starts LinuxCNC
1530-
link:../hal/halshow.html#cha:halshow[`halshow`] utility.
1530+
link:../hal/tutorial.html#sec:halshow[`halshow`] utility.
15311531
*`HALSCOPE`*::
15321532
Starts LinuxCNC
15331533
link:../hal/tutorial.html#sec:tutorial-halscope[`halscope`] utility.

docs/src/hal/halshow.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
:lang: en
22
:toc:
33

4-
[[cha:halshow]]
5-
= Halshow
4+
[[sec:halshow]]
5+
== Halshow
66

77
// Custom lang highlight
88
// must come after the doc title, to work around a bug in asciidoc 8.6.6
@@ -20,7 +20,7 @@ When the configuration of LinuxCNC changes, so will the output of halshow be dif
2020

2121
As we will soon see, this ability of HAL to document itself is one key to establish an effective CNC system.
2222

23-
== Starting Halshow
23+
=== Starting Halshow
2424

2525
Halshow is available
2626

@@ -61,9 +61,9 @@ image::images/halshow-layout.png["Halshow Layout",align="center"]
6161
At the left of its display as shown in above figure is a tree view, resembling what you may have seen as file browsers.
6262
At the right is a tabbed notebook with tabs for show, watch and settings.
6363

64-
== HAL Tree Area
64+
=== HAL Tree Area
6565

66-
=== Filter Tree
66+
.Filter Tree
6767

6868
Per default this entry filters the tree by pin names or tree-nodes by a regular expression.
6969
For example, entering "lim-sw" would filter the tree to the following:
@@ -81,7 +81,7 @@ joint.3.pos-lim-sw-in
8181
If you would like to display all `joint.0`-related, you have to click the settings icon and select "Full path".
8282
Pay attention to escape the regex special characters, so you have to enter "joint\.1\." to explicitly request the dot and not also find joint 10.
8383

84-
=== Tree
84+
.Tree
8585

8686
The tree shows all of the major parts of a HAL.
8787
In front of each is a small plus (+) or minus (-) sign in a box to expand or collapse the corresponding section of the tree.
@@ -93,7 +93,7 @@ _Expand All_, _Collapse All_; _Expand Pins_, _Expand Parameters_, _Expand Signal
9393
_Reload tree view_ is useful when new components are loaded during runtime and should be displayed.
9494

9595

96-
== HAL Show Area
96+
=== HAL Show Area
9797

9898
[[fig:halshow-show-tab]]
9999
.Halshow: Show Tab
@@ -126,7 +126,7 @@ The Show area allows to add pins from selected text by using the right-click men
126126
All valid pins that are enclosed in the selection are added to the Watch tab.
127127
****
128128

129-
== Watch Tab Area
129+
=== Watch Tab Area
130130

131131
Clicking the watch tab produces a blank canvas.
132132
You can add signals and pins to this canvas and watch their values.
@@ -182,7 +182,7 @@ The context menu allows further:
182182
image::images/halshow-5.png["Halshow: Watch Tab Context Menu",align="center"]
183183

184184

185-
== Command Entry
185+
=== Command Entry
186186

187187
In the lower part is an entry box to test HAL commands.
188188
The commands you enter here and the effect that they have on the running HAL are not saved.
@@ -206,7 +206,7 @@ An error message from halcmd will be shown when these commands are not properly
206206
If you are not certain how to set up a proper command, you'll need to read again the documentation on halcmd and the specific modules that you are working with.
207207

208208
[[sec:halshow-settings]]
209-
== Settings
209+
=== Settings
210210

211211
.New in 2.9
212212
****
@@ -222,7 +222,7 @@ The further settings should be self-explaining.
222222
image::images/halshow-settings.png["Halshow Settings",align="center"]
223223

224224

225-
== Example/Tutorial
225+
=== Example/Tutorial
226226

227227
Let's use this editor to add a differential module to a HAL and connect it to axis position so that we could see the rate of change in position, i.e., acceleration.
228228
We first need to load a HAL component named ddt, add it to the servo thread, then connect it to the position pin of a joint.

docs/src/hal/tools.adoc

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
(((HAL Tools)))
1414

15+
For most of the tools, a more detailed description can be found in the chapter <<cha:hal-tutorial,HAL Tutorial>>
16+
1517
[[sec:halcmd]]
1618
== Halcmd
1719

@@ -40,7 +42,7 @@ usage, and is a good tutorial for `halcmd`.
4042
== Halmeter
4143

4244
(((Halmeter)))
43-
Halmeter is a 'voltmeter' for the HAL.
45+
`halmeter` is like a voltmeter for the HAL.
4446
It lets you look at a pin, signal, or parameter, and displays the current value of that item.
4547
It is pretty simple to use.
4648
Start it by typing `halmeter` in an X windows shell.
@@ -66,7 +68,7 @@ And finally, if you specify an item to display, you can add `-s` before the `pin
6668
The item name will be displayed in the title bar instead of under the value, and there will be no buttons.
6769
Useful when you want a lot of meters in a small amount of screen space.
6870

69-
Refer to <<sec:tutorial-halmeter,Halmeter Tutorial>> section for more information.
71+
In the <<sec:tutorial-halmeter,Halmeter Tutorial>> you will find for more information.
7072

7173
`halmeter` can be loaded from a terminal or from AXIS. `halmeter` is faster than `halshow` at displaying values.
7274
`halmeter` has two windows, one to pick the pin, signal, or parameter to monitor and one that displays the value.
@@ -89,12 +91,14 @@ image::images/hal-meter02.png["Halmeter watch window"]
8991

9092
== Halshow
9193

92-
`halshow` (<<cha:halshow,complete usage description>>) can be started from the command line
93-
to show details for selected components, pins, parameters, signals, functions, and threads of a running HAL.
94+
`halshow` shows the values of chosen pins, parameters or signals of a running HAL. It further provides buttons to also modify those items.
9495
The WATCH tab provides a continuous display of selected pin, parameters, and signal items.
9596
The File menu provides buttons to save the watch items to a watch list and to load an existing watch list.
9697
The watch list items can also be loaded automatically on startup.
97-
For command line usage:
98+
99+
More detailed information can be found in the section <<sec:halshow,Halshow>> in the tutorial chapter.
100+
101+
It can be started from the command line:
98102

99103
----
100104
halshow --help
@@ -111,7 +115,7 @@ Notes:
111115
----
112116

113117
.Halshow Watch Tab
114-
image::images/halshow-4.png["Halshow Watch Tab",align="center"]
118+
image::images/halshow-4.png["Halshow Watch Tab"]
115119

116120
A watchfile created using the 'File/Save Watch List' menu item is formatted as a single line with tokens "pin+", "param+", "sig=+",
117121
followed by the appropriate pin, param, or signal name.

docs/src/hal/tutorial.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ time, you can just start more halmeters. The halmeter window was
836836
intentionally made very small so you could have a lot of them on the
837837
screen at once.
838838

839+
include::halshow.adoc[]
839840
include::halscope.adoc[]
840841
// vim: set syntax=asciidoc:
841842

docs/src/plasma/qtplasmac.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ To return the *EXIT WARNING MESSAGE* text to the last saved value press the *REL
12171217

12181218
Some standard LinuxCNC utilities are provided as an aid in the diagnosis of issues that may arise:
12191219

1220-
- link:../hal/halshow.html#cha:halshow[Halshow]
1220+
- link:../hal/tutorial.html#sec:halshow[Halshow]
12211221
- link:../hal/tutorial.html#sec:tutorial-halscope[Halscope]
12221222
- link:../hal/tutorial.html#sec:tutorial-halmeter[Halmeter]
12231223
- link:../man/man1/emccalib.1.html[Calibration]

0 commit comments

Comments
 (0)