-
Notifications
You must be signed in to change notification settings - Fork 1
/
test_RAZ.py
27 lines (21 loc) · 1.07 KB
/
test_RAZ.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import crappy
def remise_a_zero() :
gen = crappy.blocks.Generator(path=[{'type': 'constant',
'value': 0,
'condition': "delay=0.01"}],
cmd_label='commande_en_charge',
spam=True)
carte_NI = crappy.blocks.IOBlock(name="Nidaqmx",
labels=["t(s)", "sortie_charge",
"sortie_deplacement"],
cmd_labels=["commande_en_charge", "commande_en_charge"],
initial_cmd=[0.0, 0.0],
exit_values=[0.0, 0.0],
channels=[{'name': 'Dev3/ao0'},
{'name': 'Dev3/ao1'},
{'name': 'Dev3/ai6'},
{'name': 'Dev3/ai7'}])
crappy.link(gen, carte_NI)
crappy.start()
if __name__ == '__main__':
remise_a_zero()