I use a program called resetperseus.exe to control the ExtIO_perseus.dll control panel. This program is compiled by Autohotkey. Autohotkey is a program that can control other programs by simulating typing and mouse events, and a lot more. The control panel pops up when the ExtIO_perseus.dll is used, but it is not directly controllable from Spectrum Lab. Spectrum Lab scripts can run external programs, so I created this program to choose the correct settings.
Autohotkey may be gotten from here.
After it is installed, I created this file.
resetperseus.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;For reliability, also NA at the end of commands below
SetControlDelay -1
;Preselector Off
ControlGet, CheckedState, Checked, ,Button13, PERSEUS SDR
If (CheckedState = 1 ) {
ControlClick, Button13, PERSEUS SDR, , , ,NA
Sleep, 500
}
;Preamp On
ControlGet, CheckedState, Checked, ,Button7, PERSEUS SDR
If (CheckedState = 0 ) {
ControlClick, Button7, PERSEUS SDR, , , ,NA
Sleep, 500
}
;Dither Off
ControlGet, CheckedState, Checked, ,Button8, PERSEUS SDR
If (CheckedState = 1 ) {
ControlClick, Button8, PERSEUS SDR, , , ,NA
Sleep, 500
}
;0 dB Attenuator
ControlClick, Button2, PERSEUS SDR, , , ,NA
Sleep, 500
;Select 96 kHz, wait, Select 48 kHz to reset DDC
ControlClick, Button22, PERSEUS SDR, , , ,NA
Sleep, 8000
ControlClick, Button21, PERSEUS SDR, , , ,NA
Return
This file is pretty self explanatory. It checks the state of the Preselector, Preamp, and Dither checkboxes. If they are in the wrong state, mouse clicks are sent to them to get them to the desired state. Then the 0 dB attenuator is selected. Finally, a 96 kHz sampling rate is selected, it waits and then selects a 48 kHz sampling rate. Due to an anomaly in the interface, this seems to be needed to get the digital down converter to be on the correct center frequency.
Autohotkey can compile this file into resetperseus.exe, and it may then be used.
Copyright Note:
All content Copyright (C) 2017 by Mark Goldberg.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Last Edited 4 December 2017