get data from analog 2

View previous topic View next topic Go down

get data from analog 2

Post  hartwig on Fri Dec 07, 2012 6:31 am

Hi all!

We recorded data using a 60-channel MEA system, using the analog input to record triggers of the ongoing experiment. So far we used analog 1 for this purpose, but we had to switch to analog 2 now. We couldn't find out how and where to get the data from analog channel 2. We use Matlab and the neuroshare scripts to import the data.

The command "ns_GetEntityInfo(hfile,62)" works for data recorded with analog 1, but seemingly not for analog 2. Can you point us to how to get analog 2 data out?

Thanks! santa

hartwig

Posts : 3
Join date : 2012-12-07

View user profile

Back to top Go down

Re: get data from analog 2

Post  Jens on Sun Dec 09, 2012 9:24 pm

Have you tried "ns_GetEntityInfo(hfile,63)"?

Is it recorded at all?

Jens

Jens

Posts : 54
Join date : 2009-03-05
Location : Multi Channel Systems

View user profile http://www.multichannelsystems.com

Back to top Go down

Re: get data from analog 2

Post  hartwig on Sun Dec 09, 2012 10:45 pm

I had that idea as well, but it didn't work (see below). I was suspecting the same, that it just didn't record the analog 2 input, but in MC rack I can see the trigger signal when I display "Trigger 1", and it also correctly shows that it is input A2 that the trigger is on. MC rack however only lets me see analog raw data for A1, which is empty (but can be read in matlab, see below).

So, A2 in principle would be found in 63? That means, I probably don't have the analog raw data from A2 somehow, but I do have recorded the trigger time? Then I need to get timings from "Trigger 1", I guess (which is in 01, right?).



Matlab trying to open 63:
>> [~,entity] = ns_GetEntityInfo(hfile,63)
Some entities do not exist (ns_GetEntityInfo).

entity =
EntityLabel: []
EntityType: []
ItemCount: []


Matlab opens 62:
>> [~,entity] = ns_GetEntityInfo(hfile,62)

entity =

EntityLabel: 'anlg0001 0060 0000 A1'
EntityType: 2
ItemCount: 275000

hartwig

Posts : 3
Join date : 2012-12-07

View user profile

Back to top Go down

Re: get data from analog 2

Post  Jens on Mon Dec 10, 2012 12:06 am

If MC_Rack does not let you show A2, you have not recorded A2.
The Trigger is a separate stream or entity in Neuroshare.
So please search through all the entities which one is the trigger. Trigger are event entities. You should be able to get the times.

Jens

Jens

Posts : 54
Join date : 2009-03-05
Location : Multi Channel Systems

View user profile http://www.multichannelsystems.com

Back to top Go down

Re: get data from analog 2

Post  hartwig on Mon Dec 10, 2012 2:11 am

OK, wasn't that hard.. trigger 1 is data stream 01 (as I said), you can get the triggertime (in unit seconds) by:

[~, TrigTimeStamp, ~, ~] = ns_GetEventData(hfile, 01, 1);

thanks.

hartwig

Posts : 3
Join date : 2012-12-07

View user profile

Back to top Go down

Re: get data from analog 2

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum