<div dir="ltr">Dear all,<div>I am experiencing some problems with importing my dataset. My original dataset is composed of N Tank files, each containing raw neural data from one electrode,recorded by means of Tucker-Davis Technologies system. At the beginning, I convert my data  in .nex files through OpenBridge software. Subsequently, I start the analysis by epoching the data(i.e. defining trials) and calling ft_preprocessing. Below the script:</div><div><br></div><div>direction='Right'<br>cfg = [];<br>cfg.dataset = ['......nex'] ;<br>event= ft_read_event(cfg.dataset);<br>ev=unique({event.type})<br>cfg.trialdef.eventtype=ev(1);<br>cfg.trialdef.pre=0; % Seconds before the stimulus<br><a href="http://cfg.trialdef.post">cfg.trialdef.post</a>=1.5;<br>cfg.trialfun='ft_definetrial_GoCorr'; %%%%change name function based on condition (i.e.'..StopCorr' | '...StopWrong) In Go condition trials are sorted for RTs<br>cfg= ft_definetrial(cfg);<br>cfg.lpfilter       = 'yes';        % enable low-pass filtering<br>cfg.lpfreq         = 600;          % set up the frequency for low-pass filter<br>cfg.dftfilter      = 'yes';<br>% cfg.dftfreq = 50; %%% remove power line noise<br>cfg.detrend = 'yes';%<br>cfg.channel= 'xWav17';<br>cfg.lpfilttype='fir'<br>cfg.pad=10<br>data               = ft_preprocessing(cfg);<br></div><div><br></div><div>Unfortunately, at this point, a Warning message pop-up saying "Data contains NaNs". When I go through  data.trial I see lots of NaNs. According to my understanding this is not related to problem with trials definition, since every trigger I use to define trials is present and since I have already tried the suggestions provided here</div><div> <a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2019-July/039444.html">https://mailman.science.ru.nl/pipermail/fieldtrip/2019-July/039444.html</a></div><div>I guess that some troubles occurred during the conversion. Has someone experienced the same problem? How could I solve it? Should I try to convert my original data in .mat format and restart the analysis from these .mat files?</div><div>Thank you in advance for the help :)</div><div>Marta</div></div>

<br>
<div style="font-size:1.3em"><font size="2"><span style="color:rgb(34,34,34);font-family:Verdana,sans-serif;background-color:rgb(255,255,255)">______________________________<wbr>__________________________</span></font></div><font size="1"><span style="color:rgb(34,34,34);font-family:Verdana,sans-serif;background-color:rgb(255,255,255)">Le informazioni contenute in questo messaggio di posta elettronica sono strettamente riservate e indirizzate esclusivamente al destinatario. Si prega di non leggere, fare copia, inoltrare a terzi o conservare tale messaggio se non si è il legittimo destinatario dello stesso. Qualora tale messaggio sia stato ricevuto per errore, si prega di restituirlo al mittente e di cancellarlo permanentemente dal proprio computer.</span><br style="color:rgb(34,34,34);font-family:Verdana,sans-serif;background-color:rgb(255,255,255)"><span style="color:rgb(34,34,34);font-family:Verdana,sans-serif;background-color:rgb(255,255,255)">The information contained in this e mail message is strictly confidential and intended for the use of the addressee only.  If you are not the intended recipient, please do not read, copy, forward or store it on your computer. If you have received the message in error, please forward it back to the sender and delete it permanently from your computer system.</span></font><div><hr></div>
<br>
<img src="https://drive.google.com/uc?id=1jSNW-wN76rZklfkg4rwweBp5lrX6mO9g">