ReadRTLog

[Definition]

VARIANT_BOOL ReadRTLog( [in] LONG dwMachineNumber)

[Usage]

Read real-time events and write them to the buffer of the PC. This function can be used with GetRTLog to actively obtain real-time events from the device after the PC connects to the device successfully.

[Parameter]

dwMachineNumber: Device number

[ReturnValue]

Return True if it is successful, or return False.

[RelatedFunction]

GetRTLog

 

Ejemplo

C#

private static void ReadRTLog(string sIp = "10.0.0.44", int iPort = 4370)
{
//Create Standalone SDK class dynamicly.
zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();
axCZKEM1.Connect_Net(sIp, iPort);
int iMachineNumber = 1;
if (axCZKEM1.ReadRTLog(iMachineNumber))
MessageBox.Show("Successful");
else
MessageBox.Show("Unsuccessful");
}

VB

Private Shared Sub ReadRTLog(Optional ByVal sIp As String = "10.0.0.44", Optional ByVal iPort As Integer = 4370,
Optional ByVal iMachineNumber As Integer = 1)
'Create Standalone SDK class dynamicly.
Dim axCZKEM1 As New zkemkeeper.CZKEM
axCZKEM1.Connect_Net(sIp, iPort)
If axCZKEM1.ReadRTLog(iMachineNumber) = True Then
MsgBox("Successful")
Else
MsgBox("Unsuccessful")
End If
End Sub