<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi Irene, 
<div><br>
</div>
<div>If you type dipoli.exe -h on the windows command line, you will see the documentation about how the executable can be used. In combination with the code in ft_headmodel_dipoli (which basically is a ’gateway’ into the executable, and it writes the boundaries
 into a set of files that the executable can work with) I think you might be able to get up and running.</div>
<div><br>
</div>
<div>Nonetheless, on the long run I think that we should go the extra mile, and make a principled implementation, so that people don’t have to reinvent the wheel over and over.</div>
<div><br>
</div>
<div>Best wishes,</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<div>
<div><br>
<blockquote type="cite">
<div>On 13 Sep 2024, at 15:48, IRENE INCERTI <196344@studenti.unimore.it> wrote:</div>
<div>
<div>
<div>
<div dir="ltr">
<p><strong>Dear JM,</strong></p>
<p>I am pleased that you have attempted to use the dipoli executable. I was also able to open and run the executable; however, it prompts me to insert the 'filename1' but returns an 'out of memory' error and then, it crushes. Do you think this issue could be
 related to the file's size or its extension? Could you please provide the dimensions and extension of your input file?</p>
<p>Additionally, how do you input the conductivities? Should they be entered immediately after the file name?</p>
<p>Thank you very much.</p>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Il giorno gio 12 set 2024 alle ore 17:31 Schoffelen, J.M. (Jan Mathijs) via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>> ha scritto:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>Hi Irene,
<div><br>
</div>
<div>As you may have noticed: the dipoli executable (dipoli.exe) cannot yet be directly accessed from within FieldTrip, in the same way as the other executables can be accessed (on the other operating systems). It shouldn’t be altogether too difficult to get
 this up and running (in fact: I quickly tried this on one of the windows systems in the building, and was successful), and it surprises me a bit that nobody has ever made the effort to go the extra few steps that are needed. Or perhaps people have done this,
 but have never shared it. For a crate of nice vintage balsamico vinegar I would be up for the challenge. The way forward here would be to reopen this issue: <a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffieldtrip%2Ffieldtrip%2Fissues%2F1130&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C18375287a96e4380d7cc08dcd400729c%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638618345582746411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=PB7DR0ROkrEjtqOL38yVJVtABYFqG3w%2F36HiRFuSWTw%3D&reserved=0" originalsrc="https://github.com/fieldtrip/fieldtrip/issues/1130" shash="YTr4l712HHgCMz9XPOwJNnUjUVgfXownLGUY1xRlzd5VE/FJYAOCHtmpJSAnmpaVhZEP5A4/SAcVQfzdqqctsLx55NdN+wbxlZvZ3DJCMZS3lTI1cezl/TB+gMh3uRD4yEcftugCaoIWw5wNcbfxPjmNcqhtlmOabc1S3PDJbco=" originalsrc="https://github.com/fieldtrip/fieldtrip/issues/1130" shash="k7J7lhDqS4PXxpjobfxFSlGXaUy2r8/I/8a+Kb6OaneHBfXiayUi0rjBLnmnlBQPuofNQR8HtSpaENYmFzXHw0j9jmit3taZqck+H5u5Uo3ekSooFAXfk506Gl6r/EnZ5utfgvw5AGMM2tPxG7AfIds1FxDIAMaxdVRTWGpl53w=" target="_blank">https://github.com/fieldtrip/fieldtrip/issues/1130</a> and
 take it from there. I wouldn’t mind to create a PR on github with code changes that builds in support for dipoli in windows, provided this is considered to be a good overall improvement, and provided that other people write the documentation, and do the testing.</div>
<div><br>
</div>
<div>Best wishes,</div>
<div>JM</div>
<div><br>
</div>
<div><br>
</div>
<div><br id="m_222899751405352053lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On 12 Sep 2024, at 10:29, IRENE INCERTI via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>> wrote:</div>
<br>
<div>
<div dir="ltr">Dear Fieldtrippers, 
<div>I am a new user of FieldTrip.</div>
<div><br>
</div>
<div>I'm working with a Windows system.</div>
<div>I'm currently attempting to perform an EEG source reconstruction with realistic head geometries. FieldTrip implements the Boundary Element Method (BEM) for EEG using the foreward ft_compute_leadfield function. However, this requires that an EEG BEM model
 will be built with ft_prepare_model function, where in the cfg.method field, you must specify 'dipoli', 'bemcp', or 'openmeg'. Initially, as I was working with a Windows machine, I tried using 'bemcp'. Unfortunately, the head model failed because, starting
 from 6000 vertices (3000 for the brain, 2000 for the skull, and 1000 for the scalp), it produced a 1000x6000 double conductivity matrix. I have also read in other discussion list that 'bemcp' may encounter issues and, in some cases, does not compute at all.
 I would like to try using 'dipoli', command-line executable or Linux version.</div>
<div><br>
</div>
<div>Does anyone have experience with this method? Could you please explain how it works and what input is required?</div>
<div><br>
</div>
<div>Thank you very much for your assistance.</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Irene</div>
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div style="color:rgb(34,34,34);margin-top:0px;margin-bottom:0px"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">Irene Incerti, PhD student</span></b></div>
<div style="color:rgb(34,34,34);margin-top:0px;margin-bottom:0px"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(111,111,111)"><br>
</span></b></div>
<div style="color:rgb(34,34,34);margin-top:0px;margin-bottom:0px"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">UNI</span></b><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(231,59,24)">MORE</span></b><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(111,111,111)"> </span></b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">University
 of Modena and Reggio Emilia</span><span style="font-family:Arial,sans-serif;color:rgb(111,111,111)"><u></u><u></u></span></div>
<div style="color:rgb(34,34,34);margin-top:0px;margin-bottom:0px"><b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">Department of Biomedical, Metabolic, and Neural Sciences<u></u><u></u></span></b></div>
<div style="color:rgb(34,34,34)">Center for Neuroscience and Neurotechnologies<br>
</div>
<div style="color:rgb(34,34,34)"><b>Neuromorphic Intelligence LABoratory</b></div>
<div style="color:rgb(34,34,34)"><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.nilab.unimore.it%2F&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C18375287a96e4380d7cc08dcd400729c%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638618345582746411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=BlR8LhKPWY%2FlMaMvTRqw9oAXYhSeStso3jowl3U563Y%3D&reserved=0" originalsrc="https://www.nilab.unimore.it/" shash="NLInRd05H1fze0hlvUiuTl86rUkTeg6/S+GNvr8UPBwxu9/aPgrHHhN92hjGRDiw4TNUH6A05//gXaKwagXkr/NyGHx5wRiS5LBMSl7V6DYwAm1hNz2t6WxCavxsh2MFSaZwom9YXul1oOumhT3UPsM2gnCxVixab9zW2WZJg2Y=" originalsrc="https://www.nilab.unimore.it/" shash="bYmTd/Bhi20TQBr62mSnLZPoLUe6b+EQj+ZnF7sRV3S96/8Q8CFTSkihVFb7jGRsXqmH5OGqJPkjpYa32AZ9+wTg0rfufROX9HDM+QaJUCEOgRsNCOyOtNVC50c5wXBuVG4TOdGaayXIVMJiUgMAO3n86Fq573DQjrJOkD5tnbY=" style="color:rgb(17,85,204)" target="_blank">https://www.nilab.unimore.it/</a><br>
</div>
<p style="color:rgb(34,34,34);margin-top:0px;margin-bottom:0px"></p>
<div style="color:rgb(34,34,34);margin-top:0px;margin-bottom:0px"><span lang="IT" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">Via Campi, 287 - 41125 Modena (MO) ITALY</span></div>
<div style="color:rgb(34,34,34);margin-top:0px;margin-bottom:0px"><span lang="IT" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">Mailto: irene.incerti<a href="mailto:f.raimondi@unimore.it" style="color:rgb(17,85,204)" target="_blank">@unimore.it</a></span></div>
</div>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C18375287a96e4380d7cc08dcd400729c%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638618345582746411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=qLMhvWRExDJG4XqIniJvaxhB%2BqRduhv6tABJ%2F9%2FFBXU%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="pvpPTIBuWuzIZZJ4+39pO5J9CBzSLe+2bIm/eTiEYCWxRNXwRY5h5TjFHu7DGduwwKDyab1BXxg7w+8JVkUg8Qw3d8hzulT76LqN2TFQww/MZSc48cUk2xHvweQSEdE5yFh3dNDq6yFMwNxNjKUY1OcnysWYXsooubLlqWXUCwU=" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="XAlfWeJ/oqgyxicDleFHcbqMtfk8UYlO4I0Q1+jWnlej948UxVOBjG//TcD1Wup3y6XhUlk5isatHshGDoyNZoST1Nbh9r2hzTYGS1s9tH0e4qkoT7/Y/fsAjG1QEO9v+zlQLtPOvY7WY4LfAgIUyC0/dgiInzHi+Bc6CGKycyc=" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C18375287a96e4380d7cc08dcd400729c%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638618345582746411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Gy2OEVKYrhuSnfayFM6ic9O13e%2B4VY%2F%2BU4ezVidlL9E%3D&reserved=0" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="Fde5FHxOxfgRJ7BVNuLAhpjHuD4XbcPA6gKazLUqTqWd55I3AJqbHHrVniMAEGeMYKJyLAj+H6+syqaQ6s5KUGpfpfxgdOJqdQljfFFMmp3iMmW3jjIPme4HNag3BwXSmt/O0PGXC00wSWdSAEuk8tMpAfEJ0fJQWnAI9MLgtOg=" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="cGN7KWkYq9ZB0YaLeUjlETtVNs3CMqZWNIpvzGdPq9eQ6Ds78y6f9we/+eVCbHe+YEQev4N24vUu+KqkqJdwD0r+W0cVQf1sebNwRVosNBGc/VV1T6xGrlquhq7l+RO62IDrIpy6wPR8yoLSjKFEkJyPijl275mPJsTWCIHb/Os=" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C18375287a96e4380d7cc08dcd400729c%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638618345582746411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=qLMhvWRExDJG4XqIniJvaxhB%2BqRduhv6tABJ%2F9%2FFBXU%3D&reserved=0" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="pvpPTIBuWuzIZZJ4+39pO5J9CBzSLe+2bIm/eTiEYCWxRNXwRY5h5TjFHu7DGduwwKDyab1BXxg7w+8JVkUg8Qw3d8hzulT76LqN2TFQww/MZSc48cUk2xHvweQSEdE5yFh3dNDq6yFMwNxNjKUY1OcnysWYXsooubLlqWXUCwU=" originalsrc="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" shash="MXtrd11or4BD40qag5b9JocJWmXYccwU3jA9OY2/2tComzYxKfAXg+s7wQxKq8F8MAzV62zmkRGrelwQ6Iw1Tjap3C2sfrWzeCh9aMiveeps99L/d/pQhjWnncrC9tqt0DG7oFwXhg8SZb3yYNNp/5YTMUSm78C1DT/G9eFb6Gs=" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C18375287a96e4380d7cc08dcd400729c%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638618345582746411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=Gy2OEVKYrhuSnfayFM6ic9O13e%2B4VY%2F%2BU4ezVidlL9E%3D&reserved=0" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="Fde5FHxOxfgRJ7BVNuLAhpjHuD4XbcPA6gKazLUqTqWd55I3AJqbHHrVniMAEGeMYKJyLAj+H6+syqaQ6s5KUGpfpfxgdOJqdQljfFFMmp3iMmW3jjIPme4HNag3BwXSmt/O0PGXC00wSWdSAEuk8tMpAfEJ0fJQWnAI9MLgtOg=" originalsrc="https://doi.org/10.1371/journal.pcbi.1002202" shash="pSfHvKPEFVNEOW05nrqSALwS/t4DrMUOkpP8b7jz+ungwQAg86cY+rwhIg8alXD8OcgFj0YOizmb1m02TvxLBpDIwJCA/X5tFQiGBOv1/iqA6XbDHhkwmRp6AjH6qYq3gS1E0Ic6jDmgVx74Jh1o4r0Ix4yaV8On4ebnJeYcWX8=" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div style="color: rgb(34, 34, 34); margin-top: 0px; margin-bottom: 0px;"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">Irene Incerti, PhD student</span></b></div>
<div style="color: rgb(34, 34, 34); margin-top: 0px; margin-bottom: 0px;"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(111,111,111)"><br>
</span></b></div>
<div style="color: rgb(34, 34, 34); margin-top: 0px; margin-bottom: 0px;"><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">UNI</span></b><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(231,59,24)">MORE</span></b><b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(111,111,111)"> </span></b><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">University
 of Modena and Reggio Emilia</span><span style="font-family:Arial,sans-serif;color:rgb(111,111,111)"><u></u><u></u></span></div>
<div style="color: rgb(34, 34, 34); margin-top: 0px; margin-bottom: 0px;"><b><span style="font-size:9pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">Department of Biomedical, Metabolic, and Neural Sciences<u></u><u></u></span></b></div>
<div style="color:rgb(34,34,34)">Center for Neuroscience and Neurotechnologies<br>
</div>
<div style="color:rgb(34,34,34)"><b>Neuromorphic Intelligence LABoratory</b></div>
<div style="color:rgb(34,34,34)"><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.nilab.unimore.it%2F&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C18375287a96e4380d7cc08dcd400729c%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638618345582746411%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=BlR8LhKPWY%2FlMaMvTRqw9oAXYhSeStso3jowl3U563Y%3D&reserved=0" originalsrc="https://www.nilab.unimore.it/" shash="NLInRd05H1fze0hlvUiuTl86rUkTeg6/S+GNvr8UPBwxu9/aPgrHHhN92hjGRDiw4TNUH6A05//gXaKwagXkr/NyGHx5wRiS5LBMSl7V6DYwAm1hNz2t6WxCavxsh2MFSaZwom9YXul1oOumhT3UPsM2gnCxVixab9zW2WZJg2Y=" originalsrc="https://www.nilab.unimore.it/" shash="NhLIkug+7GenkEBK8rbwzfrHy3OVQnaieKi9k9AullrX82rVNhJxR/Xoli6uaLvONQB2Mzd8aLkqI+IWlySKKZRaOYlSiRIUqJYKWbTYJRC0aj3g9WlihRWYV2nCwr/fwvbdHfATjaRT07dceqt6+Pyl8AF6yqv+clJwyWwdjno=" style="color:rgb(17,85,204)" target="_blank">https://www.nilab.unimore.it/</a><br>
</div>
<p style="color:rgb(34,34,34);margin-top:0px;margin-bottom:0px"></p>
<div style="color: rgb(34, 34, 34); margin-top: 0px; margin-bottom: 0px;"><span lang="IT" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">Via Campi, 287 - 41125 Modena (MO) ITALY</span></div>
<div style="color: rgb(34, 34, 34); margin-top: 0px; margin-bottom: 0px;"><span lang="IT" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(111,111,111)">Mailto: irene.incerti<a href="mailto:f.raimondi@unimore.it" style="color:rgb(17,85,204)" target="_blank">@unimore.it</a></span></div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>