Proper way to communicate over serial

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

КОМЕНТАРІ • 16

  • @ssyafiq2
    @ssyafiq2 2 місяці тому

    Thanks, Tim, for your clear explanation. Fixed the weird race condition in my project (streaming with serial read and write).

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

    This is bloody amazing. Exactly what I needed, didn't realize I've been doing it, not wrong but poorly this entire time.

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

    This was super helpful, thanks for making this

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

    Amazing!

  • @georgeyork8975
    @georgeyork8975 4 місяці тому

    0
    I have attached a RS232 to USB converter and connected SD-100 Verity Monochromator Legacy Equipment(circa 1999 Device). No software available(unable to find and manufacturer does not have) to drive commands to the unit. I know the unit is a self contained with logic and microprocessed controlled and with external(via Rs232)commands will do its own arrangements to scan and send back plottable data from the RS232 port etc. I have randomly sent commands through the Debugging software to send commands and observe the received data. The unit does not respond and not sure if its because its looking for the right commands or a series of commands I am not aware of etc. I am at a lost and would like to be able to use this equipment. Anyone who might have an inkling on the approach or a better idea please let me know... Anyway to figure out what the hex commands to get this unit to function and then figure out a list that could be created into a gui interface for the windows eventually. Thanks in advance!!!

  • @xequals-pc1wl
    @xequals-pc1wl 10 місяців тому

    Having called 'bytes at port' it makes no sense at all to not use the returned value as the input to Visa read.

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

    super cool

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

    how do i synchronise my arduino serial with my labview? When my arduino already starts reading data and printing it to the derial monitor and i activate my labview 10s later i only read data from 10s ago.

    • @xequals-pc1wl
      @xequals-pc1wl 10 місяців тому

      When your Labview starts up read all of the data that's buffered by the driver and/or Visa. Call 'bytes at port' to find out how much there is to read. Subsequent reads will retrieve the latest data. You can make your own decision whether to process or discard the initial buffer contents.

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

    You look like a young Terry Davis. Anyway, thanks a lot for this. It helped!

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

    I'm facing an overrun error. It says a character was not read from the hardware before the next character arrived. any solution?

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

    Why do you have a The Cheat on your title page? :-)

    • @crossrulz
      @crossrulz 6 місяців тому

      I was a huge Homestar Runner fan in college and decided to make The Cheat my avatar. I just haven't changed since.

  • @oggimaster
    @oggimaster 5 місяців тому +1

    I am so frustrated with LabVIEW. When I try the same thing with streaming data via serial LabVIEW is too slow to read (100 ms intervalls) and the buffer fills slowly. I want "real-time" data. Simply put - read the fcking last thing in the buffer and not in order. I tried to put in an array, but I found no way to read the last element. With python this takes 10 minutes, when you dont know how to program. In LabVIEW you always have to fix problems no one ever had with script based programming. I truly hate it, but I have to learn it somehow.