04-24-2015 11:42 AM
04-24-2015 11:43 AM
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.
04-24-2015 12:56 PM
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.
04-24-2015 04:20 PM
Thank you! This works well.
04-27-2015 12:52 PM
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.
04-27-2015 01:12 PM
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.
04-27-2015 03:30 PM
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.
04-27-2015 05:22 PM
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.
04-28-2015 06:06 AM
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.
04-28-2015 11:30 AM
Yes I had it on the Network when I power cycled the E4438.