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.

Search found 796 matches

by Carl M
August 28th, 2018, 10:00 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python - Error VI_ERROR_INV_OBJECT while trying examples
Replies: 1
Views: 6413

Re: Python - Error VI_ERROR_INV_OBJECT while trying examples

VI_ERROR_INV_OBJECT is an error from the VISA api. I would try removing TekVISA and pyvisa-py and give NI-VISA a go.
by Carl M
August 14th, 2018, 4:35 pm
Forum: Non- Windows Based Oscilloscopes
Topic: [DPO 4104B] readfile with raw socket
Replies: 4
Views: 9540

Re: [DPO4104B] readfile with raw socket

Raw sockets is tricky because computer networking is by design asynchronous and data can be fragmented. TCP guarantees that you will get the data in the exact order it was sent but the data can still be split up into countless pieces and you are never sure how long it will take. Raw socket control o...
by Carl M
June 19th, 2018, 11:50 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python Make SEQX (ElementTree API)
Replies: 0
Views: 5296

Python Make SEQX (ElementTree API)

The Tektronix SEQX is a zip archive that contains 1 or more sequences (SML files) and optionally WFMX waveforms. This is intended to provide all channel assets (waveforms/sequences) defining a signal into a single file. SML files are an XML file that describes a sequence. Referenced assets are autom...
by Carl M
June 11th, 2018, 4:31 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python Make WFMX (ElementTree API)
Replies: 0
Views: 5250

Python Make WFMX (ElementTree API)

This is a proof-of-concept example for user created WFMX files. WFMX is the native waveform container for the Tektronix AWG70000 and AWG5200 series arbitrary waveform generators and SourceXpress arbitrary waveform generator software. The Tektronix WFMX structure is extensible but not complex. It sta...
by Carl M
February 26th, 2018, 3:31 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: Access DPO 2024B Measurement data to PC
Replies: 1
Views: 7589

Re: Access DPO 2024B Measurement data to PC

there are two groups of programmatic measurement commands; MEASUREMENT:IMMED and MESUREMENT:MEAS<x>. i discuss the difference in my post https://forum.tek.com/viewtopic.php?t=136954#p276299. to answer you directly, "MESUREMENT:MEAS<x>:VALUE?" where x is the measurement slot. i recommend you consider...
by Carl M
February 26th, 2018, 3:20 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: Incomplete Hardcopy Retrieved from TBS 1052B-EDU
Replies: 2
Views: 9454

Re: Incomplete Hardcopy Retrieved from TBS 1052B-EDU

the bytes of the file that comprise the screen capture in BMP format are likely getting terminated early because of a linefeed character. This typically happens when you perform ASCII operations on binary data. You could confirm this with a VISA trace. IIRC, your TVA object has a ReadToFile() method...
by Carl M
February 26th, 2018, 3:09 pm
Forum: Programming Support
Topic: Fastframe remote acquistion with DPO 5XXX scope
Replies: 2
Views: 9574

Re: Fastframe remote acquistion with DPO 5XXX scope

The example you reference demonstrates how to programmatically read sample values (curve?) of a FastFrame acquisition. It does little else. Generally speaking, I recommend developing your test procedure from the front panel, then cross referencing the programmer manual to automate it. While the fron...
by Carl M
September 7th, 2017, 1:02 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: need help to get hardcopy using tekvisanet
Replies: 7
Views: 15641

Re: need help to get hardcopy using tekvisanet

my guess is the data from the oscilloscope fine and the code is changing it (e.g. string to bytes, should just be bytes) but i'm not familiar enough with the tekvisanet library to know how to correct it. We have a hardcopy C# example using the NI-VISA .net control: https://forum.tek.com/viewtopic.ph...
by Carl M
September 6th, 2017, 5:23 pm
Forum: Programming Support
Topic: Get SRQ with a signal trigger
Replies: 2
Views: 12177

Re: Get SRQ with a signal trigger

please note that the operation complete bit is only set with single shot acquisitions. SRQ will not occur if the operation complete bit does not get set.
by Carl M
July 31st, 2017, 12:48 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: modifying Python: TBS Simple Plot
Replies: 1
Views: 9897

Re: modifying Python: TBS Simple Plot

code examples are intended to demonstrate. if you wish to modify but have questions, please start a new topic and be specific. Default setup and auto-set are compromises for convenience. adding a second channel is beyond scope of the example but the example does provide a place to start. changing th...
by Carl M
May 31st, 2017, 11:18 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python: TBS Simple Plot
Replies: 1
Views: 13269

Re: Python: TBS Simple Plot

i've made a small update. immediately after creating the instrument object (which implicitly connects) the default parameters work but aren't technically correct. scope.encoding = 'latin_1' # default 'ascii' scope.read_termination = '\n' # default None scope.write_termination = None # default '\r\n'...
by Carl M
May 31st, 2017, 11:17 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python: MDO Simple Plot
Replies: 3
Views: 16295

Re: Python: MDO Simple Plot

i've made a small update. immediately after creating the instrument object (which implicitly connects) the default parameters work but aren't technically correct. scope.encoding = 'latin_1' # default 'ascii' scope.read_termination = '\n' # default None scope.write_termination = None # default '\r\n'...
by Carl M
April 14th, 2017, 4:54 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: copy and playback applicaiton with python and TDS2014B and AFG3102
Replies: 1
Views: 11092

Re: copy and playback applicaiton with python and TDS2014B and AFG3102

what you are trying to do is actually rather advanced and there are multiple ways to do it but it'll boil down to your specific requirements and personal preference. i'm no master either so i'm constantly referencing the python library reference: https://docs.python.org/3/library/index.html. i've mo...
by Carl M
March 20th, 2017, 11:26 am
Forum: Other or Discontinued Oscilloscopes
Topic: Error in code:SigType1_Sine_1K_90deg_ino
Replies: 3
Views: 15882

Re: Error in code:SigType1_Sine_1K_90deg_ino

@daplets - the code you posted is in error. the code included with the download is correct. i suggest you download a new copy: http://www.tek.com/lab-course/learn-digital-oscilloscope-operations-using-arduino-board-dut-signal-generator @israelsteel - this happens when you use Arduino IDE v1.6.12 or ...
by Carl M
January 27th, 2017, 4:54 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: python 3 afg3k afg2k send wfm
Replies: 0
Views: 8907

python 3 afg3k afg2k send wfm

a port of the MATLAB example AFG3000 MATLAB ICT Send Waveform 1: https://forum.tek.com/viewtopic.php?f=569&t=133567#p282128 should work in python 2 as well # afg3k_send_wfm_1.py # # date: 01-27-2017 # # demonstrate 'data:define' and 'data' remote programmatic commands for the # AFG3000 series and AF...
by Carl M
January 25th, 2017, 4:57 pm
Forum: Older and Obsolete Signal Sources
Topic: AFG3000 MATLAB ICT Send Waveform 1
Replies: 3
Views: 33920

Re: AFG3000 MATLAB ICT Send Waveform 1

rewrite to show normalization to dac values as discussed in topic: https://forum.tek.com/viewtopic.php?f=529&t=139184#p282112 %% AFG3000 MATLAB ICT Send Waveform 1 %{ date: 01-25-2017 demonstrate 'data:define' and 'data' remote programmatic commands for the AFG3000 series and AFG2000 series. The dat...
by Carl M
January 24th, 2017, 5:53 pm
Forum: AFG1000/2000/3000 series
Topic: AFG3151C transfer Pseudo Random Binary Sequence(PRBS) waveform(Square wave) using Matlab
Replies: 3
Views: 17625

Re: AFG3151C transfer Pseudo Random Binary Sequence(PRBS) waveform(Square wave) using Matlab

The data following the binary block header is unsigned 16-bit integer values, most significant byte first (big-endian). Bits 15 and 16 are ignored as the AFG has 14-bits of dynamic range. The key concept is the digital values are unit-less. Value 0 is the minimum output and value 16382 is the maximu...
by Carl M
June 28th, 2016, 6:08 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python: TBS Simple Plot
Replies: 1
Views: 13269

Python: TBS Simple Plot

Slight modification of the Python: MDO Simple Plot to accommodate TDS2k, TPS2k and TBS1k series oscilloscopes. This code example provides meaningful output (i.e. a scaled waveform plot) as simply as possible without bad practices. It is useful for testing the installation and configuration of a Pyth...
by Carl M
June 28th, 2016, 6:03 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python: MDO Simple Plot
Replies: 3
Views: 16295

Python: MDO Simple Plot

This example supersedes the Python Example: Get and Plot Waveform DPO4000 . This code example provides meaningful output (i.e. a scaled waveform plot) as simply as possible without bad practices. It is useful for testing the installation and configuration of a Python environment for development of r...
by Carl M
June 15th, 2016, 11:43 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python 3: Save Hardcopy to PC, PyVISA - MSO/DPO 5K 7K 70K Series Scopes
Replies: 2
Views: 13799

Re: Save Hardcopy to PC, PyVisa - MSO/DPO 5K 7K 70K Series Scopes

my personal preference is to setup the instrument with a mapped network share and save directly to that.

Go to advanced search