• 0

AD2 Loading .csv file for Scripting Pattern Generator



I am attempting to script the pattern generator using a custom defined waveform. My perspective is that I have two options: (1) entering the custom values for the 1-1024 buffer slots through waveforms scripting or (2) loading in a .csv file that I create in another program. I have successfully done this using option 2 but the issue is I need for the entire system to be automated and would like to either find a way to script the file Import processes for the csv file or to define the values directly in waveforms scripting. Any help would be appreciated.

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

My script so far:

Patterns1.Channels.resistor.Output.text = "PP";
Patterns1.Channels.resistor.Type.text = "Custom";
Patterns1.Channels.resistor.Idle.text = "1";
Patterns1.Channels.resistor.Frequency.value = 2e6;

Is there an option to select the Import .csv file or is there a way to enter the values in the script?

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now