# Set scale by trial and error. o.setScale(0.15) # Set the width of the oscilloscope [ To fit the ipython Notebook ] o.setWidth(100) # In[4]: # Then unhold [ Run the Oscilloscope ] o.unhold() print(b.state()) # Triggering the Binary Counter 10 times. for i in range(10): b.trigger() print(b.state()) # Display the time-Waveform. o.display() # Kill the oscilloscope thread. o.kill() # In[5]: # Calling the instance will also trigger the counter. print("b()") # In[6]:
o.setScale(0.15) # Set the width of the oscilloscope [ To fit the ipython Notebook ] o.setWidth(100) # In[4]: # Then unhold [ Run the Oscilloscope ] o.unhold() print(b.state()) # Triggering the Binary Counter 10 times. for i in range(10): b.trigger() print (b.state()) # Display the time-Waveform. o.display() # Kill the oscilloscope thread. o.kill() # In[5]: # Calling the instance will also trigger the counter. print("b()")