<?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: DAQ Assistant Curve fitting . in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2702993#M802483</link>
    <description>&lt;P&gt;I do not have the DAQ Assistant, so I cannot see what it is doing. The Saved Data graph has only two points. If you are only collecting a small number of points on each iteration of the while loop, you will need to accumulate the data in some way, such as a shift register. The file you posted yesterday had 1000 points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to look at the Producer/Consumer Design Pattern. It would allow you to keep the program running and do repeated analyses and saves in one run. This will not solve your immediate problem but may be useful in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2014 16:47:25 GMT</pubDate>
    <dc:creator>johnsold</dc:creator>
    <dc:date>2014-01-16T16:47:25Z</dc:date>
    <item>
      <title>DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2690753#M799821</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying the monitor data from my DAQ device, the signal is oscillating with a Damped-Sinusoidal rule: x(t) = A.Exp(-µt).Sinus(wt+phi) •&amp;nbsp;&lt;BR /&gt;So, I want to fit the Real-Data using this equation but I dont really know how.&amp;nbsp;&lt;BR /&gt;The VI attached read real waveforms from my DAQ-Assistant, and when I stop monitoring by buttom STOP, the waveform must be fitted using the equation of x(t). &amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;So how can i fit this data using the equation x(t) ?&lt;BR /&gt;&lt;/STRONG&gt;The goal of fitting is to return the Amplitude &lt;EM&gt;A&lt;/EM&gt; !&lt;BR /&gt;And another question, I would like to save the waveform in .CSV file but when I saved, I only see in the CSV file the Voltage values ( Y ) and #### in the time values ( X ).&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;So how can I save both of X times and Y voltage in .csv file ?&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;The attached VI is enough simple to help me.&amp;nbsp;&lt;BR /&gt;Thanks for helping.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 04:26:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2690753#M799821</guid>
      <dc:creator>Archer99</dc:creator>
      <dc:date>2014-01-09T04:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2692687#M800244</link>
      <description>&lt;P&gt;Please run the VI until you have some typical data shown on the LVDT graph, select Edit &amp;gt;&amp;gt; Make Current Values Default, then save. Post that VI. This will put one set of data into the graph where it will be available for us to see what is happening. Posting a measurement file would also work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the way you have your program set up, it will be the next acquistion after you press STOP which gets analyzed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually #### simply indicates that the column width in the spreadsheet where you are viewing the data is too narrow to display the entire value. It may also represent a format difference but I would expect that to throw an error when the spreadsheet program tries to open the file. &amp;nbsp;What does the file look like when you open it with a text editor?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2014 22:07:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2692687#M800244</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2014-01-09T22:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2696487#M801177</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is the new VI attached with a sample experimental curve, and cleaned too.&amp;nbsp;&lt;BR /&gt;The second attachement is a sample of .excel file from the experimental curve (Problem of saving .excel file solved, thank you).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Before labVIEW, I was fitting curves using MATLAB and this takes me times, now, I would like to fit the curve and get the a0 ( Amplitude which I look for) just when I stop the program.&lt;BR /&gt;&lt;BR /&gt;When I stop the program, it is supposed to fit the curve but I dont know how that Fit function works.&amp;nbsp;&lt;BR /&gt;Would you like to help, Thank you again. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2014 04:45:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2696487#M801177</guid>
      <dc:creator>Archer99</dc:creator>
      <dc:date>2014-01-13T04:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2699407#M801717</link>
      <description>&lt;P&gt;Your new VI does not seem to have any data in it. Unfortunately charts do not keep data as default. Try replacing the chart with a graph or post one of the data files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2014 18:34:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2699407#M801717</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2014-01-14T18:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2700445#M801918</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried to save data as you told me but I dont know why it is not saving, I just attached the data which I saved into an excel file, Anyway, the attached VI is a very simplified one, It read data from an lvdt and after pushing stop button, I want to fit the data with the equation mentionned before and output me the Amplitude a0 and the fitted data.&amp;nbsp;&lt;BR /&gt;I dont know how to use the Fit Curve VI either plotting the data graph with its fitted function.&amp;nbsp;&lt;BR /&gt;the VI is simple, would you like to help please ?&amp;nbsp;&lt;BR /&gt;Thanks .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 12:03:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2700445#M801918</guid>
      <dc:creator>Archer99</dc:creator>
      <dc:date>2014-01-15T12:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2700767#M802016</link>
      <description>&lt;P&gt;OK. I will take a look at it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing which is immediately obvious is that the model does not match the data! You need at least one additional parameter. When I plot your data I see a significant offset from the X-axis and your model equation does not have any such offset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/207ad530476624a7c4c2fa08dc9d94ffbf82f507/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31333036323169324630393435423234374142424637312f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Damped sine.png" title="Damped sine.png" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the mean value appears to be approaching 3.5 to 4.0, not zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing I learned from altenbach, who is probably the most expert participant on the Forums on curve fitting, is to always plot the data so you can see what is going on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 14:11:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2700767#M802016</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2014-01-15T14:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2700821#M802024</link>
      <description>&lt;P&gt;It fits quite well with an appropriate model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I prefer to use the Nonlinear Curve Fit.vi rather than the Express VI. It requires a bit of extra work but usually gives good results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 14:39:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2700821#M802024</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2014-01-15T14:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2700825#M802026</link>
      <description>&lt;P&gt;Here is a version with the model equation in the Express VI fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2014 14:45:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2700825#M802026</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2014-01-15T14:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2701845#M802238</link>
      <description>&lt;P&gt;Hello;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot for your VI, It works perfectly, and helped me&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, when I run my VI with logging from the LVDT for real measurement ; there is no fitting, there no saved data either when I push the stop buttom. &lt;BR /&gt;I atteched the new sample .&lt;BR /&gt;Could you help please&lt;BR /&gt;Thanks again for your help I appreciate.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 05:41:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2701845#M802238</guid>
      <dc:creator>Archer99</dc:creator>
      <dc:date>2014-01-16T05:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2702993#M802483</link>
      <description>&lt;P&gt;I do not have the DAQ Assistant, so I cannot see what it is doing. The Saved Data graph has only two points. If you are only collecting a small number of points on each iteration of the while loop, you will need to accumulate the data in some way, such as a shift register. The file you posted yesterday had 1000 points.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to look at the Producer/Consumer Design Pattern. It would allow you to keep the program running and do repeated analyses and saves in one run. This will not solve your immediate problem but may be useful in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2014 16:47:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2702993#M802483</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2014-01-16T16:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2703761#M802694</link>
      <description>&lt;P&gt;Thank you for the answer, but how can I at least save the data which I want to fit ? how to accumulate the wanted data as you said with shift register ?&amp;nbsp;&lt;BR /&gt;At least, if i fail for doing that I woul like at least to save the wanted data in Excel using " Export to Excel " in the Graph window, and then I just load them by LabVIEW and do the fitting as you did.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But I tried several time to load the excel file which I uploaded to fit it as you did, but It didn't worked for me.&amp;nbsp;&lt;BR /&gt;Can you tell me how did you readed my Excel file and ploted it in the "raw" window? a simple VI can be a good help for me .&lt;BR /&gt;&lt;BR /&gt;I thank you again for your support, I appreciate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2014 03:00:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2703761#M802694</guid>
      <dc:creator>Archer99</dc:creator>
      <dc:date>2014-01-17T03:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2703911#M802718</link>
      <description>&lt;P&gt;I tried to save the data with shift register but it only save few points &lt;BR /&gt;I attached the program&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2014 06:58:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2703911#M802718</guid>
      <dc:creator>Archer99</dc:creator>
      <dc:date>2014-01-17T06:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2704717#M802957</link>
      <description>&lt;P&gt;You need to append the new data to the data already in the shift register. &amp;nbsp;This is a basic LV concept. &amp;nbsp;If you have not done so, I recommend that you spend a little time on the on-line tutorials for Getting Started with LabVIEW.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The attached VI shows one way to accumulate the data. This is not the most efficient way and can lead to memory allocation problems if the array gets large, but it is conceptually simple. &amp;nbsp;In the True case the data is converted to an array from the Dynamic Data Type (DDT). This step is not essential but the DDT makes it so hard to know what is going on that I avoid it where possible (which is always!). The Build Array primitive is modified (context-click) to Concatenate Inputs. If this is not done, the result is a 2D array. In the False case a Wait is added so that the loop does not try to run millions of times per second while waiting for the user to push the sv button. An event structure is even better but let's not complicate things learning that now. I moved the Waveform Graph outside the case structure so it is updated every iteration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2014 14:33:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2704717#M802957</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2014-01-17T14:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2705675#M803152</link>
      <description>&lt;P&gt;Hello JohnSold&lt;BR /&gt;&lt;BR /&gt;Well I begin to get the idea , i thank for your help I fixed my VI succeded to save the wanted waveform; the VI is attached with the fittin functions &lt;BR /&gt;Only one problem which I cant fixed is that the saved waveform is totaly saved as the inverse of the real one , I attached two picture of the real waveform and the saved one.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;lvd: is the real waveform.&amp;nbsp;&lt;BR /&gt;svd: the savd waveform.&lt;BR /&gt;&lt;BR /&gt;I attahed also my VI &lt;BR /&gt;I ca't understand why it's saved inversly &lt;BR /&gt;Can you help please ? I appreciate your support and help again &lt;BR /&gt;&lt;BR /&gt;THANK YOU&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2014 10:35:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2705675#M803152</guid>
      <dc:creator>Archer99</dc:creator>
      <dc:date>2014-01-18T10:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAQ Assistant Curve fitting .</title>
      <link>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2706713#M803307</link>
      <description>&lt;P&gt;Ah! I messed it up for you. Sorry. By prepending the new data at Build Array, it reverses the array. The image below shows the correct way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/1b4638b1e00550cede7b4337b76b5b511636d6ae/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f31333130303169464444453945454641373042374337382f696d6167652d73697a652f6f726967696e616c3f763d6d70626c2d312670783d2d31" border="0" alt="Correct array order.png" title="Correct array order.png" align="center" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other questions: It appears that you are reading 10 data points on each iteration of the loop but only appending one to the array. Why are you throwing away the other 9 points? It also appears that you need to read the DAQ Assistant and process the data 50 times per second to keep up. As the array grows larger, it will become more difficult to do that. I suggest reading larger chunks less often and looking at managing the array size appropriately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lynn&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2014 17:44:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/DAQ-Assistant-Curve-fitting/m-p/2706713#M803307</guid>
      <dc:creator>johnsold</dc:creator>
      <dc:date>2014-01-18T17:44:04Z</dc:date>
    </item>
  </channel>
</rss>

