Coherent FieldMaxII-TOP Uživatelský manuál Strana 81

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 118
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 80
Host Interface
67
DeviceStatus callback method) through the
DevicesList.Item search method using the string version
of CallbackData.DeviceIndex as the search key.
The following Visual Basic 6.0 code shows how to
obtain reference to the cFM2Device object and start the
data check timer when a data transmission is notified:
‘Declaration:
Dim ThisDevice As IFM2Device
‘Executable code:
‘Get the current device from the collection
Set ThisDevice = m_DevicesList.Item(CallbackData.DeviceIndex)
‘Handle the data
Select Case CallbackData.CallbackEvent
Case "Fault"
‘Fault event is enumerated in ThisDevice.LastFault
Case "ProbeRemoved"
‘Probe was removed
Case "ProbeAdded"
‘Probe was added, probe type is ThisDevice.ProbeType
Case "PowerOn"
‘Meter power is on, all properties are current and accurate
Case "PowerOff"
‘Meter power is off, only the ThisDevice.PowerState is
‘current and accurate
Case "MeasurementData"
‘Measurement data event, data is ThisDevice.LastData
Case "PacketIsOverrange"
‘Measurement data event, data is over-ranged
Case "OverTemperature"
‘Probe is in an over-temperature state
Case "MeasurementDataLost"
‘Data transmission gap due to buffer overflow
Zobrazit stránku 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 117 118

Komentáře k této Příručce

Žádné komentáře