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.

Streaming measurement value via visa

Programming examples for remote communication with instruments
C/C++, C#, Python, Matlab, LabVIEW
Post Reply
Posts: 1
Joined: July 20th, 2021, 10:01 am
Country: Israel

Streaming measurement value via visa

Post by nati_unger » July 20th, 2021, 10:10 am

Im using MSO 72004C scope, connected via LAN and my own vb.net wpf application.
To read the measurement value I'm using NationalInstruments.Visa library with this code (as example):

Public rmSession = New NationalInstruments.Visa.ResourceManager()
Public mbSession As MessageBasedSession
mbSession = rmSession.Open(str)
Dim ans As String = mbSession.RawIO.ReadString().Replace("\n", "\\n").Replace("\r", "\\r")
Dim a As Double = Convert.ToDouble(ans)

I want to send a command once, and get measurement value constantly via event handler or a thread that will always read the value without requesting it over and over (with mbSession.RawIO.Write).

I need it to make the acquisition faster in real time.


Post Reply

Return to “Remote Instrument Communication (Programming) Examples”

Who is online

Users browsing this forum: No registered users and 1 guest