File format:Wavedrom

From sigrok
Revision as of 13:49, 21 December 2019 by Gsi (talk | contribs) (start a wavedrom output file format page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

textual representation of digital timing diagrams, using the JSON syntax see the WaveDrom website for more details

 $ sigrok-cli -d demo:analog_channels=0 -g Logic -c pattern=graycode --samples=100 -O wavedrom | jq .
 {
   "config": {
     "skin": "narrow"
   },
   "signal": [
     {
       "wave": "1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.1.0.",
       "name": "D0"
     },
     {
       "wave": "01...0...1...0...1...0...1...0...1...0...1...0...1...0...1...0...1...0...1...0...1...0...1...0...1..",
       "name": "D1"
     },
     {
       "wave": "0..1.......0.......1.......0.......1.......0.......1.......0.......1.......0.......1.......0.......1",
       "name": "D2"
     },
     {
       "wave": "0......1.......0.......1.......0.......1.......0.......1.......0.......1.......0.......1.......0....",
       "name": "D3"
     }
   ]
 }