Jump to content
  • 0

How to use WaveForms SDK "trigsrcAnalogOut1"


AlexMark6

Question

By WavesForms SDK, I am writing a program as bellow.
Language is Python.
How can I code this function?
Because I can not use trigger("trigsrcAnalogOut1"), recorded data of my code starts before the starting point of output sine wave. 

1.AnalogIn(CH0) waits for AnalogOut(CH0) start trigger.
2.Just After AnalogOut(CH0) Start(100Hz/1V sine wave for 5 waves = 50ms), AnalogIn(CH0) starts data record.
3.AnalogIn(CH0) records data for 100ms.
4.AnalogIn(CH0) buffer size = 8192.
5.Recorded data should start at the biggining of 5 sine waves.(after 50ms recorded data should be zero)

Attached charts are Taget waveform and waveform by my code.

sine_wave(target).jpg

sine_wave(my_code).jpg

Link to comment
Share on other sites

1 answer 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...