12-11-2008 12:46 PM
I am trying to establish a good VISA TCP\IP session with a Sorensen XG power supply.
The XG is connected directly to my PC Ethernet card via a crossover cable. I am certain that I've set up the Ethernet correctly as I am able to communicate with the XG via a web browser (port 80), telnet (port 9999), hyper terminal (port 10001), and I'm able to ping the XG via a command prompt.
I've used NI-MAX to configure a VISA TCP\IP resource (TCPIP0::192.168.1.2::10001::SOCKET).
I am able to successfully validate the VISA session via NI-MAX by clicking the "Validate" button.
What I'm not able to do is use this VISA session to communicate with the XG supply. When I open a VISA test panel and attempt to communicate I see the following behavior.
Questions:
Any help it appreciated.
Anson Wooten
12-12-2008 07:11 AM
Anson,
Not familar with this instrument but try:
TCPIP0::192.168.1.2::5025::SOCKET - generally SCPI over ethernet is on port 5025
and try:
TCPIP0::192.168.1.2::INSTR - this uses VXI-11 protocol.
12-12-2008 07:57 AM
Cymrieg,
Thanks for the response. I was unable to establish a VISA session using port 5025. Also, I am unable to create the TCP\IP resource using TCPIP0::192.168.1.2::INSTR. I'm assuming this is not a VXI-11 compatible instrument ( I read that VXI-11 is primarily used by agilent).
What's interesting is that Port 10001 does respond to VISA (*IDN?) and SCPI commands when I issue these commands with a hyper terminal. I just cannot duplicate this with a VISA session.
Could I be missing a driver installation perhaps?
Does this VISA session need a VISA compatible instrument driver to work properly?
Thanks,
Anson
12-12-2008 09:33 AM
Hi,
What version of NI-VISA are you using? Also, do you have another instrument that you can try to communicate with so that we can determine if your instrument is the problem?
Thanks,
Todd V.
12-12-2008 10:18 AM
All,
Thanks for your responses. I have resolved the issue.
It turns out that I was having a serial protocol problem. Port 10001 of the instrument requires a carriage return ('\r') to process the commands (I believe a carriage return is automatically appended in hyper terminal). I was supplying a line feed ('\n') but not a carriage return. The addition of '\r' to my commands resolved the problems and communication is successful.
One follow up question:
Is there any way to configure my VISA session to automatically append a carriage return to my written data?
Thanks,
Anson
12-12-2008 10:52 AM
01-11-2009 07:48 PM
Hi A Wooten,
can i have your sample prog.
cause i also try to communicate shibasoku instrument via TCP\IP.
01-11-2009 09:41 PM
01-11-2009 10:27 PM
actually i want to know how are you communicate with power supply via tcp\ip.
i want to apply it to my prog..
FYi now i already tried too...but not success yet..
01-11-2009 10:46 PM
The commands that you need to send to your supply are going to be completely different than the commands that are sent to the Sorenesen but if you want a template to look at, download any of the power supply drivers at the Instrument Driver Network. Also on that page are links that describe what a driver is and how to write your own.
If you are having problems, then what you need to do is provide details (i.e. error numbers, example code, etc) on what is not working. Have you at least created a session in MAX?