I am trying to run scripts, but I haven't been able to find a good complete set of instructions/reference manual
Got the ECMA-262 manual and waveform 2015 ref. man. documents but neither tell me how to make a while loop that will stop when I press a key.
Question
tomas61
I am trying to run scripts, but I haven't been able to find a good complete set of instructions/reference manual
Got the ECMA-262 manual and waveform 2015 ref. man. documents but neither tell me how to make a while loop that will stop when I press a key.
Also, why the data is not getting updated
for(outLoops=0;outLoops<10;outLoops++)
{
// reading 50 times, 5 seconds plus
for(loops=0;loops<10;loops++)
{
// acquire data
Scope1.single();
Scope1.wait();
data = Scope1.Channel2.data;
for(index=0;index<8;index++)
{
thresholdLow -= 0.01;
thresholdHigh = thresholdLow - 0.01;
data.forEach(function(sample){if((sample < thresholdLow)&&(sample > thresholdHigh))counter[index]++;});// build histogram
} //index
} // loops
Link to comment
Share on other sites
19 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now