Comments (10)
NI-SWITCH does not support VISA resource descriptors. You should use the resource name (from your screenshot, "PXI2Slot18").
This is what the error message is trying to tell you, but it could admittedly be clearer.
I'm going to close this issue. Feel free to reply if you have further questions.
from nimi-python.
I am getting following error if use "PXI2Slot18" as resource name:
raise DriverError(code, description)
niswitch.errors.DriverError: -1074118654: Invalid resource name.
Invalid Identifier: PXI2Slot18
from nimi-python.
Based on your screenshot of MAX, I would expect that resource name to work.
Do you have NI-SWITCH installed? (The driver, not the Python wrapper.) I'm assuming yes or else I would expect a different error about a missing library. Which version?
Are you able to run Reset or Self Test on the board? Does the "Test Panels" button work correctly from MAX? Are you able to access the board using a different programming language?
As an aside, note that the version of the ni-switch Python library you are using does not support Python 3.6. See the comment on https://pypi.org/project/niswitch/ (you want 3.7 or newer).
from nimi-python.
Hi,
I installed python 3.7. But i am still getting the same error.
NI-SWITCH (version -18) is installed. I can also run the example labview code for PXI-2566 relay module and its working.
I can "Reset" and "Self Test" on board using MAX. sharing the screenshot for your reference.
"Test Panels" is not working. Getting following error:
I have not worked with different programming language.
Thanks,
Manish
from nimi-python.
Manish,
I apologize, I overlooked the fact that you are using a remote system before. The NI-SWITCH API does not directly support accessing devices on remote systems. That is why you are receiving a "resource not found" error - the driver is only looking at the local system.
You have a number of options here (if you want/need to use Python), including:
- Use LabVIEW Real-Time Module and the LabVIEW Python nodes (e.g. run it locally via LabVIEW). This is the only method officially provided by NI today.
- gRPC
- rpyc
- Run the code locally on the target (via ssh or some other tool)
from nimi-python.
Your remote system is NI Linux RT, right?
You should SSH to it and run the code locally.
from nimi-python.
My system is configured as Pharlap RT.
from nimi-python.
If SSH is applicable for RT Pharlap, can you pl share some more details about usage of SSH.
from nimi-python.
from nimi-python.
Unfortunately there is no SSH server nor Python interpreter for Phar Lap ETS, so you cannot use that’s Python APIs on that operating system. Additionally, Phar Lap ETS was obsoleted years ago so no new features are going to be added anymore.
See if you can use a different OS on your system. I don’t know what controller you have but NI Linux RT or Windows are the two OSes that NI-SWITCH driver supports.
from nimi-python.
Related Issues (20)
- Add "cancel build" workflow
- P2PStreamRelativeTo enum is included in the niscope API, despite not having a P2P Python module
- nifgen API has useless enum value StartTriggerType.P2P_ENDPOINT_FULLNESS
- niscope.Session.fetch() is very slow with large fetches HOT 5
- nimi-python APIs inefficiently allocate Python arrays
- Mixing an nidmm PXI-407x session and niswitch sessions causes unexpected failures finding the NI-SWITCH Functions on Linux HOT 2
- nidmm system test test_vi_string_attribute fails with NI-DMM 2023Q3 and later HOT 1
- codecov-action does not reliably upload system-test coverage to codecov HOT 1
- coverage rcs need to be updated HOT 4
- nimodinst system tests are not running on Linux
- Investigate how many APIs can be tested in parallel by nimibot. HOT 1
- Incorrect tip/example for nifgen.session.create_waveform_numpy() HOT 1
- 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
- Unnecessary write access request when trying to read a property HOT 5
- Silently ignore and change value when passing minimum value to source_delay attribute in nidcpower HOT 4
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.