Hey there,
I am considered new in Nengo and Nengoforum . I am trying to create a network model and I need to collect live current from an ensemble to arrange a transform value to the other ens. For example I have 3 separate ens. I need to adjust one of the ens(C) output from another (A) ens output like “when the output of A smaller than 0.5 , stop the signal from C”. I already tried probes with simulation step_runs to collect data from A to compare actual simulation currents but I don’t know what kind of data we collect from probes. And as far as I understand, run_step or step function will carry my network to further steps but all I want is that if my simulation is running, what is my current for 3s. It will be easier to show with codes so basically:
Thanks !
with nengo.Network() as model:
input1 = nengo.Node(np.sin, size_out = 1)
A = nengo.Ensemble(n_neurons = 100, dimensions = 1)
B = nengo.Ensemble(n_neurons = 100, dimensions = 1)
C = nengo.Ensemble(n_neurons = 100, dimensions = 1)
output1 = nengo.Node(size_in = 1)
nengo.Connection(input1,A)
nengo.Connection(A,B)
with nengo.Simulator(model) as sim:
sim.run_steps(3)
if (output_current of A < 0.5):
nengo.Connection(B,C, transform == [[0]])
else:
nengo.Connection(B,C, transform == [[1]])
nengo.Connection(C,output1)