Replies: 4 comments 2 replies
-
Hello Martin, 73, Rudi DL5FA |
Beta Was this translation helpful? Give feedback.
-
Hello Manfred, Thank you very much for your help. 73, Rudi DL5FA |
Beta Was this translation helpful? Give feedback.
-
Hello Manfred, Thank you for expanding the program so much. Now I found the time to check program Ho-Ro_tinySA_menu_readout.py Checked every menu block of ui_sa.c, see: menu_stimulus is missing menu_settings is missing ... My question is, is it worth to further work on the question mark points? 73, Rudi DL5FA |
Beta Was this translation helpful? Give feedback.
-
Hello Martin, Thank you for taking care. In the github version the file plot.c and ui_sa.care are just got updatet. The version 1.3.325 is about 1 year old. OK, now we should have actual files, which I can compare with my tinySA device. 73, Rudi DL5FA |
Beta Was this translation helpful? Give feedback.
-
Hello Martin,
Thank you very much for your detailed explanations.
I have tried to port your program parse_menu.py for the tinySA.
Links:
File ui_sa.c and plot.c from:
https://github.com/erikkaashoek/tinySA
The adopted program is named: Ho-Ro_tinySA_menu_readout.py
I added a statement to cut off any // C comments at the end of a line.
It works up to the point:
...
PAUSE/RESUME SWEEP
CALC
STORAGE
static const menuitem_t menu_storage[] = { - menu_storage
STORE TRACE
CLEAR STORED
SUBTRACT STORED
NORMALIZE
<- BACK
STORE TRACE
CLEAR STORED
SUBTRACT STORED
NORMALIZE
WATER FALL
SWEEP SETTINGS
static const menuitem_t menu_sweep_speed[] = - menu_sweep_speed
MT_ADV_CALLBACK, SD_NORMAL, "NORMAL", menu_scanning_speed_acb},
Traceback (most recent call last):
File "/Volumes/DAT/HDA8/INSTALL/Develop/Afu/tinySA/Menu/Ho-Ro_tinySA_menu_readout.py", line 149, in
show_menu( 'menu_top', 0 )
File "/Volumes/DAT/HDA8/INSTALL/Develop/Afu/tinySA/Menu/Ho-Ro_tinySA_menu_readout.py", line 146, in show_menu
show_menu( next_menu, level + 1 )
File "/Volumes/DAT/HDA8/INSTALL/Develop/Afu/tinySA/Menu/Ho-Ro_tinySA_menu_readout.py", line 146, in show_menu
show_menu( next_menu, level + 1 )
File "/Volumes/DAT/HDA8/INSTALL/Develop/Afu/tinySA/Menu/Ho-Ro_tinySA_menu_readout.py", line 85, in show_menu
param = param.strip()
UnboundLocalError: local variable 'param' referenced before assignment
The last error line comes from the new statements: try: and except:
Now I have no more idea how to make it work.
All files should be attached:
[Ho-Ro_tinySA_menu_readout.py.zip](https://github.com/Ho-Ro/Nano
plot.c.zip
VNA-D/files/9895889/Ho-Ro_tinySA_menu_readout.py.zip)
ui_sa.c.zip
Would you please be so kind and try it make it work?
73, Rudi DL5FA
Beta Was this translation helpful? Give feedback.
All reactions