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.
Posted Mon, 02 Dec 2024 07:30:33 GMT by Larsson, Johan
Hi Andrea,

Can you give an example how this could be done? I am quite new to this SCPI command standard.

Thanks
Posted Thu, 19 Dec 2024 19:57:16 GMT by C, Andrea
:SENS:FUNC "RES", (@101)
:SENS:RES:RANG 10000, (@101)
:ROUT:CLOS (@101)
:READ?

You must be signed in to post in this forum.