-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unnecessary write access request when trying to read a property #2031
Comments
I tested with the |
I don’t believe this is a bug within the nidcpower Python module, rather the underlying behavior of the driver runtime. You’d get the same results from LabVIEW or C or C#. What is the model of the SMU you run this on? |
In "NI DC Power Supplies and SMUs Help", I found the following:
Could that be the reason for which a read-access operation in the above script raises an error, even though I am just trying to check the type of the returned variable? |
Yes. Getting (reading) a property causes what is known as a "verify" operation, which looks at all the session's properties to confirm they are in a valid configuration, and raises if this is not the case. In your code, you get a property in order to see its type, but it doesn't really matter to the driver what your intent for getting the property is. There are several reasons why the driver only looks at valid property values when the "verify" occurs, one example is to avoid ordering requirements on how you need to set properties. Closing this since it isn't a bug in the |
Description of issue
When I try to read the
current_limit
property, I get an error related to thecurrent_limit_range
property, as if I were trying to write the value.System report
Steps to reproduce issue
nidcpower.errors.DriverError
is raised.nidcpower.errors.DriverError
is raised.The text was updated successfully, but these errors were encountered: