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 790 matches

by Carl M
January 29th, 2019, 11:44 am
Forum: Programming Support
Topic: Hardcopy, Ethernet and C# on MDO3024
Replies: 5
Views: 2553

Re: Hardcopy, Ethernet and C# on MDO3024

The hardcopy command isn't supported on raw socket connections. To get screen captures without VISA or VXI-11, you might try accessing eScope, the web server on the instrument. HTTP client libraries are readily available. I don't know how to do it in C# but in Python 3 it is the following import url...
by Carl M
January 14th, 2019, 1:52 pm
Forum: Windows Based Oscilloscopes
Topic: Data Acquisition with Fast Frame
Replies: 3
Views: 1874

Re: Data Acquisition with Fast Frame

For the DPO7354C, the trigger system is analog and asynchronous to the acquisition system allowing you to trigger on a channel without actually sampling it (and reducing the acquisition burden). In FastFrame mode, time accuracy between frames is maintained with a high resolution counter, not the ind...
by Carl M
January 11th, 2019, 12:30 pm
Forum: Windows Based Oscilloscopes
Topic: Data Acquisition with Fast Frame
Replies: 3
Views: 1874

Re: Data Acquisition with Fast Frame

FastFrame mode decreases the trigger rearm time significantly by using all available record to buffer multiple small acquisitions. This also defers post acquisition tasks while still maintaining precision timing between trigger events. It is a great boon in laser diode research where pulses are shor...
by Carl M
November 26th, 2018, 10:26 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python3 PPG User Pattern Long
Replies: 0
Views: 1536

Python3 PPG User Pattern Long

PPG maximum record is 4,194,304 bits for a one-channel instrument and 2,097,152 bits for a two-channel or four-channel instrument. Long patterns require slicing into multiple write calls. This example demonstrates efficient division of a long user pattern. # Python3 PPG User Pattern Long # https://w...
by Carl M
November 26th, 2018, 9:12 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python3 PPG User Pattern
Replies: 0
Views: 1376

Python3 PPG User Pattern

Demonstration of the digital[1|2|3|4]:pattern:data and digital[1|2|3|4]:pattern:hdata commands for uploading user pattern data to the PPG # Python3 PPG User Pattern # https://www.tek.com/sample-license # two commands are available for loading user patterns # digital[1|2|3|4]:pattern:data # pattern d...
by Carl M
November 26th, 2018, 9:10 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python3 PPG Simple
Replies: 0
Views: 1386

Python3 PPG Simple

A simplistic example of PPG communication and control. # Python3 PPG Simple # https://www.tek.com/sample-license # basic PPG communication and control import time # std module import visa # http://github.com/pyvisa/pyvisa visa_address = 'USB::0x0699::0x3132::9211157::INSTR' # instrument communicatio...
by Carl M
November 26th, 2018, 9:01 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python3 LE320 Two-unit Control
Replies: 0
Views: 1364

Python3 LE320 Two-unit Control

This example demonstrates how to establish simultaneous connections to two LE320 units. LE API is a proprietary WIN32COM module included with the control software; https://www.tek.com/bit-error-rate-tester/le320-software-0 Note: the win32com module is 32-bit only, your custom application must be a 3...
by Carl M
November 26th, 2018, 8:49 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python3 MDO3AFG,MDO4AFG Send Arb
Replies: 0
Views: 1369

Python3 MDO3AFG,MDO4AFG Send Arb

This example makes use of the afg:arbitrary:emem:points command to send a PRBS7 to the built-in arb. # Python3 MDO3AFG,MDO4AFG Send Arb # https://www.tek.com/sample-license # make a prbs7 and upload it to the MDO3000 series or # MDO4000 series built-in arb import re import time import visa # https:/...
by Carl M
November 7th, 2018, 10:36 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: fca3000 can't set continuos measurement for both channel
Replies: 1
Views: 2339

Re: fca3000 can't set continuos measurement for both channel

be sure to check the event status register (*esr?) to check for errors on the instrument end. if the reply is non-zero, read the event messages with system:error? until the instrument replies "no error"
by Carl M
October 1st, 2018, 11:56 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python Read WFM File (oscilloscope)
Replies: 2
Views: 3462

Re: Python Read WFM File (oscilloscope)

expected output of sample wfm files
demo1.png
demo1.png (75.04 KiB) Viewed 3459 times
demo4.png
demo4.png (39.33 KiB) Viewed 3459 times
demo3.png
demo3.png (49.65 KiB) Viewed 3459 times
demo2.png
demo2.png (66.38 KiB) Viewed 3459 times
by Carl M
October 1st, 2018, 11:51 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python Read WFM File (oscilloscope)
Replies: 2
Views: 3462

Re: Python Read WFM File (oscilloscope)

You can download all code, example waveforms, and screencaptures of expected output in a single zip archive: https://fortive.box.com/shared/static/iw36zi9ihz6cszg1esuhlvio3qwg9t7x.zip # tekwfm.py usage examples import time import matplotlib.pyplot as plt # https://matplotlib.org/ import numpy as np ...
by Carl M
October 1st, 2018, 11:48 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python Read WFM File (oscilloscope)
Replies: 2
Views: 3462

Python Read WFM File (oscilloscope)

This is a proof-of-concept module and examples demonstrating extraction of voltage vs time records from little-endian version 3 *.WFM files. It also supports FastFrame records and the trigger time stamp information. For a full definition of the Tektornix oscilloscope *.WFM file, refer to the Perform...
by Carl M
August 30th, 2018, 1:31 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python Read/Write AFG TFW
Replies: 0
Views: 2198

Python Read/Write AFG TFW

Tektronix AFGs use TFW files to store shape-data (i.e. sample vector). It is a simplistic binary consisting of a 512 byte header followed by a series of 2-byte unsigned big-endian values. The header contains some static identifiers, the number of samples, and an optional waveform envelope used for t...
by Carl M
August 28th, 2018, 11:25 am
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python: MDO Simple Plot
Replies: 2
Views: 11172

Re: Python: MDO Simple Plot

updates to record length detection and data encoding. tested with 5 and 6 series MSOs. 'data:encoding SRIBINARY' for signed little endian dac values FASTEST is depreciated, encoding has trivial impact on performance record length now queried from 'horizontal:recordlength', not 'wfmoutpre:nr_pt' wfmo...
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: 2877

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: 4832

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: 2912

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: 2796

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: 4800

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: 6003

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...

Go to advanced search