blob: 95cbd1aa5c46f4eff94f762c8dc92a595d69deb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/bin/bash
#export PATH=$PATH:$EMC2_HOME/tests/helpers
#source $EMC2_HOME/tests/helpers/test-functions.sh
emc motion-test.ini &
# let emc come up
sleep 4
(
echo starting to capture data
halsampler -t -n 20000 >| result.halsamples
echo finished capturing data
) &
(
echo hello EMC mt 1.0
echo set enable EMCTOO
echo set mode manual
echo set estop off
echo set machine on
echo set home 0
echo set home 1
echo set home 2
# give emc a second to home
sleep 1.0
echo set mode mdi
echo set mdi g0x1
# give emc a half second to move
sleep 0.5
echo shutdown
) | nc localhost 5007
# wait for emc to finish
wait
exit 0
|