| Products > Test Equipment |
| RIGOL DG2025 Programmatically creating arbitrary waves |
| (1/1) |
| gongallard:
Hello everyone. I'm implementing a script to create programmatically arbitrary waves using binary data transfer. I use the arbitrary waveform generator RIGOL DG2025 (DG2000 series) and I have followed the steps of the following link, https://rigol.my.site.com/support/s/article/methods-for-programmatically-creating-arbitrary-waves1 In this article, previously to download the waveform we would send the following commands, "Before sending the actual data using one of the 3 data formats each of these examples also sends the following commands: “:SOURCE1:FUNCTION USER” ‘sets the mode to ARB on the DG5 “:SOURCE1:FUNCTION:ARB:MODE PLAY” ‘sets play mode so we get each point at even timing. As opposed to normal mode 'that sets a time interval for the pattern to complete in. “:DATA:POINts VOLATILE, 16383” ‘sets the number of points in the arb. Varies depending on length." However for the Rigol waveform generator DG2025 the commands ":SOURCE1:FUNCTION:ARB:MODE PLAY" and “:DATA:POINts VOLATILE, 16383” don't exist. see the link https://www.rigol.eu/Public/Uploads/uploadfile/files/ftp/DG/%E6%89%8B%E5%86%8C/DG2000/EN/DG2000_ProgrammingGuide_EN.pdf Q1. Has anyone had any experience with these commands that I should use for the ARB DG2025? Also, I was able to download a waveform to the generator using the method of binary data transfer. To define the variables "channel", "sample rate", "amplitude" (volts peak to peak), "offset", and "start phase", we used the following command, ":SOUR<channel>:APPL:SEQ <sample_rate>,<amplitude>,<offset>,<start_phaes>" after that, to download the waveform I used the following commands, ":TRACe:DATA:DAC16 VOLATILE,CON,#<size_field_characters_amount><binary_data_size><binary data>" ":TRACe:DATA:DAC16 VOLATILE,END,#,#<size_field_characters_amount><binary_data_size><binary data>" The values of the data binary are between the limits 0x0000 and 0x3FFF The waveform generated respects the sample rate and amplitude but the offset has a weird behavior, at least we were expecting. e.g :SOUR1:APPL:SEQ 160000,1,0,0 The waveform appears mounted on 0.5 Volts of offset. Changing the offset value won't respect the offset value assigned as I expected. I don't understand this behavior. Q2. Is anyone has any tip to use a command to define the channel, sample rate, amplitude, offset, and phase for a signal downloaded through the binary data transfer method? Thanks, Gonzalo. |
| Navigation |
| Message Index |