Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending SCPI commands to Rigol DP711 troubles

Solved!
Go to solution

I cannot send any SCPI command to the Rigol DP711, even IDN command will return a timeout error.
What I already tried:

Here's the code I loosely copied from Simple Serial example to test SCPI commands. Open and write didn't return any error, but a timeout error would be returned after read.

AndeSpan_1-1736310706257.png

 

Anyone has a DP711 or has experience working with it, could you give me some insight on this issue? Many thanks.

0 Kudos
Message 1 of 3
(210 Views)

For serial communications, I first use Putty or a similar terminal program to verify the communications. You can also use the VISA Test Panel via MAX. This is just a way to get away from your code and prove out the communication settings.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(183 Views)
Solution
Accepted by topic author AndeSpan

Thanks for the suggestion. I switched to Putty and while doing a loopback test again, I immediately saw the issue, 2 actually:

1. The port on the DP711, despite being a male connector, actually has female port pin layout. The manual did said use a female-female cable to communicate but apparently I was blind. And thus I used a male-female converter (original cable has a female port) and the issue is resolved. Same goes with the FTDI chip, used a female-female straight through converter (this one has a male port instead) and communication was fine again.
2. It was not Prolific chip's fault

People who bought the DP711 without reading the manual carefully would assume that the male port on the back indicates that they would need a female DB9 to USB cable. This is not true, you must buy a cable with a port type converter in any case.

AndeSpan_0-1736770934048.png

 

 

0 Kudos
Message 3 of 3
(151 Views)