Posted Mon, 15 Jan 2024 03:02:33 GMT by Averbuch, Gil
Hi,

I have an AFG31000, and I would like to generate arbitrary waveforms in Python, save them to tfw format, and upload them via a thumbdrive. I found this example:
https://forum.tek.com/viewtopic.php?t=140915

I would like to know if there is a way to define the frequency/sampling-rate of the signal in the header.
Also, when I tried uploading a csv with my desired waveforms, the AFG didn't know which sampling rate I use.  Is there a way to set it?


Thanks,
Gil
Posted Tue, 16 Jan 2024 18:39:55 GMT by Teles, Afonso
Hi Gil,

As discussed here, the TFW file format does not contain timing data, so no, I don't think there is a way for you to define the sampling rate in the file.
For a csv, the AFG ignores timing data in the file (all it cares about are the sample values), so you have to manually set the sample rate. In the advanced menu this can be done directly through the menu you can pull up at the bottom. In basic mode, there's no explicit way to do this, you just have to calculate the correct period from your number of samples in the file and desired sample rate.

You must be signed in to post in this forum.