]> git.rkrishnan.org Git - dttsp.git/blob - pyhw2/README
New hardware control code
[dttsp.git] / pyhw2 / README
1 ========================================================================
2 Simple stuff.
3
4 To use, run python interactively. Then
5
6 >>> execfile("sdr1k-setup.py")
7
8 to get the interface started.
9
10 To set the frequency, do 
11
12 >>> setDDSFreq(14.077)
13
14 To toggle the mute relay,
15
16 >>> setMuteRelay(not getMuteRelay())
17
18 etc.
19
20 To shut down,
21
22 >>> closeRig()
23
24 and exit python. (The startup script, which is crude and will be
25 replaced shortly, does an openRig("/dev/parport0")
26 ========================================================================
27
28 To build:
29
30 There is a simple Makefile that does just the following --
31
32 swig -python hardware.i
33 gcc -fPIC -I. -I/usr/include/python -c hardware_wrap.c
34 gcc -fPIC -I. -c hardware.c
35 ld -shared hardware.o hardware_wrap.o -o _sdr1khw.so
36
37 Ready to go.