this is correct ADC recoard code with Real time ?
3 views (last 30 days)
Thanks you for click.
now, i want RC servo result via ADC with real time.
i am not sure, this code record plot of ADC with real time. is it fine for real time. can i get advise ?
clc; clear all; close all; %Reset all
s = servo(a, 'D7');
out(i)=readVoltage(a,ai_pin); %Already voltages calculated
if toc < 2
in(i) = 0;
in(i) = 0.5;
Han Du on 8 May 2018
MATLAB is not designed for real-time capturing of data. The toolbox is built on top of MATLAB and operates in a non real-time Microsoft Windows environment. Because of this, it is not possible to achieve deterministic real-time operation. What do you mean by saying real time?