<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Interpolating data from excel in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/340967#M174792</link>
    <description>Hello TiTou,&lt;BR /&gt;
Thanks for the reply.&lt;BR /&gt;
SOP is related to pressure P through a cosine function:&lt;BR /&gt;
&lt;BR /&gt;
SOP = cos(2*pi*L/Lambda(B + PKp)) &lt;BR /&gt;
&lt;BR /&gt;
Everything is a constant except P, the pressure. However since cos is a
many to one function, a number of values of pressure, P, correspond to
the same value of SOP. I am looking for a very specific range of
pressure (from 39.2 MPa to 39.3MPa and fortunately for me, there is an
almost&amp;nbsp; linear relationship between SOP and P for this range). And
since I am looking for a specific range, I have stored it seperately in
an excel file. Carrying out an acos of the SOP and finding out P gives
me values of P which are quite obviously not in the desired range
because of the many to one cos function. That is why the seperate excel
file for storing the requisite P values for the corresponding SOP.&lt;BR /&gt;
&lt;BR /&gt;
Basically what I am looking for is that as the VI is run (right now I
am simulating the pressure), a waveform chart should display the
pressure corresponding to the SOP being generated. Any idea how to do
this?&lt;BR /&gt;
&lt;BR /&gt;
Dhiraj&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 21 Mar 2006 08:54:53 GMT</pubDate>
    <dc:creator>Dhiraj</dc:creator>
    <dc:date>2006-03-21T08:54:53Z</dc:date>
    <item>
      <title>Interpolating data from excel</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/340941#M174784</link>
      <description>Hi,&lt;BR /&gt;
I have a VI for pressure measurement. On a waveform chart I have SOP
being generated on the y axis and time on the x axis. Now the SOP
values that are generated have corresponding pressure values which are
stored in an excel file.&lt;BR /&gt;
How do I compare the SOP values that are being generated in the VI to
the corresponding pressure values in excel? Moreover if the SOP values
that are generated in the VI are not exactly what are stored in the
excel file, is there some way in which the corresponding pressure value
can be interpolated?&lt;BR /&gt;
For eg. in excel if I have SOP=0.5 corresponding to P = 30 MPa and
another value of SOP=0.6 corresponding to P = 35 MPa, then if in the VI
if I get a value of SOP = 0.57, can I get some kind of an interpolation
to get the corresponding pressure, say 32MPa?&lt;BR /&gt;
&lt;BR /&gt;
Would be grateful if someone could help.&lt;BR /&gt;
Another thing, all this has to be in real time.&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Mar 2006 07:30:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/340941#M174784</guid>
      <dc:creator>Dhiraj</dc:creator>
      <dc:date>2006-03-21T07:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating data from excel</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/340946#M174785</link>
      <description>Hello Dhiraj,&lt;BR /&gt;&lt;BR /&gt;I see 2 possibilities :&lt;BR /&gt;&amp;nbsp;- 1, if the corresponding table (SOP - pressure) is more or less linear (or quadratique or polynomial) you can read the excel spreadsheet, find the best polynomial fitting then use the coefficients to find the correspondance at every new value.&lt;BR /&gt;&lt;BR /&gt;- 2, load your excel table as a 2D array and then use the interpolate array.&lt;BR /&gt;&lt;BR /&gt;I assume you can find good sources of inspiration in "Help" &amp;gt;&amp;gt; "Find example..." if not, feel free to ask for more help, I should be able to find VIs taht do more or less the same in my old ViBox.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Mar 2006 07:54:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/340946#M174785</guid>
      <dc:creator>TiTou</dc:creator>
      <dc:date>2006-03-21T07:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating data from excel</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/340967#M174792</link>
      <description>Hello TiTou,&lt;BR /&gt;
Thanks for the reply.&lt;BR /&gt;
SOP is related to pressure P through a cosine function:&lt;BR /&gt;
&lt;BR /&gt;
SOP = cos(2*pi*L/Lambda(B + PKp)) &lt;BR /&gt;
&lt;BR /&gt;
Everything is a constant except P, the pressure. However since cos is a
many to one function, a number of values of pressure, P, correspond to
the same value of SOP. I am looking for a very specific range of
pressure (from 39.2 MPa to 39.3MPa and fortunately for me, there is an
almost&amp;nbsp; linear relationship between SOP and P for this range). And
since I am looking for a specific range, I have stored it seperately in
an excel file. Carrying out an acos of the SOP and finding out P gives
me values of P which are quite obviously not in the desired range
because of the many to one cos function. That is why the seperate excel
file for storing the requisite P values for the corresponding SOP.&lt;BR /&gt;
&lt;BR /&gt;
Basically what I am looking for is that as the VI is run (right now I
am simulating the pressure), a waveform chart should display the
pressure corresponding to the SOP being generated. Any idea how to do
this?&lt;BR /&gt;
&lt;BR /&gt;
Dhiraj&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Mar 2006 08:54:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/340967#M174792</guid>
      <dc:creator>Dhiraj</dc:creator>
      <dc:date>2006-03-21T08:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating data from excel</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/340997#M174809</link>
      <description>&lt;SPAN class="noindex"&gt;
Dhiraj,&lt;BR /&gt;&lt;BR /&gt;I am not sure you need a a LUT (Look Up Table), maybe the attached VI can do the job, no ?&lt;BR /&gt;&lt;BR /&gt;Anyway if you want (or need) to use a LUT, I suggest you do a search on the forum with "LUT" or "look up table" as a keyword, I saw threads on that subject earlier.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Mar 2006 09:44:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/340997#M174809</guid>
      <dc:creator>TiTou</dc:creator>
      <dc:date>2006-03-21T09:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating data from excel</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/341014#M174818</link>
      <description>TiTou,&lt;BR /&gt;
I think you forgot to attach the VI!!&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Mar 2006 10:15:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/341014#M174818</guid>
      <dc:creator>Dhiraj</dc:creator>
      <dc:date>2006-03-21T10:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Interpolating data from excel</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/341021#M174819</link>
      <description>woops... indeed... someday I'll forget my head&amp;nbsp;&lt;SPAN&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt; !&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Mar 2006 10:28:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Interpolating-data-from-excel/m-p/341021#M174819</guid>
      <dc:creator>TiTou</dc:creator>
      <dc:date>2006-03-21T10:28:51Z</dc:date>
    </item>
  </channel>
</rss>

