
- 160 -
Voltage
Acquires the battery voltage.
■ Syntax
[VB]
Public ReadOnly Property Voltage As Integer
[C#]
public int Voltage {get;}
■ Property
Battery voltage (mV)
Default value
: Battery voltage at the time of initialization
■ Exceptions
None
■ Note
If the BHT has a battery in the grip only, the battery voltage for the BHT body will be 0 (mV).
Similarly, if there is a battery in the BHT body only, the battery voltage for the grip will be 0
(mV).
[Ex.] Acquire the battery voltage at the BHT body and grip.
[VB]
For Each MyBattery In BatteryCollection.ExistingBatteries
Dim Volt As Short = MyBattery.Voltage
Next
[C#]
foreach (BatteryCollection.Battery MyBattery in BatteryCollection.ExistingBatteries)
{
short volt = MyBattery.Voltage;
}
Komentáře k této Příručce