Question

Hi Everyone,

I've been using "Scope1.Channel1.alldata" to collect Channel data from the scope, but is there a function to collect the "Time" data?

Best Regards,

Nick

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @Nick

There is no function which returns the sample timestamps but you can construct one like this:

var rgTime = []
var cSamples = Scope1.Time.Samples.real
for(var i = 0; i < cSamples; i++){
    rgTime.push(Scope1.Time.TimeOf(i))
}

 

Edited by attila

Share this post


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