Re: [casper] Valon Synth python interface

2016-04-26 Thread Jack Hickish
Thanks for the various replies people sent. I think this can be filed under
User Incompetence -- I believe I may have set the reference frequency to
10.0, when it should have been specified (unlike most of the other freqs)
in Hz.

Cheers,
Jack



On Tue, 26 Apr 2016 at 20:14 Jack Hickish  wrote:

> Howdy all,
>
> I'm trying to program a Valon 5008 synth with the ValonSynth nrao python
> API -- https://github.com/nrao/ValonSynth (master branch) -- running on a
> raspberry pi 3.
>
> Does anyone know if this code actually works with a 5008 -- it's
> advertised for a 5007 and I get some fun results when I attempt to use it
> --
>
> In [62]: import valon_synth
> In [63]: v = valon_synth.Synthesizer('/dev/ttyUSB0')
> In [64]: v.get_phase_lock(valon_synth.SYNTH_A)
> Out[64]: True
> In [65]: v.set_frequency(valon_synth.SYNTH_A, 1000.0)
> Out[65]: True
> In [66]: v.get_frequency(valon_synth.SYNTH_A)
> Out[66]: 0.057605
>


[casper] Valon Synth python interface

2016-04-26 Thread Jack Hickish
Howdy all,

I'm trying to program a Valon 5008 synth with the ValonSynth nrao python
API -- https://github.com/nrao/ValonSynth (master branch) -- running on a
raspberry pi 3.

Does anyone know if this code actually works with a 5008 -- it's advertised
for a 5007 and I get some fun results when I attempt to use it --

In [62]: import valon_synth
In [63]: v = valon_synth.Synthesizer('/dev/ttyUSB0')
In [64]: v.get_phase_lock(valon_synth.SYNTH_A)
Out[64]: True
In [65]: v.set_frequency(valon_synth.SYNTH_A, 1000.0)
Out[65]: True
In [66]: v.get_frequency(valon_synth.SYNTH_A)
Out[66]: 0.057605