I still got some more errors:
i defined this elements:
self._variable_text_box_0_control = grc_wxgui.forms.text_box(
#window=self.GetWin(),
callback=self.set_decim,
label=‘decim’,
value=self.usrp_source.decim_rate(),
)
self.Add(self._variable_text_box_0_control)
self._variable_text_box_1_control = grc_wxgui.forms.text_box(
#window=self.GetWin(),
callback=self.set_dc_offset_adc_0,
label=‘DC-Offset(ADC_0)’,
value=262,
)
self.Add(self._variable_text_box_1_control)
self._variable_text_box_2_control = grc_wxgui.forms.text_box(
#window=self.GetWin(),
callback=self.set_dc_offset_adc_1,
label=‘DC-Offset(ADC_1)’,
value=262,
)
self.Add(self._variable_text_box_2_control)
self._variable_text_box_3_control = grc_wxgui.forms.text_box(
#window=self.GetWin(),
callback=self.set_dc_offset_adc_2,
label=‘DC-Offset(ADC_2)’,
value=-586,
)
self.Add(self._variable_text_box_3_control)
self._variable_text_box_4_control = grc_wxgui.forms.text_box(
#window=self.GetWin(),
callback=self.set_dc_offset_adc_3,
label=‘DC-Offset(ADC_3)’,
value=-663,
)
self.Add(self._variable_text_box_4_control)
self._variable_chooser_filter = grc_wxgui.forms.drop_down(
#window=self.GetWin(),
callback=self.change_filter,
label=‘Choose Filter’,
index=0,
choices=[1, 2, 3, 4, 5],
labels=[‘No Filter’,
‘FIR frequency translating LP’,
‘FIR frequency translating BP’,
‘Analysis Filterbank+LP’,
‘Analysis Filterbank+BP’],
)
self.Add(self._variable_chooser_filter)
self._usrp_freq_control = grc_wxgui.forms.slider(
#window=self.GetWin(),
style=wx.SL_HORIZONTAL,
callback=self.set_usrp_freq,
label=“Oszillatorfrequenz”,
value=self.usrp_freq,
min=self.usrp_freq_min,
max=self.usrp_freq_max,
num_steps=1e3,
slider_length=1024,
)
self.Add(self._usrp_freq_control)
self._gain_usrp_source_control = grc_wxgui.forms.slider(
#window=self.GetWin(),
style=wx.SL_VERTICAL
callback=self.set_gain_usrp_source,
label=“Gain Usrp Source”,
value=self.gain_usrp_source,
min=0,
max=20,
num_steps=100,
slider_length=200,
)
self.GridAdd(self._gain_usrp_source_control, 4, 0, 2, 1)
And there seems to be some more bugs:
callback=self.set_gain_usrp_source,
^
SyntaxError: invalid syntax
Any Ideas ?
Regards Markus