LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I cannot communicate with a Network Analyzer through the LAN connection.

Solved!
Go to solution
I don't know why you couldn't upgrade the firmware. That's a question for Keysight.

I don't remember the exact process but you should select the manual mode for creating the resource and enter the ip address. I've never had much luck with RAW resources but it's worth a try.
0 Kudos
Message 11 of 20
(2,627 Views)
Solution
Accepted by topic author General-D

Try this code. I use a fair amout of Agilent equipment and this has worked extremely well for me. I have all my instrumentation set up with static IPs, I don't think it would work with dynamic addressing.  p.s. Most Agilent hardware needs a "newline" character (\n) to terminate the command. Don't immediatly close the conenction if you have multiple commands that you want to send. Just remember to close it later.

 

Generic TCP Write.png

Message 12 of 20
(2,625 Views)

Thanks for the suggestion.   I was able to set  up a communication using  MAX; RAW socket.  Your code example gave me a clue to where I was going wrong.   I entered the wrong port number when creating a connection.   I needed to use the 5025 as the port #.   And enter the ip address in the upper box.   Then I was able to successfully create a resource.   thanks again.

0 Kudos
Message 13 of 20
(2,609 Views)

Thank you!   This works well.

0 Kudos
Message 14 of 20
(2,592 Views)

Is the port number the same for an ESG Vector Signal Generator  E4438?   I wasn't sure how the port number is selected.  5025 works for the Network analyzer.

0 Kudos
Message 15 of 20
(2,561 Views)

I have an E4438C in one of my test racks, but unfortunately I communicate via GPIB. I checked the E4438C Users Manual and I found a programming example there using C-code:

 

#define SCPI_PORT 5025

 

I would have to double check my code to make absolutely sure, but I believe I use that same Port number for all Agilent test gear and also for Rohde & Schwarz, and Tektronix instruments.

 

Message 16 of 20
(2,553 Views)

I tried 5025 without success.   I'll give Keysight a call and see if they know.

Thanks for the help with the network analyzer.  That was my main concern.

0 Kudos
Message 17 of 20
(2,541 Views)

Ok, found out that I need to recycle the Sig. Gen. after changing the IP address for it to take effect.  It's working now.

0 Kudos
Message 18 of 20
(2,533 Views)

As a side note on some of the older Agilent equipment (I believe it is the LINUX based operating systems models), you have to make sure that the ethernet port is plugged into an active network or the ethernet drivers don't get loaded when you cycle power. It sounds like your SigGen rebooted OK.

0 Kudos
Message 19 of 20
(2,512 Views)

Yes I had it on the Network when I power cycled the E4438.

0 Kudos
Message 20 of 20
(2,490 Views)