Permalink
Cannot retrieve contributors at this time
11 lines (9 sloc)
211 Bytes
|
--- sample & hold |
|
-- in1: sampling clock |
|
-- out1: random sample |
|
|
|
function init() |
|
input[1].mode('change',1,0.1,'rising') |
|
end |
|
|
|
input[1].change = function() |
|
output[1].volts = math.random() * 10.0 - 5.0 |
|
end |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.