Reading from a sensor without event handler
Posted: Thu Oct 22, 2020 2:42 pm
Is there a way to get a voltage reading from a sensor outside of using an event handler? The only examples I've seen of reading voltage ratio look like this:
I want to be able to read from the sensor without having the voltage ratio change event happening.
Code: Select all
private void LoadCell_VoltageRatioChange(object sender, Phidget22.Events.VoltageRatioInputVoltageRatioChangeEventArgs e)
{
//when the sensor detects a voltage change, it executes this.
if (loadCellRatioVoltageChangeArray.Count <= 50)
{
loadCellRatioVoltageChangeArray.Add(e.VoltageRatio);
}
}