gupta

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hello, I am a new user of Analog Discovery 2 device. I would like to output a pattern at DIO1 (for example) wherein the duty ratio is selected from a look-up table. I am trying to use the Script Editor. However, I am unsure what function/variable I should use to increment the index for the look-up table such that at the beginning of every cycle, the clock has the updated duty ratio. Here is a snapshot of my dummy code: clear() if(!('Patterns' in this)) throw "Please open a Patterns instrument"; var values = [10, 20, 30, 40, 50, 60, 70, 80, 90, 95]; Patterns.run(); for(var idx = 0; idx