get data from analog 2
2 posters
Page 1 of 1
get data from analog 2
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!
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!
hartwig- Posts : 3
Join date : 2012-12-07
Re: get data from analog 2
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
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
Re: get data from analog 2
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
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
Re: get data from analog 2
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.
[~, TrigTimeStamp, ~, ~] = ns_GetEventData(hfile, 01, 1);
thanks.
hartwig- Posts : 3
Join date : 2012-12-07
Similar topics
» How to analyze the data from MEA
» How to analyse my data
» data aquisition
» data aquisition
» problem in data retrieving
» How to analyse my data
» data aquisition
» data aquisition
» problem in data retrieving
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum