Import LinuxCNC source tree
This commit is contained in:
24
tests/halmodule.3/test.hal
Normal file
24
tests/halmodule.3/test.hal
Normal file
@@ -0,0 +1,24 @@
|
||||
# The goal of this test is to run the 'halquerytest.py' script that will
|
||||
# read all HAL internals via the query API. We only need a mapped HAL
|
||||
# shared memory segment for that. It is rather unimportant what is
|
||||
# loaded. We just need to ensure we have a working HAL system and some
|
||||
# things we can look at.
|
||||
loadrt threads name1=testthread period1=1000000
|
||||
|
||||
loadrt and2 count=1
|
||||
loadrt or2 count=1
|
||||
loadrt xor2 count=1
|
||||
|
||||
addf and2.0 testthread
|
||||
addf or2.0 testthread
|
||||
addf xor2.0 testthread
|
||||
|
||||
net net-input-a and2.0.in0 or2.0.in0
|
||||
net net-input-b and2.0.in1 or2.0.in1
|
||||
net net-xor-a and2.0.out xor2.0.in0
|
||||
net net-xor-b or2.0.out xor2.0.in1
|
||||
net net-output xor2.0.out
|
||||
|
||||
# We don't care whether the thread is running. We only want to extract
|
||||
# the HAL information and show it.
|
||||
loadusr -w ./halquerytest.py
|
||||
Reference in New Issue
Block a user