Skip to content

Commit 5fea690

Browse files
tomptomp
authored andcommitted
1st push
1 parent 5c3aa31 commit 5fea690

File tree

3 files changed

+12
-19
lines changed

3 files changed

+12
-19
lines changed

lib/python/pyvcp_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# this file ius found in /home/tomp/linuxnc-barwidgets/configs/tomp/nuPyvcpBars
1+
# this file ius found in /home/tomp/linuxnc-barwidgets/configs/tomp/nuPyvcpBars
22
# fname is pyvcp_widgets18nov2023.py
33
# ot is the only src
44
# it needs to be stored in 2 plavces

tests/pyvcp-bar/lbl.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<pyvcp>
3+
<vbox>
4+
<label>
5+
<text>"I am Groot"</text>
6+
</label>
7+
</vbox>
8+
</pyvcp>

tests/pyvcp-bar/test.hal

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
1+
###########################################
2+
# 20nob test file lbl.hal
13
# #########################################
2-
# 19nob test file pbar01.hal
3-
# #########################################
4-
5-
loadusr -Wn pbar01 pyvcp -c pbar01 /home/tomp/linuxcnc-barwidgets/tests/pyvcp-bar/pbar01.xml
6-
loadrt siggen
7-
8-
# automatically get 'servc-thread'
9-
loadrt threads name1=fast period1=50000 name2=slow period2=1000000
10-
11-
setp siggen.0.frequency 40 #10 OK SLOW 100 FAST JERKY 21-29 have beat freq avoid with ranges
12-
setp siggen.0.amplitude 5
13-
setp siggen.0.offset 105
14-
15-
addf siggen.0.update fast
16-
17-
net sinsig siggen.0.sine pbar01.proc01
18-
4+
loadusr -Wn fred pyvcp -c fred lbl.xml
195
start
20-

0 commit comments

Comments
 (0)