<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear fieldtrippers,<div class=""><br class=""></div><div class="">I’m trying to read the header of a Neuralynx dataset, using the last FieldTrip version available at Github, running on a Linux machine. I encounter the following error (see below).</div><div class=""><br class=""></div><div class="">Originally, I thought that the problem could be related to a FieldTrip dependency on a .mex file, that should be downloaded from the Neuralynx website (‘Neuralynx file reader and writer for Matlab on Linux and Mac OS X’), so I downloaded, compiled and placed the toolbox on a recognizable MATLAB path. </div><div class="">Then, when I run ft_hastoolbox, I noticed that the value of the variable dependency is “3”, which is the expected outcome from the MATLAB function “exist" (which is used in the helper function has_mex from ft_hastoolbox (l539)), when you have a recognizable mex file. However, the value 3 provides you the cryptic error message in “is_present” at line 576</div><div class=""><br class=""></div><div class="">Do you have any clue if I’m doing something wrong?</div><div class=""><br class=""></div><div class="">Thanks in advance!</div><div class="">Conrado</div><div class=""> </div><div class=""><div class=""><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">K>> Error using ft_hastoolbox>is_present (line 576)</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">this should not happen</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0); min-height: 20px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Error in ft_hastoolbox (line 378)</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">status = is_present(dependency);</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0); min-height: 20px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Error in read_neuralynx_ncs (line 57)</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> isMexv3 = ft_hastoolbox('neuralynx_v3', 2); % let's leave warnings for debug</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0); min-height: 20px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Error in read_neuralynx_ds (line 84)</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> orig(i) = read_neuralynx_ncs(fname{i}, 0, 0);</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0); min-height: 20px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Error in ft_read_header (line 1576)</span></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> hdr = read_neuralynx_ds(filename);</span></div></div></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: 'Andale Mono'; color: rgb(0, 249, 0); background-color: rgb(0, 0, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><span style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px;" class=""> of a Neuralynx</span></span></div></body></html>