{"id":437,"date":"2014-06-23T14:59:15","date_gmt":"2014-06-23T11:59:15","guid":{"rendered":"http:\/\/www.sjut.org\/math\/?p=437"},"modified":"2014-06-24T07:18:55","modified_gmt":"2014-06-24T04:18:55","slug":"mat113-2014-06-23","status":"publish","type":"post","link":"http:\/\/www.sjut.org\/math\/index.php\/mat113-2014-06-23\/","title":{"rendered":"MAT113 Workshop 23th &#038; 24th June"},"content":{"rendered":"<p>In this workshop, we will start with a pre-defined set of data and a pre-defined script in order to repeat the Thermistor Calibration done before with the spreadsheet.<\/p>\n<p>In another tab or window of your browser, open up <a title=\"GnuPlot on the web\" href=\"http:\/\/www.plotshare.com\" target=\"_blank\">www.plotshare.com<\/a>. In the <em>Options<\/em> section enter the appropriate text to prove to plotshare that you are human.<\/p>\n<p>Copy \/ paste the script below into the Gnuplot-Script box on plotshare, then <em>Add external data<\/em> and copy \/ paste the data at the bottom of the page into the text box <em>ExtData1<\/em>.<\/p>\n<p>Click <em>Execute<\/em> to fit the calibration curve and plot the end result. That&#8217;s all it takes to do curve fitting with Gnuplot. Modify the label and ranges in the script and use your own data to help in working with lab practicals.<\/p>\n<p><strong>Gnuplot-Script:<\/strong><\/p>\n<pre><code>\r\n# =========== Proposed function ===============\r\ng(x) = b0 + b1 * log(x) + b2 * (log(x)**2) + b3 * (log(x)**3 )\r\n# ========================================\r\n#\r\n# ==== Fitting transformed data ==========\r\nset autoscale\r\nfit g(x) 'ExtData1' using 3:(1\/($1+273.15)) via b0, b1, b2, b3\r\n# ========================================\r\n#\r\n# ======== Plotting the results ==========\r\nT(x) = 1\/g(x) - 273.15\r\nset xrange [80:150]\r\nset yrange [-50:130]\r\nset xlabel 'R, Ohms'\r\nset ylabel 'T, degrees C'\r\nset title 'RTD calibration curve'\r\nset key inside bottom right box 3\r\nset linetype 1 lw 2 lc rgb \"black\"\r\nset linetype 2 lw 2 lc rgb \"red\"\r\nset pointsize 2\r\nplot 'ExtData1' using 3:1 title 'Calibration Data', T(x) title 'Calibration Curve'\r\n# ========================================\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><strong>ExtData1:<\/strong><\/p>\n<pre><code>\r\n# T,C T,F R,Ohms\r\n-50 -58 80.306\r\n-40 -40 84.271\r\n-30 -22 88.222\r\n-20 -4 92.160\r\n-10 14 96.086\r\n0 32 100.000\r\n10 50 103.903\r\n20 68 107.794\r\n25 77 109.735\r\n30 86 111.673\r\n40 104 115.541\r\n50 122 119.397\r\n60 140 123.242\r\n70 158 127.075\r\n80 176 130.897\r\n90 194 134.707\r\n100 212 138.506\r\n110 230 142.293\r\n120 248 146.068\r\n130 266 149.832\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In this workshop, we will start with a pre-defined set of data and a pre-defined script in order to repeat the Thermistor Calibration done before with the spreadsheet. In another [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.sjut.org\/math\/index.php\/wp-json\/wp\/v2\/posts\/437"}],"collection":[{"href":"http:\/\/www.sjut.org\/math\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sjut.org\/math\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sjut.org\/math\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sjut.org\/math\/index.php\/wp-json\/wp\/v2\/comments?post=437"}],"version-history":[{"count":7,"href":"http:\/\/www.sjut.org\/math\/index.php\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":444,"href":"http:\/\/www.sjut.org\/math\/index.php\/wp-json\/wp\/v2\/posts\/437\/revisions\/444"}],"wp:attachment":[{"href":"http:\/\/www.sjut.org\/math\/index.php\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sjut.org\/math\/index.php\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sjut.org\/math\/index.php\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}