multiple separate recordings using a Matlab script - data plus ADC channels

43 views
Skip to first unread message

Sarah W Bottjer

unread,
Feb 13, 2025, 1:10:31 PMFeb 13
to Open Ephys
Hi Pavel, I have a question about the Matlab script I am using to collect data (multiple 1-hr files).  I have 64 data channels (mini-amp-64) and 2 ADC channels (all through Acquis Board - one data stream).  My understanding is that I should have only one “continuous channel buffer monitor” on the left of my Record node (i.e. for the Acquis Board).
       This raises the question of how to include all 66 channels in my Matlab script. Right now in the relevant line I have:
gui.config(102, "SELECT 0 1 2 3 4 5 6 7 8 9 . . . 59 60 61 62 63") 

What additional info do I need to add so that the 2 ADC channels are included?
I have attached the script.  thanks, Sarah
open_ephys_control_2025.m

Pavel Kulik

unread,
Feb 13, 2025, 4:32:56 PMFeb 13
to Open Ephys

Hi Sarah,

Assuming you have AUX disabled and ADC enabled in your acquisition board plugin,  you should see a total of 64 DATA + 8 ADC = 72 continuous channels when clicking on the RecordNode's continuous channel buffer monitor. If you enable AUX, you'll have 64 + 3 + 8 = 75. AUX channels will always come before ADC if they are enabled. in your case I recommend leaving disabled if not using them.

To record all 64 DATA plus the 2 ADCs (with AUX disabled), you'll just need to add the 2 ADC channels to your current list. Note that the first number after SELECT is actually the stream ID (0-indexed). The rest of the values are the channel numbers (which are 1-indexed). So the correct command in your case is:

gui.config(102, "SELECT 0 1 2 3 4 5 6 7 8 9 . . . 59 60 61 62 63 64 65 66") where I added 64 as a missing DATA channel and 65, 66 are the ADC channels, assuming you are using ADC1 and ADC2 in hardware. 

Sarah W Bottjer

unread,
Feb 14, 2025, 12:12:21 PMFeb 14
to Open Ephys
Got it - very helpful.  I do see 72 channels if I have headstage connected.  AUX is off.  I have unchecked ADC channels 3 thru 8 in the BP Filter & the Record Node (but they still seem to show up in LFP ViewFinder?  Have not made a "real" recording yet).   Thanks for your speedy reply, Sarah  

Pavel Kulik

unread,
Feb 14, 2025, 1:23:58 PMFeb 14
to Open Ephys
Unchecking the ADC channels in BP filter just means the filter won't get applied to those channels but the raw signal itself will still get passed through BP filter and to down stream processors such as LFPViewer. Similar with RecordNode, the unchecked channels won't get written to disk but they continue down the signal chain and can be accessed in down stream processors. 
Reply all
Reply to author
Forward
0 new messages