Skip to content

Commit

Permalink
Update arduino_dlog_bookmarks.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jun 9, 2021
1 parent 1802988 commit a47e2c4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/examples/arduino_dlog_bookmarks/arduino_dlog_bookmarks.ino
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,23 @@ void setup() {
Serial1.println("INST CH1");
Serial1.println("CURR 2");
Serial1.println("OUTP 1");

// make sure all previous commands are executed
Serial1.println("*OPC?");
while (!Serial1.available());

// wait 1sec
delay(1000);
delay (1000);

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

// change output voltage 5 times on CH1
for (int i = 0; i < 5; i++) {
Serial1.println("VOLT 10");
delay(500);
Serial1.println("SYST:DEL 500");
Serial1.println("VOLT 5");
delay(1000);
Serial1.println("SYST:DEL 1000");
}

// add "pause" bookmark
Expand Down

0 comments on commit a47e2c4

Please sign in to comment.