So I want to create a script that sets the wavegen mode to trigger.
Then I want it move to the next frequency (and turn off output), then move onto a new frequency and wait for a trigger.
So basically:
1. Set wavegen to sine wave at 1khz
2. Wait for a trigger
3. Output sinewave for a few seconds
4. Set sinewave to 10khz
5. Wait for trigger
6. Output sinewave for a few seconds
What's the best way of doing this? I'm having a tough time finding examples. I don't know how to set the wavegen to trigger mode from the script editor or how to create a list of frequencies to cycle through.
Question
jiw
Hi,
So I want to create a script that sets the wavegen mode to trigger.
Then I want it move to the next frequency (and turn off output), then move onto a new frequency and wait for a trigger.
So basically:
1. Set wavegen to sine wave at 1khz
2. Wait for a trigger
3. Output sinewave for a few seconds
4. Set sinewave to 10khz
5. Wait for trigger
6. Output sinewave for a few seconds
What's the best way of doing this? I'm having a tough time finding examples. I don't know how to set the wavegen to trigger mode from the script editor or how to create a list of frequencies to cycle through.
Thanks
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now