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

by Carl M
June 11th, 2018, 4:31 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: Python Make WFMX (ElementTree API)
Replies: 0
Views: 4837

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

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

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

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: 3
Views: 14953

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

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

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

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

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

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

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

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

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

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

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

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

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.
by Carl M
October 13th, 2015, 10:18 am
Forum: Older and Obsolete Signal Sources
Topic: SCPI tests without instrument
Replies: 1
Views: 11540

Re: SCPI tests without instrument

The program simulates running, switching outputs on/off etc. a dangerous assumption. it does not. there is no code to provide simulated feedback without the output board. support for offline remote programmatic interface is possible but not supported by default. IIRC the awg software installer dete...
by Carl M
August 17th, 2015, 3:28 pm
Forum: Remote Instrument Communication (Programming) Examples
Topic: Remote Instrument Communication Examples
Replies: 4
Views: 77085

Remote Instrument Communication Examples: LabVIEW

LabVIEW LabVIEW Save Hard Copy to PC - MSO/DPO/MDO 2K 3K 4K & MSO/DPO 5K 7K 70K Series Scopes 8/17/2015 LabVIEW Curve Stream Example - MSO/DPO 5K 7K 70K Series Scopes 12/31/2015 LabVIEW Tek DMM4020 Max Read Speed 3/29/2016 LabVIEW Tek PSM Find Sensors & Measure 6/3/2016 LabVIEW Save Hard Copy to PC...
by Carl M
August 13th, 2015, 8:17 pm
Forum: AFG1000/2000/3000 series
Topic: ARB Express will not write to AFG1022
Replies: 8
Views: 40226

Re: ARB Express will not write to AFG1022

ArbExpress is free (no-cost) software. It is covered under our Software Download Agreement: http://www.tek.com/software/software-download-agreement ArbExpress is only intended to introduce the concept of arbitrary waveforms. typically, customers use MATLAB or Python for advanced waveform synthesis. ...

Go to advanced search