使用ClearCanvas SDK进行DICOM C-ECHO验证

时间:2017-08-28 04:57:47

标签: dicom clearcanvas

我正在使用ClearCanvas sdk来c-echo验证远程dicom实体,但我总是得到的结果是'失败'。它似乎甚至没有与远程实体相关联。下面是我在vb.net中执行此操作的代码。我做得对吗?

Dim hostname As String = "RemoteHost"       
Dim ae As String = "RemoteAETitle"       
Dim port As Integer = "RemotePort"      
Dim lhost As String = "LocalAETitle" 

Dim checkremote = New VerificationScu()

Dim result As VerificationResult = checkremote.Verify(lhost, ae, hostname, port)

    If result = VerificationResult.Success Then
        MessageBox.Show(result.ToString)
    Else
        MessageBox.Show(result.ToString)

    End If
    checkremote.Join(New TimeSpan(0, 0, 4))

1 个答案:

答案 0 :(得分:0)

您正在使用API​​,这应验证连接。您是否看过生成的任何日志消息?这有助于确定问题。