Hi there,
(this is a cross-post from NI Forums)
I am using a Tektronix MSO5204B oscilloscope (firmware 10.8.3 build 3) and a Tektronix AFG3022C (Version 1.0.2) function generator. The scope is connected over USB and the function generator over the USB-GPIB adapter. PyVisa with the NI-Visa driver as a backend is used to interface with the scope and the tkafg3k driver for the function generator.
I have a python program that does some measurements (a couple of mean voltage levels and step response waveforms). If I run the program for the first time after booting the scope, everything runs through smoothly. However, on consequent runs, I get the following warning: VI_WARN_UNKNOWN_STATUS (1073676421) on viOpen().
Then the program sporadically fails with the following error: VI_ERROR_INP_PROT_VIOL (-1073807305).
If I try to record the error with NI IO Trace, things get funny: The function generator takes very long (~2s per parameter) to configure and the protocol error does not occur! So somehow NI IO Trace is interfering with the communication.
I tested the program with another scope, the Tektronix DPO7104C, and everything works fine there, even on multiple runs.
Furthermore I tried with the MSO5204B connected over ethernet, and while the error behaves identically, it gets reported as VI_ERROR_TMO (-1073807339). This time I was able to record the problem with NI IO Trace, which is the trace packed as a zip attached below (I wasn't able to create a minimum example, but I reduced the code to execute only the setup for the measurements, so that is why there aren't any measurements happening).
So, does anyone have an idea why this timeout/protocol error is thrown, even though the statement's syntax is correct (concluding from the runs that go smoothly)? Is there a relevant difference between the two scopes? Is the timing between direct USB and over the USB/GPIB adapter different?
And how can I stop NI IO Trace from interfering with USB communication? Especially the slow configuration of the function generator is annoying.
Thanks a lot for your help!
Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.
Timeout/Protocol Error and NI IO Trace interference
DPO70000SX, DPO/MSO70000, DPO7000 Series, DPO/MSO5000 Series
Timeout/Protocol Error and NI IO Trace interference
Post by quexor » November 19th, 2019, 6:38 am
- Attachments
-
- Timeout.zip
- (7.49 KiB) Downloaded 35 times
Return to “Windows Based Oscilloscopes”
Jump to
- Announcements
- Customer Support
- ↳ Product Support
- ↳ Oscilloscopes
- ↳ 5 and 6 Series MSO Oscilloscopes (including 5 Series Low Profile)
- ↳ Windows Based Oscilloscopes
- ↳ Non- Windows Based Oscilloscopes
- ↳ Sampling Scopes and Modules
- ↳ Programming Support
- ↳ Other or Discontinued Oscilloscopes
- ↳ Probes & Probe Accessories
- ↳ Passive/Low Voltage
- ↳ High Voltage
- ↳ Differential
- ↳ Current
- ↳ Other or Discontinued Probes
- ↳ Signal Sources
- ↳ AFG1000/2000/3000 series
- ↳ AWG5000/7000/70000 Series
- ↳ Keithley 3390
- ↳ Older and Obsolete Signal Sources
- ↳ TSG4100A Series
- ↳ AFG31000 Series
- ↳ Spectrum Analyzers
- ↳ Announcements and FAQs
- ↳ RSA Programming
- ↳ RSA300/RSA500/RSA600 Series
- ↳ RSA5000/6000 Series
- ↳ Older and Obsolete Spectrum Analyzers
- ↳ Vector Network Analyzers
- ↳ Announcements and FAQs
- ↳ Programming with VectorVu-PC (E.g., Automated Test)
- ↳ TTR500 Series VNAs
- ↳ Source Measurement Units (SMU)
- ↳ 2600 Series SourceMeter
- ↳ 2651A High Current SourceMeter
- ↳ 2657A High Voltage SourceMeter
- ↳ 2400 Series SourceMeter
- ↳ 2450/2460/2461/2470 Touchscreen SourceMeter
- ↳ Other Source Measurement Units (SMU)
- ↳ Digital Multi Meters (DMM)
- ↳ DMM6500 Bench/System DMM
- ↳ DMM7510 Graphical Sampling DMM
- ↳ Series 2000 and Series 2100 DMM's
- ↳ Series 2015 & 2016 THD/Audio Analyzers
- ↳ Other DMM's
- ↳ Data Acquisition Systems and Switch Systems
- ↳ DAQ6510 Data Acquisition and Logging Multimeter System
- ↳ Series 3700 Switch System/Multimeter and Plug-In Cards
- ↳ 7000 Series Switch
- ↳ 700 Series Switch
- ↳ RF Switch
- ↳ Other Switches
- ↳ Series 2700 Multimeter/Data Aquisition/Switch System
- ↳ Power Supplies
- ↳ Series 2200 Programmable DC Power Supplies
- ↳ Series 2260 Programmable DC Power Supplies
- ↳ Series 2280 Precision Measurement DC Power Supplies
- ↳ Series 2300
- ↳ Other Power Supplies
- ↳ Power Analyzers
- ↳ Semiconductor Test Products
- ↳ S530 Parametric Test Systems
- ↳ 4200-SCS Semiconductor Parameter Analyzer
- ↳ ACS Software Products
- ↳ Low Level Measurement & Sourcing
- ↳ Nanovoltmeters
- ↳ Electrometers
- ↳ Curent Amplifiers
- ↳ PicoAmmeters
- ↳ Current Sources
- ↳ Older & Obsolete Instruments
- ↳ Bit Error Rate Testers
- ↳ Logic Analyzers
- ↳ Other Instruments
- ↳ Electronic Loads
- ↳ Frequency Counters
- ↳ Keithley DAQ Data Aquisition Products
- ↳ Other Keithley Instrument Products
- ↳ Other Tektronix Instruments
- ↳ Software
- ↳ TekScope Anywhere
- ↳ SourceXpress
- ↳ SignalVu-PC
- ↳ PWRVIEW
- ↳ KickStart
- ↳ Test Script Builder
- ↳ Drivers and Utility Software
- ↳ LabView Drivers
- ↳ IVI Drivers
- ↳ TekVISA
- ↳ Other and Discontinued Software
- ↳ ExcelLINX
- ↳ IVy
- ↳ Keithley I/O Layer (KIOL)
- ↳ Accessories
- ↳ Test Fixtures
- ↳ Cables and Connectors
- ↳ Instrument Accessories & GPIB
- ↳ Data Acquisition Accessories
- ↳ Picosecond Components and Accessories
- ↳ Remote Instrument Communication (Programming) Examples
- ↳ Application Support
- ↳ Low Current Measurements
- ↳ Low Voltage Measurements
- ↳ Resistivity Measurements
- ↳ Hall Measurements
- ↳ Electrochemistry
- ↳ Solar Cell Measurements
- ↳ Nanotechnology Measurements
- ↳ High Voltage Discretes for Power Switching
- ↳ High Brightness LEDs
- ↳ Memory (Flash, Phase Change, NVM, Resistive)
- ↳ Display Technology (OLED, TFT, Organic Polymer)
- ↳ Organic Device Measurements
- ↳ General Discussion
Who is online
Users browsing this forum: No registered users and 0 guests