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.

Oscilloscope TDS1012B.Getting a waveform in C ++.

Programming examples for remote communication with instruments
C/C++, C#, Python, Matlab, LabVIEW
Post Reply
Yaroslav
Posts: 1
Joined: November 12th, 2018, 4:37 am
Country: Ukraine

Oscilloscope TDS1012B.Getting a waveform in C ++.

Post by Yaroslav » November 12th, 2018, 4:51 am

Hello.
I am currently working with a TDS 1012 oscilloscope. At my university I had a task to write a C ++ program to receive a signal on a PC.
My program should get the points from the oscilloscope and write them to a file or to a buffer.
Maybe someone faced this problem and there is an example.

Dave W
Tektronix Applications
Tektronix Applications
Posts: 277
Joined: April 26th, 2010, 12:01 pm
Country: United States

Re: Oscilloscope TDS1012B.Getting a waveform in C ++.

Post by Dave W » May 15th, 2019, 9:33 am

Hi Yaroslav,

You might refer to the example C# NI-VISA Get Waveform. It's not C++, but C# syntax is very similar to C++ so it shouldn't be too difficult for you to follow and it will at least give you an idea of the commands you need to use to fetch the waveform and the methodology. Since you are in C++ you will need to use the C/C++ VISA API for communication rather than the .NET VISA API. The example at viewtopic.php?t=138632 will at least give you and idea of interacting with the C/C++ VISA API.

Post Reply

Return to “Remote Instrument Communication (Programming) Examples”

Who is online

Users browsing this forum: No registered users and 1 guest