FrontPanel API 6.1.0
Loading...
Searching...
No Matches
OpalKelly::DeviceSensors Class Reference

Represents the set of read-only sensors available on certain devices. More...

Public Member Functions

int GetSensorCount () const
 Retrieve the number of sensors.
 
okTDeviceSensor GetSensor (int index) const
 Retrieve a single sensor.
 

Detailed Description

The OpalKelly::DeviceSensors class is a container and accessor for multiple device sensors that are retrieved from the device (via the OpalKelly::FrontPanel::GetDeviceSensors method). Each call to OpalKelly::FrontPanel::GetDeviceSensors resets the list of sensors contained in this class. The sensors may then be individually retrieved by the OpalKelly::DeviceSensors::GetSensor method.

Member Function Documentation

◆ GetSensor()

okTDeviceSensor OpalKelly::DeviceSensors::GetSensor ( int index) const
Parameters
[in]index- Index of the sensor to retrieve.
Returns
okTDeviceSensor - A sensor structure.

Use this method to retrieve a single sensor at a particular index. This index can be from 0 to N-1 where N is the number of sensors returned by GetSensorCount().

◆ GetSensorCount()

int OpalKelly::DeviceSensors::GetSensorCount ( ) const
inline
Returns
int - Number of sensors

When OpalKelly::FrontPanel::GetDeviceSensors is called, it fills an instance of OpalKelly::DeviceSensors with the available sensors from the device. This method is used to get the sensor count so they may be queried using the GetSensor method.


Copyright (c) 2005-2026 Opal Kelly Incorporated