How to Plot Real Time Serial Data from hardware in Matlab?

Поділитися
Вставка
  • Опубліковано 20 жов 2024

КОМЕНТАРІ • 90

  • @prasanthkumar2950
    @prasanthkumar2950 День тому +1

    It is working..... thank you sir.

  • @jockemustafa
    @jockemustafa 3 роки тому +13

    This company will be huge in europe by using that logo! ;)

    • @sachinsharmajcbro
      @sachinsharmajcbro  3 роки тому +4

      hahaha....but the trend of comments on my UA-cam videos it seems like it will be other way around in Europe. By the way, for other viewers, this symbol is Indian symbol swastika, which represents prosperity and well being for all. Have a nice day.

    • @jockemustafa
      @jockemustafa 3 роки тому

      @@sachinsharmajcbro Me and all other guys know, we've all seen the comments but just love the facts that its a swastika

    • @ulisesriver4656
      @ulisesriver4656 3 роки тому

      I guess I'm kinda off topic but do anybody know of a good website to stream newly released series online?

    • @emmittcairo7619
      @emmittcairo7619 3 роки тому

      @Ulises River Lately I have been using Flixzone. Just search on google for it =)

    • @lancelandyn1974
      @lancelandyn1974 3 роки тому

      @Emmitt Cairo yea, I've been using Flixzone for months myself :D

  • @ernestomalgesto4912
    @ernestomalgesto4912 2 роки тому +2

    Great video! I will use it for a biomedical application in a project, thank you very much, greetings from Mexico.

  • @gabrielj.4758
    @gabrielj.4758 Рік тому +1

    I LEARNED A LOT, DR. THANK YOU FOR SHARING YOUR KNOWLEDGE GREETINGS FROM PERU

    • @sachinsharmajcbro
      @sachinsharmajcbro  Місяць тому

      Free Free...Get the AVR Bare Metal course for free. Limited Time offer....use the following link:
      www.udemy.com/course/bare-metal-programming-of-avr-micro-controllers/?couponCode=9F5E62DD80CD1D54D816

  • @alexnoggle1874
    @alexnoggle1874 Рік тому +1

    Very helpful video. Thank you!

  • @hamooda4974
    @hamooda4974 2 роки тому +1

    thnks for your video its helped me alot , can you please schow us how to bild a lowpass an serial port signal,

  • @ayushkumarkushwaha3560
    @ayushkumarkushwaha3560 3 місяці тому +1

    Can i replace this device with my android senors to sense audio???? Sir

    • @sachinsharmajcbro
      @sachinsharmajcbro  Місяць тому

      Free Free...Get the MATLAB course for free. Limited Time offer....use the following link:
      www.udemy.com/course/matlabsimulink-made-easy/?couponCode=BC89ED4F2BECFBBD3259

  • @amir_eshaqy
    @amir_eshaqy Рік тому +1

    Hello, I want to receive two different variables from the microcontroller and display them in a graph. Can you guide me?

    • @sachinsharmajcbro
      @sachinsharmajcbro  Рік тому

      Please send us an email at info@jcbrolabs.org

    • @amir_eshaqy
      @amir_eshaqy Рік тому

      @@sachinsharmajcbro
      thank you . I sent an email

  • @lucasmarjona
    @lucasmarjona 2 місяці тому +1

    Awesome command fclose(ans) jeje I always, close Matlab instead. Regards.🎉❤

    • @sachinsharmajcbro
      @sachinsharmajcbro  Місяць тому

      Free Free...Get the MATLAB course for free. Limited Time offer....use the following link:
      www.udemy.com/course/matlabsimulink-made-easy/?couponCode=BC89ED4F2BECFBBD3259

  • @SHONSL
    @SHONSL 2 роки тому +1

    So simple! Thank you.

  • @boomuruganr4222
    @boomuruganr4222 3 роки тому +1

    Thank you so much for your helpful mind.

  • @mahuafu-r4n
    @mahuafu-r4n 2 місяці тому +1

    thank you😮

    • @sachinsharmajcbro
      @sachinsharmajcbro  Місяць тому

      You're welcome 😊

    • @sachinsharmajcbro
      @sachinsharmajcbro  Місяць тому

      Free Free...Get the MATLAB course for free. Limited Time offer....use the following link:
      www.udemy.com/course/matlabsimulink-made-easy/?couponCode=BC89ED4F2BECFBBD3259

  • @ajaynagarajan4294
    @ajaynagarajan4294 3 роки тому +1

    Thank you very much for sharing this :)

  • @hayamaitmalk3459
    @hayamaitmalk3459 3 роки тому +1

    tnk you sooooo much you help me.

  • @johannanandar9916
    @johannanandar9916 4 роки тому +1

    Hello,
    How can I stop the simulation or data collection in the .m

  • @satawatkaeokrajang3412
    @satawatkaeokrajang3412 2 роки тому +1

    Thank you, sir !

  • @hareeshparasuram9710
    @hareeshparasuram9710 2 роки тому +2

    If more than one data, say data1, data2, data3 etc.. comes from the same serial port (From Aurdino, say com4) how to Read it simultaneously & plot this in Real Time In MATLAB, Thanks In Advance.. Its Very Very Urgently Required For Research Work Plzzzz !!!! Plzzz Give the Code ????

  • @MrROHITBOHRA
    @MrROHITBOHRA 3 роки тому +2

    how to send data from computer to parallel port LPT using MATLAB please guide sir.

  • @NoorAhmad-gd7no
    @NoorAhmad-gd7no 3 роки тому +1

    How to read real-time audio from the sound card, since the sound card is not recognized as a port, instead it's recognized as one of the audio inputs

  • @blitzritter7867
    @blitzritter7867 3 роки тому +1

    Thank you so much

  • @thamsanqalucky7618
    @thamsanqalucky7618 4 роки тому +1

    Hi there, thank you for sharing your knowledge with us. However you have only showed us one end of the communication. May you please explain how is the data transmitted from your board to the MATLAB. What peripheral (UART etc.) did you use to transport the data?

    • @sachinsharmajcbro
      @sachinsharmajcbro  4 роки тому

      Yes, serial data (UART) was being received transferred from microcontroller.

    • @thamsanqalucky7618
      @thamsanqalucky7618 4 роки тому +2

      @@sachinsharmajcbro Hi there, thank you for your reply. I am trying to acquire a signal from a light-to-voltage sensor using the STM32 nucleo board. Then, I need to export the acquired data into Matlab/Simulink. I hope it won't be too much trouble if I ask you to please share your C code from the STM32 IDE. Thank you in advance.

  • @thieno9119
    @thieno9119 4 роки тому +2

    Nice video !

  • @rafaelbaldin4560
    @rafaelbaldin4560 2 роки тому +1

    Unfortunately, I've got this message error: "Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.
    'serial' unable to read all requested data." I am using an Arduino Uno with a baudrate of 115200.

    • @rafaelbaldin4560
      @rafaelbaldin4560 2 роки тому +2

      It is working now. I did not use the str2double function, and I had to change the parametres in the fscanf function. Using the instrreset function is also useful to avoid errors. The problem that I am facing now is that the plot does not restart when I run the code again, forcing me to restart Matlab.

  • @v.m.d.harish9180
    @v.m.d.harish9180 4 роки тому +1

    when Running graph, system performance will be same in GUI or degraded

    • @sachinsharmajcbro
      @sachinsharmajcbro  4 роки тому

      It will be little degraded if incoming data is being received at higher rate.

    • @v.m.d.harish9180
      @v.m.d.harish9180 4 роки тому

      what is your opinion on the slow response in running graph plot not as fast as the change in analog volage at the input of adc

    • @sachinsharmajcbro
      @sachinsharmajcbro  4 роки тому +1

      @@v.m.d.harish9180 There could be several reasons:
      1. Baud rate of data transfer
      2. Computer processing load
      3. Program code

  • @DonnyPUtama
    @DonnyPUtama 3 роки тому +1

    What if i have more than 1 data? How to separate it and make a two plot instead ?

    • @sachinsharmajcbro
      @sachinsharmajcbro  3 роки тому

      You have to find a way to separate them and store them in different variables. For more information you can contact us at: info@jcbrolabs.org

  • @eagle9611
    @eagle9611 4 роки тому +4

    I know you might associate the symbol in your channel logo with something absolutely different as i am, who is coming from Germany, but every time i see it i'm shocked and terrified the moment i see it. Nevertheless i really appreciate your content :) Please keep it up.

    • @sachinsharmajcbro
      @sachinsharmajcbro  4 роки тому +1

      No one can imagine the suffering of people by Nazi regime, but be assured it doesn't represents Nazi. It is an Indian symbol 'Swastika' representing prosperity and well being for all. You can search for the same on Google for same meaning.

    • @EdwinFairchild
      @EdwinFairchild 4 роки тому

      @@sachinsharmajcbro Great video, but sir are you gay?

    • @sachinsharmajcbro
      @sachinsharmajcbro  4 роки тому

      @@EdwinFairchild hahahaha....why do you think so?

    • @EdwinFairchild
      @EdwinFairchild 4 роки тому +2

      @@sachinsharmajcbro I only wanted to show you that time and history changes the meaning of things, The original definition of "gay" is happy and cheerful, but time, society and history have given it a new meaning in society. As is such with the symbol that may have meant one thing originally for you and your culture but for the rest of world it means something else. You would not walk around saying "im gay im gay" to mean you are happy if you know the rest of the world would misinterpret that. However great channel and thanks for the knowledge.

    • @sachinsharmajcbro
      @sachinsharmajcbro  4 роки тому +1

      @@EdwinFairchild Thanks and You are right dear, but the only thing is that this symbol still used in many parts of the world for prosperity and well being for all.....So shouldn't we let the world know that this symbol represent something else too other than nazi regime only.....It is just about the availability of information....

  • @AliG.G
    @AliG.G 3 роки тому +1

    Is there any way to plot multi-data?

  • @garimasharma6575
    @garimasharma6575 2 роки тому +1

    While reading data via serial port, my observation is, I am losing many data points. since I know the sampling rate of microcontroller ADC is 10kHz but I can read 7000 samples per sec in matlab. how can I correct that issue?

    • @sachinsharmajcbro
      @sachinsharmajcbro  2 роки тому

      Actually, If you try to read samples at high data rate from same application then that will not be possible. You will have to use thread to read the serial data and then separate thread to display the same.

    • @garimasharma6575
      @garimasharma6575 2 роки тому

      @@sachinsharmajcbro could you please explain, what do you mean by a separate thread?

    • @garimasharma6575
      @garimasharma6575 2 роки тому

      if you mean that only read data in a loop and separately plot the data in another loop? then I am only reading the data in a loop since I found reading and plotting data together in a loop is not possible.

    • @sachinsharmajcbro
      @sachinsharmajcbro  2 роки тому

      @@garimasharma6575 loops block the execution. I would suggest you to go through the concept of threads (if you have not gone through it earlier) then search for implementing the same in MATLAB. To start, threads runs in the background of main application and data can be transferred via shared variables.

    • @garimasharma6575
      @garimasharma6575 2 роки тому

      @@sachinsharmajcbro I haven't gone through threads earlier so I have read parallel processing but can you explain, how to access data from one function to another? by knowing that data is continuously coming in one function.
      Could you please upload a video lecture on real-time serial data reading and plotting the data using thread/parallel processing? Thank you!

  • @yahyakhuram6722
    @yahyakhuram6722 4 роки тому +1

    how can we connect IWR1443Boost with matlab? please make a video on it, thanks

  • @ZH-id7qg
    @ZH-id7qg 3 роки тому +1

    How to make x-axis move with plot ( doesn’t stop at zero )

    • @sachinsharmajcbro
      @sachinsharmajcbro  3 роки тому

      That can be done with little variation in the code.

    • @ZH-id7qg
      @ZH-id7qg 3 роки тому

      @@sachinsharmajcbro
      Can you tell me pls , give me any example or text me by @zOsH_21 telegram

  • @thermotutor3755
    @thermotutor3755 3 роки тому +3

    As a German i'm getting flashbacks from this Symbol.

    • @sachinsharmajcbro
      @sachinsharmajcbro  3 роки тому +2

      dear, don't worry, It is not nazi symbol. It is Indian symbol swastika, which represents prosperity and well being for all....

    • @thermotutor3755
      @thermotutor3755 3 роки тому +2

      @@sachinsharmajcbro I know my friend. It was just to supposed as a joke.
      Many greetings from Germany and thank you for the Video!

    • @robin4970
      @robin4970 3 роки тому

      Hab genau das Gleiche gedacht 🤣

  • @sorrefly
    @sorrefly 3 роки тому +1

    Not an happy logo choice buddy

    • @sachinsharmajcbro
      @sachinsharmajcbro  3 роки тому +2

      Dear, this is not nazi symbol swastika (which you might be thinking). It is an Indian Symbol, which represents prosperity and well being for all. Please learn more about it.

    • @m4nuz
      @m4nuz 3 роки тому

      @@sachinsharmajcbro i very like that you use the symbol, not fair that you should not use it in his original meaning

    • @mayazhussain
      @mayazhussain 2 роки тому

      just because NAZIs abused that symbol does not mean it is evil.

  • @saeedmohebbiyan9485
    @saeedmohebbiyan9485 4 роки тому +1

    Thank you So much