EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: alank2 on July 10, 2013, 04:06:36 am

Title: How to send a setup using :SYSTem:SETup on Rigol...
Post by: alank2 on July 10, 2013, 04:06:36 am
Hi,

Does anyone know how to format the setup data after this command?

:SYSTem:SETup <setup_data>

I've tried:

:SYSTem:SETup\n
#9000002493<data>

:SYSTem:SETup #9000002493<data>

:SYSTem:SETup #9000002493<data>\n

Maybe I did something wrong - does someone know?
Title: Re: How to send a setup using :SYSTem:SETup on Rigol...
Post by: ve7xen on July 10, 2013, 04:17:05 am
I assume in the same way :SYSTem:SETup? returns the data, which seems to work just feeding it back to the scope verbatim.

That format is:

:SYSTem:SETup #9000002579<data>\n

Beware that you're actually writing the bytes as they came from the scope though, as many mechanisms for doing this might be doing conversion to other character sets etc.

In other words, this code works:

Code: [Select]
config = rigol.ask_raw(":SYSTem:SETup?")
rigol.write_raw(":SYST:SET " + config)
Title: Re: How to send a setup using :SYSTem:SETup on Rigol...
Post by: alank2 on July 10, 2013, 12:24:06 pm
Thanks - your method worked!