Gain setting for 1046 Bridge/VoltageInput

Supporting Visual Studio on Windows
Post Reply
nm17
Phidgeteer!
Posts: 51
Joined: Mon Nov 27, 2017 3:29 am
Contact:

Gain setting for 1046 Bridge/VoltageInput

Post by nm17 »

Hi

I can't find Phidget22 API method in VoltageInput (or anywhere else) to control Bridge 1046 gain. Anyone knows how do I set bridge gain in Phidget22?

This used to be available in Phidget21 as BridgeGain property. I have a weird situation where Bridge gets overwhelmed for some reason (not sure why) and resets itself to a gain of 128x in which case my software fails. So I'd like to be able to set the correct gain when I need to. Any ideas why bridge resets itself to a higher gain are welcome too :)

Thanks
nm17
Phidgeteer!
Posts: 51
Joined: Mon Nov 27, 2017 3:29 am
Contact:

Re: Gain setting for 1046 Bridge/VoltageInput

Post by nm17 »

And to respond to myself, I was looking at the wrong class, I should have used VoltageRatioInput.BridgeGain property. To make things worse for me, I actually did use this just didn't look at the correct code. Must get some sleep. :mrgreen:
fraser
Engineering
Posts: 324
Joined: Thu Nov 19, 2009 4:41 pm
Contact:

Re: Gain setting for 1046 Bridge/VoltageInput

Post by fraser »

If you assign an attach event for the voltageRatio object, and set the BridgeGain in there, you won't need to reset the gain yourself. It will just always get set to what you want it at when the device comes back.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 18 guests