Hello Attila,
thanks for your answer.
Changing
Scope.Trigger.Trigger.text = "Repeated";
into
Scope.Trigger.Trigger.text ="None";
doesn't help.
The result is still
0 Average: -0.20256204946957707 V
1 Average: -0.20255704714549083 V
2 Average: -0.10340124710078286 V
3 Average: -0.0047285733028118795 V
4 Average: 0.0947865008039129 V
It should be -0.2 -0.1 0 0.1 0.2
But when i use
for(var idx = 0; wait(0.05) && idx < 5; idx++){
if(!Scope.wait(1)) throw "Stopped";
Scope.wait(0.05);
...
it works.
Now i see. The arg in "Scope.wait(1) is ignored. Only wait(0.05) takes the value 0.05 as an argument and waits for the wanted delay.
So the first aquisition is ignored and the second aquisition is evaluated.
What about switching V+ and V- on and off? Do you have a command for that?
Regards.