<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Fernando<div><br></div><div>I cannot say what is wrong with your example. I have just tried here. I have put one experiment in columns 3 and 4, and the x-coordinates of the other experiment in column 5. Then I ran</div><div><br></div><div><div>program test;</div><div>begin</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>SetDefaultCols(3,4,0,0) ;</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>Transform (operation functionOp, function 'Spline', xColumn 5, yColumn 6);</div><div>end;</div></div><div><br></div><div>The results were as expected. Are you sure your code works properly. If yes, we need more information.</div><div><br></div><div>Best regards</div><div><br></div><div>Kurt Sutter</div><div>QuantumSoft</div><div><br></div><div><br><div><div>On 14 Jul 2011, at 7:10, Fernando Bartolome wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Dear Pro Fit team and users,</div><div><br></div><div>I'm trying to obtain the difference between two experimental curves. This is easy when both curves have been taken at the same abscissa, but if there is a shift between abscissae you have to correct this somehow. If the shits are small and the curves are sufficiently smooth, I've in the past used this code to do what is shown in the picture: I define the x and y columns (<span class="Apple-style-span" style="font-family: Monaco; font-size: 12px; ">2*ik-1</span> and <span class="Apple-style-span" style="color: rgb(0, 42, 214); font-family: Monaco; font-size: 12px; ">2*ik </span>in the example below) to fit with Spline, then I tell Transform to write the value of the Spline function with other column for the x  (<span class="Apple-style-span" style="color: rgb(0, 42, 214); font-family: Monaco; font-size: 12px; "> </span><span class="Apple-style-span" style="color: rgb(0, 42, 214); font-family: Monaco; font-size: 12px; ">(2*num_wins+1)</span> in the example) at the column <span class="Apple-style-span" style="color: rgb(0, 42, 214); font-family: Monaco; font-size: 12px; ">(2*num_wins+1)+(ik)</span></div><div><div> </div><div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium; "><font class="Apple-style-span" color="#002AD6" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><span style="color: rgb(0, 42, 214); ">for</span> ik:=1 <span style="color: rgb(0, 42, 214); ">to</span> num_wins <span style="color: rgb(0, 42, 214); ">do</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 42, 214); "><span style="color: rgb(0, 0, 0); "><span class="Apple-tab-span" style="white-space: pre; ">       </span></span>begin</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; min-height: 16px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">     </span><span style="color: rgb(0, 166, 66); ">SetDefaultCols</span>(2*ik-1,2*ik,0,0); </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">    </span><span style="color: rgb(0, 166, 66); ">Transform</span> (operation <span style="color: rgb(216, 122, 0); ">functionOp</span>, <span style="color: rgb(0, 42, 214); ">function</span> <span style="color: rgb(121, 121, 121); ">'Spline'</span>, <span style="color: rgb(0, 166, 66); ">xColumn</span> (2*num_wins+1), <span style="color: rgb(0, 166, 66); ">yColumn</span> (2*num_wins+1)+(ik));</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><span class="Apple-tab-span" style="white-space: pre; "> </span>tit := <span style="color: rgb(0, 166, 66); ">GetColumnProperty</span> (2*ik,name);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><span class="Apple-tab-span" style="white-space: pre; ">   </span><span style="color: rgb(0, 166, 66); ">SetColumnProperties</span>(col (2*num_wins+1)+(ik),  name tit +<span style="color: rgb(121, 121, 121); ">'_s'</span>);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; min-height: 16px; "><span class="Apple-tab-span" style="white-space: pre; "> </span><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 42, 214); "><span style="color: rgb(0, 0, 0); "><span class="Apple-tab-span" style="white-space: pre; ">     </span></span>end<span style="color: rgb(0, 0, 0); ">;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; min-height: 16px; "><span class="Apple-tab-span" style="white-space: pre; ">  </span><br class="webkit-block-placeholder"></div></span></font></span></font></div></div></div></div><div>However, this does not work. Transform writes down the same values all the time, as if <font class="Apple-style-span" color="#002AD6"> </font><span class="Apple-style-span" style="color: rgb(0, 42, 214); font-family: Monaco; font-size: 12px; "><span style="color: rgb(0, 166, 66); ">SetDefaultCols</span></span><span class="Apple-style-span" style="color: rgb(0, 42, 214); font-family: Monaco; font-size: 12px; ">(2*ik-1,2*ik,0,0) </span><span class="Apple-style-span" style="color: rgb(0, 42, 214); font-family: Monaco; font-size: 12px; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">wasn't there. It keeps the same values you gave the first run, and then they do not change anymore. Moreover, if you look at the data window, the red x and y, with blue "in" and "out" do move as expected... but the calculation of Spline does not. </span></span></div><div><span class="Apple-style-span" style="color: rgb(0, 42, 214); font-family: Monaco; font-size: 12px; "><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; "></span></span>This program <b>did</b> <b>work </b>in the past (I'd say about 2 years ago, with 6.0 ?). Maybe there's some change in Pro Fit or in <span class="Apple-style-span" style="color: rgb(0, 42, 214); font-family: Monaco; font-size: 12px; "><span style="color: rgb(0, 166, 66); ">SetDefaultCols</span></span> which I'm not aware of can be at the origin of this behaviour? </div><div><br></div><div>Of course if I do this with one column if works... or if I do it by hand! It is the automation for more than one column of data (about 200!) what is breaking my head.<font class="Apple-style-span" color="#002AD6" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;"> </span></font></div><div><br></div><div>I'm using Pro Fit 6.2.3 and 6.2.4 (my problem takes place with both)</div><div>in a </div><div>Mac OS X 10.6.8, with a 2.8 GHz Intel Core 2 Duo and 4 Gb DDR3 RAM</div><div><br></div><div>Thanks for your support,</div><div><br></div><div>Fernando</div><div><font class="Apple-style-span" color="#002AD6" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br></span></font></div><div><font class="Apple-style-span" color="#002AD6" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;"><br></span></font></span></font></div><div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><font class="Apple-style-span" face="Helvetica"><span class="Apple-style-span" style="font-size: medium;"><font class="Apple-style-span" color="#002AD6" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 12px;"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; min-height: 16px; "><span class="Apple-tab-span" style="white-space:pre">      </span><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; min-height: 16px; "><span class="Apple-tab-span" style="white-space:pre">  </span><br class="webkit-block-placeholder"></div></span></font></span></font></div></div></div><div><span><PastedGraphic-1.png></span></div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><span style="color: #002ad6">for</span> ik:=1 <span style="color: #002ad6">to</span> num_wins <span style="color: #002ad6">do</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 42, 214); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">       </span></span>begin</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; min-height: 16px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">        </span><span style="color: #00a642">SetDefaultCols</span>(2.*ik-1,2.,*ik,0,0); </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">      </span><span style="color: #00a642">Transform</span> (operation <span style="color: #d87a00">functionOp</span>, <span style="color: #002ad6">function</span> <span style="color: #797979">'Spline'</span>, <span style="color: #00a642">xColumn</span> (2*num_wins+1), <span style="color: #00a642">yColumn</span> (2*num_wins+1)+(ik));</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">    </span>tit := <span style="color: #00a642">GetColumnProperty</span> (2*ik,name);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; "><span class="Apple-tab-span" style="white-space:pre">  </span><span style="color: #00a642">SetColumnProperties</span>(col (2*num_wins+1)+(ik),  name tit +<span style="color: #797979">'_s'</span>);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; min-height: 16px; "><span class="Apple-tab-span" style="white-space:pre">        </span><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 42, 214); "><span style="color: #000000"><span class="Apple-tab-span" style="white-space:pre">       </span></span>end<span style="color: #000000">;</span></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; color: rgb(0, 42, 214); "><font class="Apple-style-span"><br></font></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div><div>_________________________________________</div><div><br></div><div>Fernando Bartolomé</div><div>Instituto de Ciencia de Materiales de Aragón</div><div>CSIC - UZ</div><div><br></div><div>tel: +34 976 762459</div><div>fax: +34 976 761229</div><div>email: <a href="mailto:bartolom@unizar.es">bartolom@unizar.es</a></div><div><a href="http://fmc.unizar.es/people/bartolom/">http://fmc.unizar.es/people/bartolom/</a></div><div><br></div><br></div></div><br></span><br class="Apple-interchange-newline">
</div>
<br></div>_______________________________________________<br>proFit-list mailing list<br><a href="mailto:proFit-list@quantum-soft.com">proFit-list@quantum-soft.com</a><br>http://quantum-soft.com/mailman/listinfo/profit-list_quantum-soft.com<br></blockquote></div><br></div></body></html>