Products > Test Equipment

Rigol DP1308A control over TCP

(1/3) > >>

csak1:
Hello.  I am trying to program a Rigol DP1308A power supply over a TCP socket.  I would like to open a socket in C3 code and write SCPI commands to the power supply from there.  Has anyone done this successfully? 

At the moment, when I open a client socket to (ip address on port 5025) the power supply refuses the connection!  I thought port 5025 was a standard SCPI port.  None of the RIGOL documentation seems to indicate the SCPI port.

Thanks for your help!
Chris

Bored@Work:
AFAIK port 5025 is not standardised in LXI. It is just a convention typical used if an instrument provides some kind of a direct network connection. And AFAIK an instrument is not required to provide direct network connections.

One requirement is that an instrument comes with an  IVI driver, supposed to hide such connection details from you. However, IVI drivers are only usable on Windows.

Run a port scan on the instrument.

It could also be that the PSU uses VXI-11 communication. For some strange reason parts of VXI-11 made it into LXI. And that means contacting the Sun RPC port mapper on port 111 to get the port for the VXI-11 RPCs. AFAIK LXI only requires that instrument discovery via VXI-11 is supported, and that only one command "*IDN?" needs to be supported via an RPC. But a vendor is allowed to support more.

signals:
I've been through the same thing trying to control a Rigol AWG and Scope from code on a Linux system. There does not seem to be a TCP port that will accept SCPI directly, and the NI VISA drivers are very poor on Linux. So, it was either find a Windows box or find something else. I found something else that seems to work:

http://optics.eee.nottingham.ac.uk/vxi11/

I can pass SCPI through the above software and get the results from both of my Rigol devices. I would expect that it probably works OK on the power supplies too. (I don't have one.) Even if you aren't using *nix, you can probably use the source code as an example of how you send SCPI to a Rigol device over the LAN.


dr.diesel:
Any of you guys get any further via TCP?  I was thinking about doing the same on my DSA815.

dr.diesel:
PeDre, thanks!

I've tried your software, it doesn't find my 815.  Of course I've got it on a same subnet and my 815 is set to LAN for remote control.  Its my understand that if I send "*IDN?" to port 111 is should respond correct?  Do I have to pad the string to a specific length?

I've never used Xojo, I'll get the IDE loaded and see if I can parse the source.




Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod