Posted Fri, 29 Nov 2024 06:13:41 GMT by Larsson, Johan
Hello,
I have problem changing the resistance measurement range using SCPI. I have tried to add :RANG 10000 after "FUNC" in the following working code (Python) that reads resistance using AUTO RANGE:

self.instrument.write(f"SENS:FUNC \"RES\", (@1{channel:02d})")
self.instrument.write(f"ROUT:CLOS (@1{channel:02d})")
return float(self.instrument.query("READ?"))

I only get the SCPI command is invalid popup on DAQ display.

Please help.
Posted Sun, 01 Dec 2024 13:27:20 GMT by C, Andrea
You need to assign the range command also to the channel.  Similar to what you did for the measure function.

You must be signed in to post in this forum.