Next: , Previous: , Up: Top   [Contents][Index]


6 External excitation sources

CNrun provides for three types of external stimulation sources:

Function: new_tape_source (C, M, source_name, file_name, looping)

Set up a new tape source named source_name, from data in file file_name.

Function: new_periodic_source (C, M, source_name, file_name, looping, period)

Set up a new periodic source named source_name, from data in file file_name, optionally looping over a period (stuck at the last value, if not).

Function: new_noise_source (C, M, source_name, min, max, sigma, distribution)

Set up a new noise source named source_name, of a given distribution (possible values are "uniform" and "gaussian"), with given min, max, and (for the gaussian) sigma.

Function: get_sources (C, M)

Get all sources created in the model, returning labels as strings.

Function: connect_source (C, M, L, P, source_name)

Connect source source_name to parameter P of unit L.

Function: disconnect_source (C, M, L, P, source_name)

Disconnect a previously connected source source_name from parameter P of unit L.