EasyManua.ls Logo

Sekonic C-7000 SDK - SK_GetDeviceInfo Function

Sekonic C-7000 SDK
23 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
C-7000 SDK REFERENCE MANUAL
No. I401-C-700-034
Page 16
2012/03/01
3.7.3. SK_GetDeviceInfo ()
operation
Get device information
type
Function SK_GetDeviceInfo(ByRef DeviceInfo As SKS_DEVICE_INFO) as Long
argument
save destination of device info (refer3.6.1)
return
value
Result of communication with C-7000 (refer3.5.1)
note
To get C-7000 status info, remote mode info, button info, light selection ring position info,
etc
example
Private C7000Device As New C7000.SDK ' generate instance of SDK
Private Sub Sample()
Dim SDKResult As Long
Dim DeviceInfo As C7000.SDK.SKS_DEVICE_INFO
' >>>>> get device info <<<<<
SDKResult = C7000Device.SK_GetDeviceInfo(DeviceInfo)
If C7000.SDK.SKF_STATUS_COM.SUCCESS <> SDKResult Then ' get device info
error ?!
'add error processing...
End If
' >>>>> check device status info <<<<<
If C7000.SDK.SKF_STATUS_DEVICE.IDLE <> DeviceInfo.Status Then
'add processing...
End If
' >>>>> check light selection ring position <<<<<
If C7000.SDK.SKF_STATUS_RING.LOW <> DeviceInfo.Ring Then
'add processing...
End If
' >>>>>> check button status <<<<<
If 0 <> (C7000.SDK.SKF_STATUS_BUTTON.MEASURING And DeviceInfo.Button) Then
'add processing..
End If
End Sub

Related product manuals