gpettit Posted March 20, 2017 Share Posted March 20, 2017 Is it possible to fill the buffer of a Scope Math channelĀ from a script? Scope1.Math1.data[i] = some value Thanks in advance, Greg Link to comment Share on other sites More sharing options...
attila Posted March 21, 2017 Share Posted March 21, 2017 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 Link to comment Share on other sites More sharing options...
gpettit Posted March 22, 2017 Author Share Posted March 22, 2017 Thanks attila -- worked great! Link to comment Share on other sites More sharing options...
Question
gpettit
Is it possible to fill the buffer of a Scope Math channelĀ from a script?
Thanks in advance,
Greg
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.