Exemple #1
0
b.resetCounter()

print(b.state())

# In[8]:

# Disabling the Counter

b.disable()

# Now triggering it has no effect.

b.trigger()

print(b.state())

# In[9]:

# Enabling the Counter

b.enable()
b.trigger()

print(b.state())

# In[10]:

# Kill the clock thread.
clock.kill()
Exemple #2
0
print(b.state())


# In[8]:

# Disabling the Counter

b.disable()

# Now triggering it has no effect.

b.trigger()

print(b.state())


# In[9]:

# Enabling the Counter

b.enable()
b.trigger()

print(b.state())


# In[10]:

# Kill the clock thread.
clock.kill()