Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5566

Talking to an instrument over LAN using a Mac and LabVIEW for the first time. Need advice...

$
0
0

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!

Front Panel.jpegFig. 1. Front panel showing the error when I talk over LAN.

 

Diagram.jpeg

Fig. 2. The diagram of my test program that sends the *IDN? command

 

Siglent DHCP.jpeg

Fig. 3. Siglent DHCP menu

 

Siglent LAN.jpeg

Fig. 4. Siglent LAN menu

 

Wifi.jpeg

Fig. 5. Computer network settings.

 

Ping.jpeg

Fig. 6. Ping results

 

Resource Settings.jpeg

Fig. 7. VISA resource settings.

 

Reserouce Settings 2.jpeg

Fig. 8. VISA configuration.

 

NI MAX.jpeg

Fig. 9. NI MAX monitor


Viewing all articles
Browse latest Browse all 5566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>