Author Topic: Scripting setup for Rigol devices  (Read 8199 times)

0 Members and 1 Guest are viewing this topic.

Offline kandrey89

  • Contributor
  • Posts: 39
  • Country: us
Re: Scripting setup for Rigol devices
« Reply #25 on: June 04, 2017, 04:00:12 am »
Is anyone else peeved about Rigol's RS232 implementation regarding termination characters?
INSTRUMENT RECEIVE: requires "\r\n" in order to process the commands correctly
INSTRUMENT SEND: instrument sends data with "\n" only, its not possible to choose the termination character, unlike Keithley instruments that can do "\r\n", "\r", "\n", "\n\r" or "" (ie none).

Basically, I was setting up a class for RS232 communication, and I have many devices that it needs to talk to and I found that I had to change "newline" definitions in windows SerialPort C# wrapper between read and write commands, otherwise Rigol wouldn't communicate properly. "\r\n" for write and "\n" for read is a PITA.

I think I'm going to send them an email asking that they update the firmware to allow instrument selection of termination character, currently there's only 2 options available for selection: Baud rate and Parity, there's no Data Bits, Stop Bits, nor Flow Control.

Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo