• 0

Custom Channel that Displays Frequency


Hello all,

I am trying the measure a variable frequency signal, is it possible to create a custom scope channel that will display the most prominent frequency? If a scope channel is not possible, is there a way to continuously log the frequency over time? Currently, I am only able to get one frequency reading per acquisition using the logging tool and exporting the 'measurements' source.

Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 1

Hi @jan.bartos

For such purpose you could use the Logging tool.

You can reduce the update rate of the repetitive acquisition under Time options.

This code logs the date/time and C1 frequency to a file.

if(Index <= Maximum){
    var freq = Scope.Channel1.measure("Frequency")
    var file = File("~/Desktop/frequency.csv")
    var text = Date()+","+freq


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