Rigol Arbitrary Waveform Generator DG1022Z and Square Signal Sample Rate

I have generated simple arbitrary function which represent UART message, but I'm having trouble when it comes to decoding it on oscilloscope.

The reason for that is because my 0 and 1 at frequency of 9600Hz (in order to match 9600 baud) does not look like digital (square) signal.

That was because when I was generating the signal for example for letter "H" (binary "01001000") and with little endian format and start and 2 stop bits "00001001011" I saved this as appropriate 0v and 5v in *.RAF file.

So, in order to get square signal I have to multiply number of 0 and 1, for example: "00001001011" to "000000000000111000000111000111111" ...

So, my question is, is this appropriate solution, or there's some other option on generator which I can use to solve this initial issue.

• try sending U where U is Hex 55 or binary 0101 0101 or similar – Sunnyskyguy EE75 Apr 5 '17 at 23:34
• @TonyStewart.EEsince'75 How is this related to anything in my question? – ShP Apr 5 '17 at 23:52
• You probably don't want to set the frequency to 9600 Hz. Generally the ARB is set up to assume the whole trace is one period, and you want to play that back 9600 times per second. What you need to do is set the frequency to 9600 / (length_in_data_bits) Hz. Or set the sample rate, if the instrument lets you specify that. – alex.forencich Apr 6 '17 at 0:32
• @Shp You ought to know how UART clock sync works with 16x clock then delays 1x clock by 1/2 bit to center sample. The ARB has a preset phase shift and external trigger so if you use a square wave character like U, you have chance of getting Scope sync with 1x clock. Once ext trigger and delay are set, inter-character delays need a start byte clock again for n bits per byte. Capiche? or a proper cct to do the Async Start bit detect for scope clock sync. It's not that hard to create a start bit and data clock for ASYNC data. – Sunnyskyguy EE75 Apr 6 '17 at 1:24
• @alex.forencich instrument support both, frequency and sample rate, but my question was, what would be sufficient sample rate then which would be good enough to generate square signal without data overhead in *.raf file? – ShP Apr 6 '17 at 1:30