VINT HUB0002_0

C, C++, and Visual C++
Nakgerman
Fresh meat
Posts: 3
Joined: Wed Nov 12, 2025 10:17 am

VINT HUB0002_0

Post by Nakgerman »

I am using a VINT HUB0002_0. Channels 4 and 5 are set as voltage input and voltage ratio input. In studying the API pages for both, I see two "events" as follows:
PhidgetVoltageRatioInput_setOnVoltageRatioChangeHandler() and
PhidgetVoltageRatioInput_OnVoltageRatioChangeCallback()
They both have the same example! What is the difference between the two functions if any?
The same question can be asked for Voltage Input ?
User avatar
Patrick
Lead Developer
Posts: 696
Joined: Mon Jun 20, 2005 8:46 am
Location: Calgary

Re: VINT HUB0002_0

Post by Patrick »

PhidgetVoltageRatioInput_OnVoltageRatioChangeCallback is documenting the signature of the callback function that you will pass to PhidgetVoltageRatioInput_setOnVoltageRatioChangeHandler to register for events. They do both share the same example, but the documentation is for each half of the whole picture.

-Patrick