Thursday, November 12, 2015

Day 17 - labview D2,Homework 16


We started the day with going over the data types in LabView. We then talked about making graphs and conversions in LabView. Followed to SubVi's application.
 Picture of LabView graphs.

PV = nRT activity



Conclusion:
Learn different types of data for each kind of LabView dongle. Booliean, dbl, 32 bit. Each color wire in LabView means a different type of data flow.


Homework: Picture of Homework checked.
HMWK 16, Temperature conversion and graphing

Thursday, November 5, 2015

Day 16 - lab view D1,Homework 15



We started our first LabView day with an intro of all the things LabView could do, basically watched some videos and how and what LabView is. Some things that we did in class were simple math and matlab operations in LabView to see the difference between LabView and Matlab.
Picutre of math done in labview.
Basic Math in LabView


Conclusion:
Learn that LabView is a graphical program to connect, control, and collect data and devices. Very powerful and useful to know.

Homework: Doing math stuff in LabView Q4 checked, Picture below.
HMWK 15 Quadratic in LV







Wednesday, November 4, 2015

Day - 15 Interlation and polyfit, polyval

We started the day with interpolation and went it means. Matlab does this easily with the interp1 command. However there are many types of interpolation like cubic, linear and spline to name a few. We then move onto a  practical example using the thermodynamic properties, here is a picture:
Thermodynamic properties example.
 We then discussed curve fitting and talked about polyfit and polyval. We also talked abut smoothing out the graph to make it look nicer.

Conclusion:
Interpolation is important part of data graphing  since it fills the hole in data. Interpolating beyond data archived is tricky. Polyfit and polyval are good ways of finding the curve fits of data to better represent what is going on.

%% HMWK 15 - 1
y = x.^3+2*x.^2-x+3 %y function
x = [-1:0.2:1] %x length of 11
area = trapz(x,y) %trapz function
area1 = quad('x.^3+2*x.^2-x+3',-1,1) %area of quad
area2 = quadl('x.^3+2*x.^2-x+3',-1,1) %area of quad1
t = [0:1]
%HMWK 15 - 2
syms y(t)   %syms for y function
y(t) = dsolve(diff(y,t) == t^2+y, y(0)==0) %y function solver at t = 0
aa = subs(y(t),'t',[0:1]) %%subs t 0 to 1 for y solved eq
double(aa(2)) %double answers to see
%HMWK 15 - 3
syms u(x)
u(x) = dsolve(diff(u,x,3) == u(x))
aa = subs(u(x),'x',[0:1])
Du = diff(u, x);
D2u = diff(u, x, 2);
u(x) = solve(diff(u, x, 3) == -u/2*u'',u(0) == 0)