Jump to content
  • 0

Is it possible to write to a scope math channel using a script


gpettit

Question

2 answers to this question

Recommended Posts

Hello,

You could use a reference channel for this purpose.

// clone a real channel to have proper time alignment
Scope1.Ref1.Clone(Scope1.Channel1)
Scope1.Ref1.enable = true

// custom data array
var c = Scope1.Channel1.alldata.length
var rg = [];
for(var i = 0; i < c; i++){
    rg[i] = sin(4*2*PI*i/c)
}
// apply it
Scope1.Ref1.data = rg

i1.png

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...