Hi,
I am trying to communicate with an instrument over LAN for the first time and I must make some silly rookie mistake in what I am doing. So any help is needed.
My goal: Use the LabVIEW community edition on a Mac and send a *IDN? command to a Siglent DMM over LAN (Figs. 1-2). The Siglent DMM is connected to a local router with an ethernet cable and the Mac computer is connected to the routers network via Wifi.
Version info of what I have:
LabVIEW: Community 21
MacOS: 10.15.7 (Catalina)
NI VISA: 21.0
NI 488.2: 21.0.0
On the DMM I get the IP address it has been assigned by the router (Figs. 3-4).
I then ping this address from my computer and it works just fine (Fig. 6). I get a respons within a millisecond or so. The computer is only connected to this network (Fig. 5).
I then add a VISA resource using the VISA resource editor using this IP and using the VSI-11 protocol and give it an alias of SiglentDMM (Fig. 7). It takes it just fine and I can see that it shows up in NI MAX just fine (Figs. 8-9)
I then select this resource on the control element on the front panel in LabVIEW for the VISA open call and it is there too (Fig. 1).
However, when I run the code I get an error as shown in Fig. 1…
If I use USB/VISA for communication instead with the same instrument (disconnect all cables and restart just to be sure) every thing works fine. I see the USB resource, I select it and run the program and I get the response back from the *IDN? command. What could be wrong here with my LAN approach?
Below are some images that show some key aspects. Thank you in advance!
Fig. 1. Front panel showing the error when I talk over LAN.
Fig. 2. The diagram of my test program that sends the *IDN? command
Fig. 3. Siglent DHCP menu
Fig. 4. Siglent LAN menu
Fig. 5. Computer network settings.
Fig. 6. Ping results
Fig. 7. VISA resource settings.
Fig. 8. VISA configuration.
Fig. 9. NI MAX monitor