<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Fieldtrip list, 
<div><br>
</div>
<div>I'm trying to add an altered channel and save it as a new fiff file using the MNE commands from the external/MNE dir in Fieldtrip, but seem to just keep getting the data from the old fiff file instead. </div>
<div><br>
</div>
<div>The code I'm currently using is: </div>
<div><br>
</div>
<div>To read: </div>
<div>fh = fiff_setup_read_raw('input.fif');</div>
<div>f = fiff_read_raw_segment(fh); </div>
<div><br>
</div>
<div>After adding in the altered channel data to f, I then use:</div>
<div><br>
</div>
<div>fiff_write_raw_segment(output.fif, fh);</div>
<div><br>
</div>
<div>What I thought would happen is output.fif would use the information in f and fh to write output.fif, but what seems to be happening is the data in f is being ignored. </div>
<div><br>
</div>
<div>Does anyone have any ideas on how to insert the altered channel data then write it back out as a fiff file? </div>
<div><br>
</div>
<div>Thanks, </div>
<div><br>
</div>
<div>Peter.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div><font size="2">__________________________</font></div>
<div><font size="2">Peter Goodin,  </font>
<div>
<div>
<div>BSc (Hons), Ph.D Candidate.</div>
<div><br>
</div>
<div><font size="2">Brain and Psychological Sciences Research Centre (BPsych)</font></div>
<div>Swinburne University, </div>
<div>Hawthorn, Vic, 3122</div>
</div>
<div><br>
</div>
<div><font size="2">Monash Alfred Psychiatry Research Centre (MAPrc)</font></div>
<div><font size="2">Level 1, Old Baker Building</font></div>
<div><font size="2">Commercial Road</font></div>
<div><font size="2">Melbourne, Vic, 3004</font><span style="font-size:small"> </span></div>
</div>
<div style="font-size:13px; font-family:Tahoma"><br>
</div>
<div style="font-size:13px; font-family:Tahoma"><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>