# All EEG channels are not referenced to the same electrode when running the following code

**URL:** <https://mne.discourse.group/t/all-eeg-channels-are-not-referenced-to-the-same-electrode-when-running-the-following-code/11154>\
**Category:** Support & Discussions\
**Created:** [April 29, 2025, 7:41pm UTC](https://mne.discourse.group/t/all-eeg-channels-are-not-referenced-to-the-same-electrode-when-running-the-following-code/11154 "2025-04-29T19:41:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnFaulhaber](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JohnFaulhaber](https://mne.discourse.group/u/JohnFaulhaber)\
**Post date:** [April 29, 2025, 7:41pm UTC](https://mne.discourse.group/t/all-eeg-channels-are-not-referenced-to-the-same-electrode-when-running-the-following-code/11154/1 "2025-04-29T19:41:27Z")

</div>

I am using Version 1.9.0.

When I point fname to the sample file, I get the impedences.  
cnt = read\_cnt(fname)  
\_, \_, \_, impedances, \_ = read\_triggers(cnt)

I get an error with the same code when I point fname to my file.

When I continue with  
raw = read\_raw\_ant(fname,preload=True)  
pointing to my file or the sample file, I get the correct output.

---

<div class="post-metadata">

**Author:** ![cbrnr](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/cbrnr/32/1409_2.png) [@cbrnr](https://mne.discourse.group/u/cbrnr)\
**Post date:** [April 30, 2025, 7:50am UTC](https://mne.discourse.group/t/all-eeg-channels-are-not-referenced-to-the-same-electrode-when-running-the-following-code/11154/2 "2025-04-30T07:50:44Z")

</div>

Both Neuroscan and ANT Neuro use different file formats with the same `.cnt` extension. This means that the example file is a Neuroscan CNT and therefore requires `read_raw_cnt()`. Your file is an ANT Neuro CNT and therefore requires `read_raw_ant()`.

---

<div class="post-metadata">

**Author:** ![JohnFaulhaber](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JohnFaulhaber](https://mne.discourse.group/u/JohnFaulhaber)\
**Post date:** [May 1, 2025, 8:09pm UTC](https://mne.discourse.group/t/all-eeg-channels-are-not-referenced-to-the-same-electrode-when-running-the-following-code/11154/3 "2025-05-01T20:09:38Z")

</div>

Clemens,

I have been using read\_raw\_ant. I get a nice raw file that contains the data that I need.

During execution of read\_raw\_ant, I also get some warning messages. They don’t seem to affect my data but I always get nervous using new tools when I get warnings.

_I loved a city once. It’s gone now. What’s left are the memories._  
John Kass

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [May 8, 2025, 8:09pm UTC](https://mne.discourse.group/t/all-eeg-channels-are-not-referenced-to-the-same-electrode-when-running-the-following-code/11154/4 "2025-05-08T20:09:54Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
