Comments (5)
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 nidcpower
module, nor in the NI-DCPower driver runtime for that matter.
from nimi-python.
I tested with the voltage_limit
property: it is working properly, contrary to current_limit
.
from nimi-python.
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?
What is the version of the NI-DCPower driver runtime you installed?
What operating system are you using this with?
from nimi-python.
What is the model of the SMU you run this on?
The PXIe-4163.
What is the version of the NI-DCPower driver runtime you installed?
See the snapshot attached for the whole list. All packages are version 2023 Q4 Patch 1.
What operating system are you using this with?
Windows 10.
from nimi-python.
In "NI DC Power Supplies and SMUs Help", I found the following:
Accessing Attributes
[...]
Setting Properties and Attributes Before Reading Them
Properties and attributes are modified when you set them or when you call a configuration VI or function that sets them, respectively. It is important to set the properties or attributes or call any configuration VIs or functions before reading back any property or attribute values for the following reasons:
- [...]
- The driver verifies that the configuration of the session is valid at the time the property or attribute is read. It is possible to get an error when reading a property or attribute if the configuration is not valid at that point**, even when a setting later could make it valid.
- [...]
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?
from nimi-python.
Related Issues (20)
- Repeated capability accessors return internal `_SessionBase` type HOT 2
- Incorrect documentation for the channel_name parameter of niFgen.Session HOT 2
- Add library stubs for use with mypy HOT 6
- Documentation is failing to build on Read the Docs due to the read_the_docs theme not being found.
- Error in return type for most 'autorange' properties in nidcpower library HOT 7
- Silently ignore and change value when passing minimum value to source_delay attribute in nidcpower HOT 4
- nidcpower.errors.DriverError: -1074097808: Could not load the dynamic library. HOT 2
- APIs allow repeated capabilities to access attributes and methods that don't support them HOT 6
- Github Actions Workflows should be updated to use Node.js 20 HOT 2
- Adopt use of Mend Renovate App to automatically update tooling and dependencies HOT 2
- Internal Test Suites do not report results of example testing HOT 1
- Using Python FGEN API to control PXIe-5413 signal generator works first time but fails after power cycling devices with error "-88717: No device by the given name was found" HOT 10
- Add support for Python 3.12 HOT 1
- Drop Python 3.9 support when it goes EOL
- codecov status badge is affected by coverage of unmerged PRs HOT 1
- Create a tool to help with version support changes
- nidcpower.errors.DriverError: -1074135040: IVI: Unrecoverable Failure. HOT 11
- Bypass NI cooling requirements HOT 1
- Cannot connect to a PXIe-4139 card located at some IP address HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimi-python.