Announcement

Collapse
No announcement yet.

Serial.listen() for 4DGL?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Serial.listen() for 4DGL?

    Hi

    I have a bit of 4DGL code that I'm running on my 96-G2 Goldelox display. I have one variable in the code that I want to update continually via a serial command from my computer, but I don't want to turn the display into a serial slave module because then my 4DGL code won't run (right?). Is there a way to include a Serial.listen() command in 4DGL code, as I can in for example Arduino code, so I can send a serial command to the display while it's running 4DGL code?

    Many thanks
    Chris

  • #2


    serin() doesn't block, it returns -1 if there is no character available. Similarly, if you used buffered comms you can use com_Count() to see if there's anything waiting to be 'processed'.

    So you shouldn't have anything to worry about
    Mark

    Comment


    • #3


      Nice Thanks

      Comment

      Working...
      X