Dear sir, of course you can, with every Arduino model.
All you have to do is to print your process parameters on the serial port, using ASCII or binary coding, then read the serial stream in Matlab and plot it with drawnow command for real time.. Here's a simple code to plot the temperature from LM35 sensor attached to Arduino UNO pin A0. I hope this help
Arduino side:
void setup(){
Serial.begin(9600);
}
void loop(){
float T = analogRead(A0)*5.0/1024.0/0.01; // LSB * Volt / LSB / Sensitivity
char Temp[10]; // Buffer declaration
dtostrf(T,3,2,Temp); // Conversion of float to char array
Serial.println(Temp); // Printing temperature value
Dear sir, of course you can, with every Arduino model.
All you have to do is to print your process parameters on the serial port, using ASCII or binary coding, then read the serial stream in Matlab and plot it with drawnow command for real time.. Here's a simple code to plot the temperature from LM35 sensor attached to Arduino UNO pin A0. I hope this help
Arduino side:
void setup(){
Serial.begin(9600);
}
void loop(){
float T = analogRead(A0)*5.0/1024.0/0.01; // LSB * Volt / LSB / Sensitivity
char Temp[10]; // Buffer declaration
dtostrf(T,3,2,Temp); // Conversion of float to char array
Serial.println(Temp); // Printing temperature value
for real time application LabVIEW is good, and arduino uno and mega is compatible with LINX library which you have to add from vi package manager and then implement your labview vi. it give good performance with arduino
I think it is important the sampling frequency you desire. I made a program some days laters for seeing a real time pottenciometer signal in matlab with an arduino mega, it works, but i remember that I had problems with the axis time, bacause it was not a real time. Anyway I think of course is possible but depends of the sampling frequency, matlab reduce that sampling frequency.