Python Forum
Vpython Delay in plotting points
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vpython Delay in plotting points
#1
Hello,
I am trying to make a 2D 360degree LiDAR using the Garmin LiDAR Lite module and want to do all the mapping on Raspberry Pi. For this I used an Arduino Nano to measure distance using the LiDAR and then send it to Pi. Then using Pi I want to plot the distance points corresponding to the angle using Vpython. The problem I am facing is that Vpython takes a lot of time, about 2 minutes, to plot the distance points once I physically change the distance. I ran a test code to see how much delay there was between the arduino and pi but the changes were almost instantaneous. But as soon as I start plotting it in vpython the points take a lot of time to plot. I set a delay so the Vpython window has time to load but that just takes 5 seconds and after that the placeholder is shown without any data points.

Is there some way to reduce the delay between the change in distance in real world and the plotting of points in vpython?

Regards,
Sohaib AJ
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to add a delay right after a request.get() cubangt 6 2,675 Sep-07-2023, 09:29 AM
Last Post: shoesinquiry
  I try to import Vpython and I get a "ZeroDivisionError" Jon2222 16 2,598 Jul-26-2023, 07:37 AM
Last Post: Jon2222
  Points not plotting with reference to x-tick labels Mark17 2 1,273 Jun-14-2022, 05:38 PM
Last Post: Mark17
  Request Delay pheadrus 1 3,784 Nov-25-2021, 08:51 PM
Last Post: snippsat
  adding a delay on end Daz2264 6 2,477 Sep-29-2021, 02:57 PM
Last Post: deanhystad
  python delay without interrupt the whole code Nick_tkinter 4 5,134 Feb-22-2021, 10:51 PM
Last Post: nilamo
  How to read CSV file one row at the time in a range and some delay in between greenpine 2 4,737 Nov-20-2020, 02:26 PM
Last Post: greenpine
  configure delay on only one link using python3 HiImAl 3 2,710 Oct-21-2020, 07:51 PM
Last Post: buran
  Keyboard commands and delay/latency RungJa 0 2,130 Mar-29-2020, 01:28 PM
Last Post: RungJa
  Unwanted delay between looped synth plays WolfeCreek 1 2,313 Aug-02-2018, 09:24 PM
Last Post: Vysero

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020