Jump to content
  • 0

Custom Channel that Displays Frequency


jan.bartos

Question

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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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
    file.appendLine(text)
    Index++
}

i1.thumb.png.d174bf8073e6f4fdb3a13e3984112218.png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...