user_define_file


Description

Loads custom user waveform files

Syntax

C++
UInt32 user_define_file(String filename, Double clock)

Arguments

filename file name of custom user file
clock frequency of the input clock

Return Value

numOfPoints number of data points in user waveform file

Example

unsigned numOfPoints;
Double clock = 4e9;
numOfPoints = awg.user_define_file("user_defined_file.uda", clock);

Notes

The user_define_file will use the contents of an external .uda file, provided that the file is formatted the correct way. The file gives you complete control of the waveform data. User defined waveforms are not limited to waveforms that are available as the built-in waveforms.

For more information regarding the .uda file and how to format it please see the AWG Manual.

Please note that you will still need to use the download method to download all the data after you have called the user_define_file method.