Category: Hardware
Product Number: ESPICO-DK
Hi,
I am trying to run SWV at frequencies greater than 100 Hz and am running into some issues. Here is my Arduino method script for SWV at a freq of 100 Hz, E step of 4 mV, and Amplitude of 25 mV:
"e\n"
"var c\n"
"var p\n"
"var f\n"
"var g\n"
"set_pgstat_chan 1\n"
"set_pgstat_mode 0\n"
"set_pgstat_chan 0\n"
"set_pgstat_mode 3\n"
"set_max_bandwidth 4k\n"
"set_range_minmax da -525m 25m\n"
"set_range ba 590u\n"
"set_autoranging ba 590u 590u\n"
"set_e 0m\n"
"cell_on\n"
// "meas_loop_ca p c 0 500m 10\n"
// "pck_start\n"
// "pck_end\n"
// "endloop\n"
"meas_loop_swv p c f g 0 -500m 4m 25m 100\n"
"pck_start\n"
"pck_add p\n"
//"pck_add c\n"
//"pck_add f\n"
"pck_add g\n"
"pck_end\n"
"endloop\n"
"on_finished:\n"
"cell_off\n"
"\n";
This is very closely copied over from PSTrace with the same settings. However - I am experiencing some data loss. The anticipated # of data points should be around 130 (128 to be exact) but the Arduino serial monitor seemingly only prints about 30. The graphical output is encouraging in that the response is there to some degree, but I am not sure what is causing this bug. Something in my methodscript?
Please advise. Thanks a lot for the help.
