mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-05-13 10:57:40 +00:00
Init ESDS repository
This commit is contained in:
commit
c2e6aad09f
106 changed files with 2638 additions and 0 deletions
tests/simple_read_eth0_ncom_2s1r
12
tests/simple_read_eth0_ncom_2s1r/receiver.py
Normal file
12
tests/simple_read_eth0_ncom_2s1r/receiver.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
def execute(api):
|
||||
api.log("eth0 is {}".format(api.read("eth0_ncom")))
|
||||
api.wait(624)
|
||||
api.log("eth0 is {}".format(api.read("eth0_ncom")))
|
||||
api.wait(624)
|
||||
# Now we are at 624*2=1248 (first sender start a communication)
|
||||
api.wait(1) # Let the communication starts
|
||||
api.log("eth0 is {}".format(api.read("eth0_ncom"))) # Should print 1
|
||||
api.wait(1) # Now second sender start a communication
|
||||
api.log("eth0 is {}".format(api.read("eth0_ncom"))) # Should print 2
|
Loading…
Add table
Add a link
Reference in a new issue