06-05-2019 01:15 AM
The problem is that the number of instrument lists is not the same as the number of instruments used by IO Control.
I can search for TCPIP0::K-E5052B-02402.lan::inst0::INSTR, but I cannot search for TCPIP0::192.168.1.253::inst0::INSTR
I can only search for seven. But IO Control can search 14.
The instrument address I searched for:
TCPIP0::KEYSIGH-FHPNKCU.lan::hislip0::INSTR
TCPIP0::KEYSIGH-FHPNKCU.lan::inst0::INSTR
TCPIP0::K-E5052B-02402.lan::inst0::INSTR
ASRL1::INSTR
ASRL2::INSTR
ASRL3::INSTR
ASRL8::INSTR
Instrument address found using official tools:
TCPIP0::192.168.1.253::inst0::INSTR
TCPIP0::192.168.1.82::inst0::INSTR
TCPIP0::192.168.3.3::hislip0::INSTR
TCPIP0::KEYSIGH-FHPNKCU.lan::hislip0::INSTR
TCPIP0::KEYSIGH-FHPNKCU.lan::inst0::INSTR
TCPIP0::KEYSIGH-FHPNKCU.lan::5025:OCKET
TCPIP0::K-E5052B-02402.lan::inst0::INSTR
TCPIP0::K-E5052B-02402.lan::5025:OCKET
ASRL1::INSTR
ASRL2::INSTR
ASRL3::INSTR
ASRL8::INSTR
TCPIP[board]::host address[::LAN device name][::INSTR]
TCPIP[board]::host address:ort:
OCKET
the code:
Private Sub VI_BtnFIND_Click(sender As Object, e As EventArgs) Handles VI_BtnFIND.Click
viOpenDefaultRM(defrm)
Dim find_list As Integer
Dim retCnt As Integer
Dim instrDesc = New StringBuilder()
status = viFindRsrc(defrm, "?*INSTR", find_list, retCnt, instrDesc)
VI_lsbEXM.Items.Clear()
VI_lsbEXM.Items.Add(instrDesc.ToString)
If retCnt <> 0 Then
For i = 0 To retCnt - 2
status = viFindNext(find_list, instrDesc)
VI_lsbEXM.Items.Add(instrDesc.ToString)
Next
End If
status = viClose(defrm)
End Sub
06-07-2019 09:02 AM
Check your firewalls settings. Maybe your application has different network permissions than the IO control app.
Best regards Christian