Skip to content

library

Raffaello Bonghi edited this page Aug 28, 2020 · 8 revisions

JTOP is a complete controller of all systems in your NVIDIA Jetson

  • Tegrastats
  • NVP Model
  • Fan
  • Status board (i.g. Model version, Jetpack, … )
from jtop import jtop

You can initialise the jtop node like a file i.g.

with jtop() as jetson:
    # jetson.ok() will provide the proper update frequency
    while jetson.ok():
        # Read tegra stats
        print(jetson.stats)

Or manually start up with the basic function open/close

jetson = jtop()
jetson.start()
stat = jetson.stats
jetson.close()

You can read the status of your NVIDIA Jetson via callback

def read_stats(jetson):
    print(jetson.stats)

# Open the jtop
jetson = jtop()
# Attach a function where you can read the status of your jetson
jetson.attach(read_stats)
jetson.loop_for_ever()

Other examples are available in example folder

Clone this wiki locally