inincs / pyNCS

pyNCS is a python library that allows easy access to Neuromorphic Chips and Systems (NCS),
http://inincs.github.com/pyNCS/
GNU General Public License v2.0
16 stars 10 forks source link

stimulus problem #21

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hello pyncs developers,

I try to use this command in pyncs but it seems to have some bugs: stimulus = input_addrgroup.spiketrains_regular(freaq,duration).

The manual says that the default duration is 1000.0 ms but with with this duration I can not get any spike. Example1: In [51]: stimulus = input_addrgroup.spiketrains_regular(100,1000.0)

In [52]: output = setup.run(stimulus) Connecting to localhost

if you put 100. instead of 1000.0, stimulus constains some spikes. Also without speciying any default duration, it works fine for low frequencies. Example2: In [49]: stimulus = input_addrgroup.spiketrains_regular(100)

In [50]: output = setup.run(stimulus) Connecting to localhost Ch1: 118 evs

However when you put high frequencies it saturates. Example3: In [58]: stimulus = input_addrgroup.spiketrains_regular(500)

In [59]: output = setup.run(stimulus) Connecting to localhost Ch1: 213 evs

Example3: In [62]: stimulus = input_addrgroup.spiketrains_regular(700)

In [63]: output = setup.run(stimulus) Connecting to localhost Ch1: 235 evs

You can see that although input freaq is 700 hundred we see 235 Hz and we also measure this from oscilloscope.

Could you please look into this problem, it is really urgent. Thanks/Mehmet/INI

fabioedoardoluigialberto commented 10 years ago

Hi Mehmet,

thanks for reporting this problem.

However, this problem is most probably related to the specific communication APIs you are using and will require support that is not stricly related to pyNCS. For this reason, it's better to communicate through private emails and not on this page.

Thanks for your understanding, Fabio

ghost commented 10 years ago

Hi Fabio, Thanks for answer. Giacomo suggested to ask through github actually. Today I have lecuture until 17.00. If you are at INI after that it would be nice if you could have a look.

Regards

Sent from my iPad

On 27 Nov 2013, at 21:15, Fabio Stefanini notifications@github.com wrote:

Hi Mehmet,

thanks for reporting this problem.

However, this problem is most probably related to the specific communication APIs you are using and will require support that is not stricly related to pyNCS. For this reason, it's better to communicate through private emails and not on this page.

Thanks for your understanding, Fabio

— Reply to this email directly or view it on GitHubhttps://github.com/inincs/pyNCS/issues/21#issuecomment-29416758.

sheiksadique commented 10 years ago

A raster plot on the "stimulus" object should tell you what kind of spikes were generated from the function call

:: stimulus = input_addrgroup.spiketrains_regular(500)

What happens when you use high frequencies is, as Fabio mentioned, related to the AEX board and drivers that you use.

ghost commented 10 years ago

Thanks Sadique,

stimulus does not have raster plot but these : In [98]: stimulus. stimulus.clear stimulus.get stimulus.iteritems stimulus.keys stimulus.setdefault stimulus.viewitems stimulus.copy stimulus.has_key stimulus.iterkeys stimulus.pop stimulus.update stimulus.viewkeys stimulus.fromkeys stimulus.items stimulus.itervalues stimulus.popitem stimulus.values stimulus.viewvalues I could not do raster plot.

On 28 November 2013 10:14, sheiksadique notifications@github.com wrote:

A raster plot on the "stimulus" object should tell you what kind of spikes were generated from the function call

:: stimulus = input_addrgroup.spiketrains_regular(500)

What happens when you use high frequencies is, as Fabio mentioned, related to the AEX board and drivers that you use.

— Reply to this email directly or view it on GitHubhttps://github.com/inincs/pyNCS/issues/21#issuecomment-29448959 .

Mehmet Sirin Ozdas PhD Student at NCS Group Institute of Neuroinformatics University of Zurich and ETH Zurich ozdas@ini.phys.ethz.ch skype: mozdas1986