Skip to content

Commit a47e2c4

Browse files
committed
Update arduino_dlog_bookmarks.ino
1 parent 1802988 commit a47e2c4

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docs/examples/arduino_dlog_bookmarks/arduino_dlog_bookmarks.ino

+8-3
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,23 @@ void setup() {
2828
Serial1.println("INST CH1");
2929
Serial1.println("CURR 2");
3030
Serial1.println("OUTP 1");
31+
32+
// make sure all previous commands are executed
33+
Serial1.println("*OPC?");
34+
while (!Serial1.available());
35+
3136
// wait 1sec
32-
delay(1000);
37+
delay (1000);
3338

3439
// add "start" bookmark
3540
Serial1.println("SENS:DLOG:TRAC:BOOK 'Start'");
3641

3742
// change output voltage 5 times on CH1
3843
for (int i = 0; i < 5; i++) {
3944
Serial1.println("VOLT 10");
40-
delay(500);
45+
Serial1.println("SYST:DEL 500");
4146
Serial1.println("VOLT 5");
42-
delay(1000);
47+
Serial1.println("SYST:DEL 1000");
4348
}
4449

4550
// add "pause" bookmark

0 commit comments

Comments
 (0)