-
RE: AFG31022 downloading waveforms
Thanks. I was puzzled then by the example in the manual where a BASIC program computed a sine wave and sent it as one byte per point. I converted that to C and it generated a nice sine wave.
Dim num_points = 3000
Dim base = 9000
Dim offset = 6000
Dim SinePoint As Integer
Dim SineWaveData(num_points) As Byte
For i = 0 To num_points 'Build sine wave
SinePoint = Int(base + offset * Math.Sin(i / 120))
SineWaveData(i) = SinePoint / 256
Next i
Tvc1.SendEndEnabled = False
Tvc1.FormattedIO.WriteLine("TRACE:DATA EMEM1, #43000")
Tvc1.SendEndEnabled = True
Tvc1.RawIO.Write(SineWaveData)
It's been a while since I've written BASIC, but by my read this would send out 3000 bytes for 3000 points. I can believe the 31022 is the same as the 3022 was, but then this shouldn't work but it seems to?
Anyway, thank you a ton for the help. I feel like I'm reverse engineering this puppy. -
RE: AFG31022 downloading waveforms
Thank you for confirming my experiment, the quick reply and the update. Can you also confirm that the older 3022 was like 11 or 12-bit data (two bytes per point) and the 31022 is 8-bit or one byte per point? The documentation for the 31022 is quite sparse in comparison to that of the 3022.
-
AFG31022 downloading waveforms
I have a shiny new AFG31022 that I selected because I need to generate waveforms greater than 128K pts in length. Try as I may, it seems to reject any commands that would download longer waveforms over the USB connection. I just installed the ArbExpress program to try out and it says that for waveforms longer than 128K you can't use th USB connection, but rather you must write them to a flash drive and transfer them that way. Has anyone else noticed this, and is my plan to send it longer waveforms over USB completely hopeless?
Bonus question - the commands that used to clear user waveforms on the 3022 don't work. The manual isn't clear on a proper way to erase a user arbitrarry waveform. Is there a way?
Thanks!