beifen / neurorighter

Automatically exported from code.google.com/p/neurorighter
0 stars 0 forks source link

hitting start button causes System.Indexoutofrange exception #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pressing start when all settings seem to be correct
2.
3.

What is the expected output? What do you see instead?
neurorighter should run

What version of the product are you using? On what operating system?
version 341 in debugger

Please provide any additional information below.
this is the line of code it errors to
 currentSample[taskNo] += (ulong)numSamplesPerWrite;

exception detail on clipboard:
System.IndexOutOfRangeException was unhandled by user code
  Message="Index was outside the bounds of the array."
  Source="NeuroRighter"
  StackTrace:
       at NeuroRighter.DatSrv.EventDataSrv`1.WriteToBuffer(EventBuffer`1 newData, Int32 taskNo) in C:\Documents and Settings\Lab\Desktop\Chad\Head revision  2\NeuroRighter\DatSrv\EventDataSrv.cs:line 111
       at NeuroRighter.NeuroRighter.AnalogInCallback_spikes(IAsyncResult ar) in C:\Documents and Settings\Lab\Desktop\Chad\Head revision  2\NeuroRighter\NR-UI\ephysaquire.cs:line 178
       at NationalInstruments.Restricted.CallbackManager.TryInvokeAsyncCallbackDirect(AsyncCallback callback, IAsyncResult result)
  InnerException: 

Original issue reported on code.google.com by chadwick...@gmail.com on 13 Jul 2011 at 9:58

GoogleCodeExporter commented 9 years ago
Should be resolved in R342. Problem seems to have been that settings changes 
were not being made to 

datSrv

when user is starting from OL or CL stim tabs

Original comment by jonathan...@gmail.com on 13 Jul 2011 at 10:17

GoogleCodeExporter commented 9 years ago
This issue is resolved.

Original comment by jonathan...@gmail.com on 2 Nov 2011 at 4:01