<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Linear interpolation</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/210e27743e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/210e27743e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/210e27743e/</id><updated>2021-03-04T13:43:27.377000Z</updated><subtitle>Recent posts to Linear interpolation</subtitle><entry><title>Linear interpolation</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/210e27743e/?limit=25#2569/38f7" rel="alternate"/><published>2021-03-04T13:43:27.377000Z</published><updated>2021-03-04T13:43:27.377000Z</updated><author><name>laruso</name><uri>https://forge.codesys.com/u/laruso/</uri></author><id>https://forge.codesys.comd3511857fcb7560f6f27e16e3c061a0eb94107d6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm pretty sure that the formula should be:&lt;br/&gt;
(ymax-ymin)/(xmax-xmin)*(value-xmin)+ymin&lt;/p&gt;
&lt;p&gt;For me the formula worked perfectly and is used to interpolate values for special needs, w/o using the function from the OSCAT library called LINEAR_INT.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Linear interpolation</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/210e27743e/?limit=25#0fd4" rel="alternate"/><published>2021-03-04T13:41:49.481000Z</published><updated>2021-03-04T13:41:49.481000Z</updated><author><name>laruso</name><uri>https://forge.codesys.com/u/laruso/</uri></author><id>https://forge.codesys.comab4b1a88a48d8ed8a8b74479025b1b35e1b3a717</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm pretty sure that the formula should be:&lt;br/&gt;
(ymax-ymin)/(xmax-xmin)*(value-xmin)+ymin&lt;/p&gt;
&lt;p&gt;For me the formula worked perfectly and is used to interpolate values for special needs, w/o using the function from the OSCAT library called LINEAR_INT.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Linear interpolation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/210e27743e/?limit=25#2569" rel="alternate"/><published>2020-02-27T21:36:47.401000Z</published><updated>2020-02-27T21:36:47.401000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.com35fe2ef0de9ea3679ba5fcd3ff1ef446b9f98ba5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ymax/ymin*((value-xmin)/xmax-xmin)+ymin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Linear interpolation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/210e27743e/?limit=25#c9ac" rel="alternate"/><published>2020-02-27T21:36:43.293000Z</published><updated>2020-02-27T21:36:43.293000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comc92f0d51229ee1e787fa0d0bff33f9bbc3463e56</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;if you open the oscat.lib in your codesys as a library, you can see the source code complete it is open source.&lt;/p&gt;
&lt;p&gt;easier way is download the txt version. and the pdf along.&lt;/p&gt;
&lt;p&gt;If you tell us what you want, we will look into your problem.&lt;/p&gt;
&lt;p&gt;btw if it is complicated you can always use fuzzy.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Linear interpolation</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/210e27743e/?limit=25#10e6" rel="alternate"/><published>2020-02-27T21:36:41.800000Z</published><updated>2020-02-27T21:36:41.800000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comfda0af58b1fdc708e777d441253ef32505bc8d83</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; H87&lt;/p&gt;
&lt;p&gt;Hi&lt;br/&gt;
Annyone here know a good algorithm for linear interpolation. I know that oscat lib can provide a block that can do that. But i need the algorithm, so i can make a block my self. I need that bacause i'm making a PID regulator with a gain-scheduling option.&lt;/p&gt;
&lt;p&gt;I'm programming the PID in Codesys structured text.&lt;/p&gt;
&lt;p&gt;Best Regards &lt;br/&gt;
Henrik&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>