How to Communicate over a Serial Port using LabVIEW

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025

Комментарии • 45

  • @ashwin372
    @ashwin372 Год назад +1

    one of the fluent english speaker from Africa! nice thank you

  • @SuperJamesw14
    @SuperJamesw14 Год назад +2

    Super awesome vid. Clear, easy to follow, helped me complete my project for school. Thank you!

  • @ThomasPommes
    @ThomasPommes 3 года назад +5

    Thank you. That was exactly what I needed. Had to read sensor data over rs485 and your tutorial told me the basics of serial communication in LabView

  • @tuanvu3654
    @tuanvu3654 3 года назад +2

    This is a very practical project.

  • @derekkunte3499
    @derekkunte3499 4 года назад +3

    Very helpful, thank you sir

  • @PirateFunk
    @PirateFunk 4 года назад +1

    Just what I needed thank you.

  • @familia3sgte
    @familia3sgte 4 года назад

    Thank you. You're awesome!

  • @ketanpatel1068
    @ketanpatel1068 2 года назад

    Very Helpful!!!

  • @raymondzhao9557
    @raymondzhao9557 Год назад

    interesting! thanks!

  • @jansendwan1221
    @jansendwan1221 2 года назад

    Now what do you do if you have 2 arms?

  • @jasneetpala1996
    @jasneetpala1996 Год назад

    Hi, I am finding a little bit problem with the code I designed. I just want to read data from serial port with time. But it looks like labview is not reading the data from the weighing machine. Can you help me with that? I am new to labview with zero background.

    • @OlawaleAkinwale
      @OlawaleAkinwale  Год назад

      Hi. You might want to confirm that the serial port is configured correctly to interact with the weighing machine. For example, check of you are using the correct baud rate, the correct number of stop bits, whether or not parity checking is done, and if RTS/CTS is used. These can determine whether or not you are able to successfully interact with an RS-232 device.

  • @jeffryiskandar4254
    @jeffryiskandar4254 Год назад

    hey can i ask a question? why my visa cant detect the com/ports?

    • @OlawaleAkinwale
      @OlawaleAkinwale  Год назад

      That's strange. Connect a serial device to one of your COM ports and then restart LabVIEW. If that doesn't work, last resort might be to refresh the LabVIEW installation.

  • @francischewechikweto3987
    @francischewechikweto3987 3 года назад +1

    Thanks a lot for this helpful video. Could kindly share the arduino source code. I'm having a challenge in correctly parsing received received string.

    • @OlawaleAkinwale
      @OlawaleAkinwale  3 года назад

      Will do. Hope to do so within 24 hrs.

    • @francischewechikweto3987
      @francischewechikweto3987 3 года назад

      @@OlawaleAkinwale Thanks a lot. Looking forward

    • @OlawaleAkinwale
      @OlawaleAkinwale  3 года назад +2

      This video did not make use of an Arduino code, just LabVIEW alone. However, below is an Arduino program for communicating over the serial port. With this, you can communicate back and forth between LabVIEW and an Arduino board. www.dropbox.com/s/8np7u673iv17yyz/HC-SR04.ino?dl=0

  • @adelin3363
    @adelin3363 3 года назад

    i have ch340 (arduino copy) connected on COM7 and in labview not showed, what i can do ?

    • @OlawaleAkinwale
      @OlawaleAkinwale  3 года назад

      That's strange. It ought to show up. Check your device manager to see that your computer is seeing the port (or just check in the Arduino software that the port is indeed visible. If it is then refresh your ports list in LabVIEW. I hope this helps.

    • @adelin3363
      @adelin3363 3 года назад +1

      @@OlawaleAkinwale i solved with NI-VISA Pkg manager ty

    • @OlawaleAkinwale
      @OlawaleAkinwale  3 года назад

      @@adelin3363 Great.

    • @harshulvr8779
      @harshulvr8779 Месяц назад

      @@adelin3363 how exactly did solve it with package manager, would be really helpful if we can connect somewhere thanks!

  • @ramymohamed1531
    @ramymohamed1531 3 года назад

    When i installed labview communication the installed is stoped and this massege is appered

    • @OlawaleAkinwale
      @OlawaleAkinwale  3 года назад

      I'm sorry for my late response, but I can't see the message that LabVIEW displayed. In any case, I hope you have been able to solve it.

  • @licabrother6122
    @licabrother6122 2 года назад

    Hello, i have a resistive touschreen connected through a serial port from microcip to my laptop and idk how to make a project so i can use that screen as a touchscreen, i hope you might have an idea or just understand what i'm asking, thanks

    • @OlawaleAkinwale
      @OlawaleAkinwale  2 года назад +1

      Hi. I should start by saying that I haven't used a resistive touch screen before in a project and so am not sure what the interface will be. However, since it is connected to your computer via serial port, I will assume that Microchip will have set things up so that the coordinates of the position where your finger or stylus impact the board will be sent over the serial link to the computer. I will suggest that you check the dataset and find out how to communicate with the board. I did a quick check and it seems that you will use 9600 baud, 8 data bits, no parity and one stop bit. The serial data will be the coordinates touched. First project could be just to display the coordinates on the screen as numbers. Second project could be to display the touched coordinates in an x-y plotter in LabVIEW so that you can visibly see how where you touch correlates with the display on the screen. After these, the rest is up to your imagination / needs but another project could be using the touch controller as a sort of qualitative input to a simulation e.g. use where you touch on the touchscreen as a determinant of the flow rate or amount of time to take in specific states in a state machine or ...

    • @OlawaleAkinwale
      @OlawaleAkinwale  2 года назад

      I hope that helps.

    • @licabrother6122
      @licabrother6122 2 года назад

      @@OlawaleAkinwale do you think i can have any chance to talk with you on zoom or something else?

  • @YM-lm8xr
    @YM-lm8xr 3 года назад

    what if I just want to read data (numbers, not string)

    • @OlawaleAkinwale
      @OlawaleAkinwale  3 года назад

      Hello Y M. LabVIEW will read the data on the serial port as a string and then you will be able to parse this as numbers e.g. using "Scan from string".

  • @codelery414
    @codelery414 3 года назад

    Thanks. What add on did you use? LINX or something else? I have been trying to read data using the same serial communication with LINX, however I am getting anything

    • @OlawaleAkinwale
      @OlawaleAkinwale  3 года назад

      In LabVIEW? I used VISA. Beyond that, there was no other add on. I used a serial to USB cable to connect the robotic arm to the computer.

    • @codelery414
      @codelery414 3 года назад

      @@OlawaleAkinwale Thanks for the response. Could you please share the VI file with me?

    • @OlawaleAkinwale
      @OlawaleAkinwale  3 года назад +1

      @@codelery414 I am very sorry for my late response. I have not been able to locate this exact file that I created in / for this video. I will share another which is very similar to this and more advanced than this. www.dropbox.com/s/zs54knulwejm56n/ScriptControl.vi?dl=0

  • @carlosmarinoloaizagonzalez4193
    @carlosmarinoloaizagonzalez4193 4 года назад

    Buen video , bro me puedes ayudar con un ejercicio ?

  • @rafiqaakmaliaabdini3820
    @rafiqaakmaliaabdini3820 4 года назад

    wooow verry good video, but i want to know how to how to connect 2 computer (computer 1 built the input diagram and computer 2 display the result of the computer 1... result in led indicator and statistic diagram) and both of these computer connected with utp cable. can you make a video for answer my question? because i really need to know about that. i'm sorry my english is too bad, but i hope you can understand what i mean, thanks...

    • @OlawaleAkinwale
      @OlawaleAkinwale  4 года назад

      Interesting one. I have not done a project like this before but will be happy to check it out and hopefully put up a video about it soon. In the mean time, you may want to check out TCP communication using LabVIEW. There are a couple of videos about this on RUclips
      P.S.
      No problem about the English.

  • @MenPlanet
    @MenPlanet 4 года назад +1

    Mohammed de maroc merci mon frere on veux bathing plus design videos Plainview communication serie merci bq

  • @icebluscorpion
    @icebluscorpion 10 месяцев назад +1

    Your windo placement of the arm was really stupid. I couldn't see what you have clicked at 5:20. Next time use split screen to not obstruct the view. We aren't in a fogging gaming channel here aren't we?!

    • @OlawaleAkinwale
      @OlawaleAkinwale  10 месяцев назад

      Thank you for the feedback. I'm sorry for the error on my part.