Well here it is. A new test version. Since Alex62 already tried the V0.001 version I made it V0.002.
The item view part is finished and tested to some extend. Both picture and waveform viewing is working. Did not test the picture file on a windows os, but it does work on linux. It no longer has the signal data embedded. It is just a picture. The waveform file format has been simplified and only holds the needed settings and the raw sample data.
Look in the source code to see what data is where in the waveform files. It is in the scope_functions.c file.
Check these functions:
void scope_prepare_setup_for_file(void);
void scope_restore_setup_from_file(void);
int32 scope_check_waveform_file(void);
void scope_save_view_item_file(int32 type);
int32 scope_load_trace_data(void);
The X-Y mode is also working with the new sample capturing.
Auto set is working reasonably well. Only when large DC components are in the signal it will screw up. (With the fix from the previous post. Just in time
)
50% trigger is also working, but the always setting needs a filter. The pointer on the right side of the screen is jumpy.
It is now possible to do vertical zoom when sampling has been stopped. This is also the case when viewing a waveform file.
Made most of the buttons be actual buttons with changing background color when touched. Also changed the voltage per division menu to show the channel color.
Triggering is more stable, but still has the position offset Alex62 pointed out.
I changed the settings data stored on the SD card. It now has a version number and a checksum. On failure it loads a default setup. This means that after installing this version a baseline calibration needs to be done.
Even though it is not finished, I'm going to take a break of the software and play with hardware. Bought a Dake Elec FA201 board to play with. Have to hook it up to a lichee nano and wire-up a jtag board like morris6 made.
So have fun with this test release.