Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't "viFindRsrc" search all the instruments?

 

 

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

0 Kudos
Message 1 of 2
(1,855 Views)

Check your firewalls settings. Maybe your application has different network permissions than the IO control app. 

 

Best regards Christian

0 Kudos
Message 2 of 2
(1,833 Views)