192 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
126
views
C# EasyHook SOCKET Connect
Based on my question C# IVI VISA (e.g.: NI VISA) TCP Keep Alive I tried to use EasyHook to patch how NI VISA is opening a SOCKET connection. Finally I would like to modify the keep alive settings in ...
0
votes
1
answer
386
views
IVI VISA (e.g.: NI VISA) is not setting the TCP Keep Alive correctly for all connections
The following C# code opens a VISA session to a measurement instrument:
// Connect
var vi = GlobalResourceManager.Open("TCPIP::10.0.0.2::hislip0::INSTR") as IMessageBasedSession;
// Set TCP ...
0
votes
0
answers
365
views
Connect to a Keysight LCR Meter using Excel VBA (VisaComLib)
I am trying to read and record data into an Excel spreadsheet with a Keysight E4980AL LCR meter.
Ideally, I would like to use VBA. I believe this is the easiest way; i.e. requiring the least amount of ...
0
votes
0
answers
251
views
Looking for a nuget package containing the Ivi.Visa.Interop namespace
We are trying to compile the console app at https://docs.keysight.com/kkbopen/use-a-c-program-to-perform-a-screen-capture-on-the-33500b-33600b-3446xa-532x0a-instruments-620693023.html (also ...
alok's user avatar
- 1,354
1
vote
0
answers
65
views
Constant expression required error with visa32.dll included in VB6 project references
I have downloaded and included the VISA library in my VB6 project through visa32.dll. When I try to compile the project, I get this error message:
Constant expression required
The VISA library is ...
0
votes
1
answer
327
views
How to read measurements in a Keysight SMU when using an external trigger
I am using a Keysight B2901A SMU with an external trigger. Everything works on the tool but when I use PyVISA with SCPI commands I cannot find the way to read the measurements done when a trigger ...
-1
votes
1
answer
61
views
Discover all device aliases in VISA instrument
I have several Keysight DVMs attached to my computer. Each may have multiple Aliases (user-defined names). I am trying to discover all available Aliases for these instruments in software using the ...
0
votes
1
answer
719
views
PyVisa lists my ethernet connected device, but error when trying to open resource [python3.11]
I am trying to communicate with TTi power supply model QPX1200SP through ethernet connection.
Here is my script:
import pyvisa as visa
rm = visa.ResourceManager()
print(rm.list_resources(query='TCP?*')...
0
votes
1
answer
134
views
NI VISA in C#; problem reading replies from another PC over TCPIP
I have no problem opening a session ...... I manually punch in the IP address and socket, and the session opens successfully. This program I am talking to is written to respond in a specific manner ...
0
votes
0
answers
54
views
Configuring Agilent datalogger to read the resistance from cable actuated position transducer (string pots) in python
I connected the string pot to the agilent data logger and am trying to read the change in resistance from moving the position of the string.
import numpy as np
import pyvisa as visa
import time
from ...
0
votes
1
answer
1k
views
Python: PyVISA vs PySerial?
I work with various instruments such as scopes, rs232, rs422, serial to usb converters, and so on. I am having a hard time finding the differences between PyVISA and Pyserial. Is one strictly better ...
0
votes
0
answers
155
views
Pyvisa: creating second instance of ResourceManager
In my code I want to potentially create multiple instances of pyvisa.ResourceManager. However, I the second instance never finds any (USB) devices. Directly addressing the device will also create an ...
0
votes
1
answer
805
views
pyvisa succeeds with "*IDN?" but fails with VI_ERROR_TMO: Timeout expired before operation completed with all other commands
My instrument responds properly to "*IDN?" with Rigol Technologies,DG822,DG8A233304081,00.02.06.00.01.
When I try to issue any other commands, I get:
Traceback (most recent call last):
...
0
votes
2
answers
645
views
How to use LabVIEW to control and command Keithley 2410 - 2400 Source meter
Trying to connect Keithley 2410 Source meter from GPIB port and command and control its current frequency change for my setup. I need to use SCPI I guess. how can I do that is there any one help me ...
0
votes
0
answers
289
views
Error: "VI_ERROR_TMO (-1073807339): Timeout expired before operation completed."
I'm not very familiar with python. I'm compiling a python code to plot the output on the oscilloscope. But i got an error like
this.
Error:
pyvisa.errors.VisaIOError: VI_ERROR_TMO (-1073807339): ...