Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very short durations - what's the correct interpolation? #51

Open
WilliamHPNielsen opened this issue Dec 18, 2017 · 5 comments
Open

Very short durations - what's the correct interpolation? #51

WilliamHPNielsen opened this issue Dec 18, 2017 · 5 comments

Comments

@WilliamHPNielsen
Copy link
Contributor

WilliamHPNielsen commented Dec 18, 2017

How should we deal with very short segments? What is closest to what the user needs and how do AWG's usually handle short pulses?

If we supply an array of voltages [0, 0, 1, 1, 0, 0, 1, 1] at a given sample rate, when do we expect voltage changes to happen?

Given the following input:
short_pulse_raw

Which of the three following scenarios do we expect the AWG to (attempt to) realise? How should broadbean's plotting reflect that?

short_pulse_01
pshort_pulse_02
short_pulse_03

@dmtvanzanten @Dominik-Vogel @nataliejpg

@Dominik-Vogel
Copy link
Member

Dominik-Vogel commented Dec 19, 2017

I think this is to some degree a matter of taste. To me the most intuitive seems to be number one: at time t set voltage to. Number two seems counterintuitive: who would want to specify the times up to which a voltage has a certain value? And number three I would expect to find as an additional feature linear_interpolation=False that is false by default.
The second most intuitive option, to my mind, is missing here, where the changes appear instantaneously half way between two segments.

@jenshnielsen
Copy link
Contributor

Surely number 3 is linear interpolation == True?

@Dominik-Vogel
Copy link
Member

I wanted to underline that False is a default.

@jenshnielsen
Copy link
Contributor

Ok I get it, You are saying that its linear interpolation == True that activates it but thats False by default

@nataliejpg
Copy link

get an AWG and an oscilloscope and check? I would guess its number 3 but checking seems most sensible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants