ON THIS PAGE

  • How to place it
  • Inputs and Outputs
  • Usage
  • Examples of functionality
  • Reference

SystemLogger

Supported on:RVC2
SystemLogger node is used to get SystemInformation of the device.

How to place it

Python

Python
1pipeline = dai.Pipeline()
2logger = pipeline.create(dai.node.SystemLogger)

C++

C++
1dai::Pipeline pipeline;
2auto logger = pipeline.create<dai::node::SystemLogger>();

Inputs and Outputs

Usage

Python

Python
1pipeline = dai.Pipeline()
2logger = pipeline.create(dai.node.SystemLogger)
3logger.setRate(1)  # 1 Hz
4
5sysLogQueue = logger.out.createOutputQueue()

C++

C++
1dai::Pipeline pipeline;
2auto logger = pipeline.create<dai::node::SystemLogger>();
3logger->setRate(1.0f);  // 1 Hz
4
5// Send system info to the host via XLink
6auto xout = pipeline.create<dai::node::XLinkOut>();
7xout->setStreamName("sysinfo");
8logger->out.link(xout->input);

Examples of functionality

Reference

class

dai::node::SystemLogger

#include SystemLogger.hpp
variable
Output out
Outputs SystemInformation[RVC4] message that carries various system information like memory and CPU usage, temperatures, ... For series 2 devices output SystemInformation message, for series 4 devices output SystemInformationRVC4 message
function
void setRate(float hz)
Specify logging rate, at which messages will be sent out
Parameters
  • hz: Sending rate in hertz (messages per second)
function
float getRate()
Gets logging rate, at which messages will be sent out
function
void buildInternal()
inline function
DeviceNodeCRTP()
inline function
DeviceNodeCRTP(const std::shared_ptr< Device > & device)
inline function
DeviceNodeCRTP(std::unique_ptr< Properties > props)
inline function
DeviceNodeCRTP(std::unique_ptr< Properties > props, bool confMode)
inline function
DeviceNodeCRTP(const std::shared_ptr< Device > & device, std::unique_ptr< Properties > props, bool confMode)

Need assistance?

Head over to Discussion Forum for technical support or any other questions you might have.