Hi, thanks in advance for your help. But I'm wondering if you know How can I vary the sampling frequency? because I need to sample a signal to 250 Hz from Arduino to Matlab
Thank you sir for this knowledge. but sir how about when we have two sensors for example, how we want to read in the matlab? ill really appreciate it if you share this problem. Thank you sir
There are multiple ways of handling such problem. The easiest one would be to pass the variables with comma separated or tab separated value and then parse that data in Matlab. Create two of similar array and repeat the process for displaying both variables.
@@ar2050 yes it helps me a lot but I still have errors, actually the plotting is not continuous, it stopped at 16. My aim is to plot in real time my serial data coming from MSP430 controller. could you please help me on this!
@@boudebzabadra9749 This code works continuously infinite time. Please check your code for other possible errors. Specially make sure you remove the first index and insert data at last index.
hi, how can i read multiple values from serial port? my code prints the values for current, voltage, power and rpm on the serial port and i want to read them all from there into matlab
You can send the readings with spaces and read a whole line in matlab. then simply the str2num() function will convert the values to the numbers. There are also other ways of doing this, which is to send bytes and read the bytes in MATLAB.
hi.I get this error..Error using serial/fopen (line 72) Open failed: Cannot connect to the COM8 port. Possible reasons are another application is connected to the port or the port does not exist.
It says some other program is using that com port. Make sure no other program is using that serial port. Or if you had previously used that com port with MATLAB you can try running this command >>fclose(instrfind);
Hi, thanks in advance for your help. But I'm wondering if you know How can I vary the sampling frequency? because I need to sample a signal to 250 Hz from Arduino to Matlab
Thank you sir for this knowledge.
but sir how about when we have two sensors for example, how we want to read in the matlab?
ill really appreciate it if you share this problem. Thank you sir
There are multiple ways of handling such problem. The easiest one would be to pass the variables with comma separated or tab separated value and then parse that data in Matlab. Create two of similar array and repeat the process for displaying both variables.
Does anybody know how to automatically store all of the data printed from the serial monitor into a variable? Thanks
Hi, can you write me a customized software reading serial port data and displaying it, multichannel data with header and checksum?
Thank you Sir for this lecture :)
Its my pleasure. Thank you for liking. Hope it helps :)
@@ar2050 yes it helps me a lot but I still have errors, actually the plotting is not continuous, it stopped at 16. My aim is to plot in real time my serial data coming from MSP430 controller. could you please help me on this!
@@boudebzabadra9749 This code works continuously infinite time. Please check your code for other possible errors. Specially make sure you remove the first index and insert data at last index.
Thank you Sir for this lecture :)
Do u know how to plot the live data from the mpu9250?
Hi, I want to ask do u know about it already?
@@wannornaziramustapakamal893 of course who am i
@@siang5177 can u share with me the procedure? I want to know for my project
can you plot multiple data?
hi, how can i read multiple values from serial port? my code prints the values for current, voltage, power and rpm on the serial port and i want to read them all from there into matlab
You can send the readings with spaces and read a whole line in matlab. then simply the str2num() function will convert the values to the numbers. There are also other ways of doing this, which is to send bytes and read the bytes in MATLAB.
@@ar2050 Thank you so much.
hi.I get this error..Error using serial/fopen (line 72)
Open failed: Cannot connect to the COM8 port. Possible reasons are another
application is connected to the port or the port does not exist.
It says some other program is using that com port. Make sure no other program is using that serial port. Or if you had previously used that com port with MATLAB you can try running this command >>fclose(instrfind);
can you help me i have sime your problem
@@hayamaitmalk3459 you must use version of matlab 2016. I solved my problem in this way
@ matlab 2016a or b i use matlab2014a but is not work
@@hayamaitmalk3459 I had used matlab 2016a I think you should use 2016a
Thank you very much!!
Thank you Brooooooooo!
Happy to help