if(type=="HMP" || type=="HMC")
command = "INST OUT"+chan+"&CURR "+value.toFixed(3);
if(type=="PST") command = ":CHAN"+chan+":PROT:CURR "+value.toFixed(3);
- if(type=="DP") command = ":OUTP:OCP:VAL CH"+chan+","+value.toFixed(3);
+ if(type=="DP") command = ":SOUR"+chan+":CURR "+value.toFixed(3);
new_commands.push(command);
forceShowReadings = 1;
}
if(type=="DP") {
cmds="&%2AIDN%3F";
for(i=1;i<=channels;i++)
- cmds += "&:SOUR"+i+":VOLT%3F&:OUTP:OCP:VAL%3F CH"+i+"&:OUTP:OVP:VAL%3F CH"+i;
+ cmds += "&:SOUR"+i+":VOLT%3F&:SOUR"+i+":CURR%3F&:OUTP:OVP:VAL%3F CH"+i;
}
getdata('pwr.pl?'+ser_dev+'&'+type+"&"+speed+cmds,updatesettings);
}