File format:Wavedrom

From sigrok
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"
     }
   ]
 }