clear()
if (!('DMM' in this)) throw "Please open a DMM";
var batvol = 0;
DMM.run();
for(var i = 0; i < 10; i++){
batvol = DMM.Voltage.value;
wait(1);
print("Battery Voltage: " + batvol + " V");
}
I have the above code, but it keeps giving me the error "TypeError: Result of expression 'DMM.Voltage' [undefined] is not an object."
How would i get voltage and current from the DMM? I could not find any documentation about the code for DMM.
Question
hueyalex
clear() if (!('DMM' in this)) throw "Please open a DMM"; var batvol = 0; DMM.run(); for(var i = 0; i < 10; i++){ batvol = DMM.Voltage.value; wait(1); print("Battery Voltage: " + batvol + " V"); }
I have the above code, but it keeps giving me the error "TypeError: Result of expression 'DMM.Voltage' [undefined] is not an object."
How would i get voltage and current from the DMM? I could not find any documentation about the code for DMM.
Link to comment
Share on other sites
1 answer 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