Skip to content

Commit 3dda72c

Browse files
committed
Add test
1 parent 5c619d9 commit 3dda72c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/sim_records.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def update_sin_wf(value):
4242
sin_wf.set(numpy.sin(
4343
numpy.linspace(0, 2*numpy.pi*sin_ph.get(), sin_len.get())))
4444
sin_wf = Waveform('SIN', datatype = float, length = 1024)
45+
# Check we can update its value before iocInit as per #22
46+
sin_wf.set([1, 2, 3])
4547
sin_len = longOut(
4648
'SINN', 0, 1024, initial_value=1024, on_update=update_sin_wf)
4749
sin_ph = aOut('SINP', initial_value = 0.0, on_update = update_sin_wf)

0 commit comments

Comments
 (0)