Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help trying to put start button, stop button, clear button, and plot axes on app designer. I know we have to create property

image text in transcribed

image text in transcribed

image text in transcribed

I need help trying to put start button, stop button, clear button, and plot axes on app designer. I know we have to create property on appdesigner and list variables. Then we put a callback function for start button, but I am lost.

Using Matlab, develop a Graphical User Interface (GUI) which can allow you to control the circuit Your GUI should contain: a. START button start data collection b. STOP button - stop data collection c. A PLOT space which shows changes of temperature d. Plot axes should show Temperature in degrees Celsius vs Time in seconds e. CLEAR or RESET button to clear the data and plot area a=arduino ('COM4 Leonardo'); tempsensor = 'A3';%Arduino analog input port i=0; v = zeros (75,1);$voltage Ctemp zeros (75,1); Ftemp = zeros (75,1); t = zeros (75,1);$time Temperature (Kelvin, Celsius, Fahrenheit) Measurement for i=1:75 i=i+l; $iteration t(i) i+1; v(i)=readVoltage (a, temp sensor); Conversion from Voltage to temp (k-C-F) Ctemp (i)= (v(i)*100)-273;%Kelvin to Celsius temperature Ftemp (i)= (Ctemp (i)*1.8) +32;Fahrenheit temperature LED portion if (Ftemp (i) > 80) Stemperature is considered hot writeDigitalPin(a, 'D11', true); Red LED turns on pause (1) writeDigitalPin(a, 'Dil', false); Red LED turns off else %room temperature writeDigitalPin(a, 'Dil', true); Red LED turns on else groom temperature writeDigitalPin(a, 'D11', true); %Red LED turns on = == end end %%Plot %Turn off LED writeDigitalPin(a, 'Dil', false); Data Plot Tempc Ctemp (1:1); Excess zeros removal TempF = Ftemp (1:i); t =t(1:i); figure (1) plot(t, TempF) title ('Temperature v. Time') ylabel ('Fahrenheit') xlabel('seconds) figure (2) plot(t, Tempc) title ('Temperature v. Time') ylabel ('Celsius') xlabel ('seconds) Using Matlab, develop a Graphical User Interface (GUI) which can allow you to control the circuit Your GUI should contain: a. START button start data collection b. STOP button - stop data collection c. A PLOT space which shows changes of temperature d. Plot axes should show Temperature in degrees Celsius vs Time in seconds e. CLEAR or RESET button to clear the data and plot area a=arduino ('COM4 Leonardo'); tempsensor = 'A3';%Arduino analog input port i=0; v = zeros (75,1);$voltage Ctemp zeros (75,1); Ftemp = zeros (75,1); t = zeros (75,1);$time Temperature (Kelvin, Celsius, Fahrenheit) Measurement for i=1:75 i=i+l; $iteration t(i) i+1; v(i)=readVoltage (a, temp sensor); Conversion from Voltage to temp (k-C-F) Ctemp (i)= (v(i)*100)-273;%Kelvin to Celsius temperature Ftemp (i)= (Ctemp (i)*1.8) +32;Fahrenheit temperature LED portion if (Ftemp (i) > 80) Stemperature is considered hot writeDigitalPin(a, 'D11', true); Red LED turns on pause (1) writeDigitalPin(a, 'Dil', false); Red LED turns off else %room temperature writeDigitalPin(a, 'Dil', true); Red LED turns on else groom temperature writeDigitalPin(a, 'D11', true); %Red LED turns on = == end end %%Plot %Turn off LED writeDigitalPin(a, 'Dil', false); Data Plot Tempc Ctemp (1:1); Excess zeros removal TempF = Ftemp (1:i); t =t(1:i); figure (1) plot(t, TempF) title ('Temperature v. Time') ylabel ('Fahrenheit') xlabel('seconds) figure (2) plot(t, Tempc) title ('Temperature v. Time') ylabel ('Celsius') xlabel ('seconds)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

Students also viewed these Databases questions