Comments (1)
May be as simple as:
index ccbbe75..a92d324 100644
--- a/pyvisa_sim/gpib.py
+++ b/pyvisa_sim/gpib.py
@@ -24,9 +24,10 @@ class GPIBInstrumentSession(sessions.Session):
self.attrs[constants.VI_ATTR_GPIB_PRIMARY_ADDR] = int(
self.parsed.primary_address
)
- self.attrs[constants.VI_ATTR_GPIB_SECONDARY_ADDR] = int(
- self.parsed.secondary_address
- )
+ if self.parsed.secondary_address is not None:
+ self.attrs[constants.VI_ATTR_GPIB_SECONDARY_ADDR] = int(
+ self.parsed.secondary_address
+ )
def read(self, count):
end_char, _ = self.get_attribute(constants.VI_ATTR_TERMCHAR)
from pyvisa-sim.
Related Issues (20)
- Communication fails for simulated GPIB/USB/TCPIP devices HOT 5
- PyVISA has moved
- Timeout when response termination character is None
- Write function should return a status code
- Instruments archive
- Random values as response HOT 1
- How to work with multi-element properties? HOT 1
- pyvisa doesn't found pyvisa-sim with pyvisa 1.11.0 HOT 5
- Invalid link on readthedocs HOT 2
- How to simulate binary write and query
- Conda installs version 0.3 -- Get no package pyvisa_sim found. HOT 5
- Feature suggestion: Connecting instruments HOT 1
- multiple instances of ResourceMaganer HOT 7
- Multiple getters and setters for a property? HOT 1
- Debug logging spits out each character individually HOT 3
- `main` branch no longer allows dialog-without-response HOT 1
- Bug in `iter_bytes` HOT 3
- ResourceManager needs to be closed to clear instrument buffer
- Is there a "reset instrument to defaults from yaml file" function or similar? HOT 5
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 pyvisa-sim.