How to Communicate over a Serial Port using LabVIEW

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

КОМЕНТАРІ • 44

  • @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.

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

    Just what I needed thank you.

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

    Very helpful, thank you sir

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

    Thank you. You're awesome!

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

    Very Helpful!!!

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

    interesting! thanks!

  • @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.

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

    Now what do you do if you have 2 arms?

  • @francischewechikweto3987
    @francischewechikweto3987 2 роки тому +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  2 роки тому

      Will do. Hope to do so within 24 hrs.

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

      @@OlawaleAkinwale Thanks a lot. Looking forward

    • @OlawaleAkinwale
      @OlawaleAkinwale  2 роки тому +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

  • @jeffryiskandar4254
    @jeffryiskandar4254 11 місяців тому

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

    • @OlawaleAkinwale
      @OlawaleAkinwale  11 місяців тому

      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.

  • @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

  • @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?

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

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

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

      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 2 роки тому +1

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

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

      @@adelin3363 Great.

  • @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 UA-cam
      P.S.
      No problem about the English.

  • @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.

  • @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".

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

    Buen video , bro me puedes ayudar con un ejercicio ?

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

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

  • @icebluscorpion
    @icebluscorpion 6 місяців тому +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  6 місяців тому

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