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.

LabVIEW Tek Event Status Register Check

Programming examples for remote communication with instruments
C/C++, C#, Python, Matlab, LabVIEW
Post Reply
Dave W
Tektronix Applications
Tektronix Applications
Posts: 267
Joined: April 26th, 2010, 12:01 pm
Country: United States

LabVIEW Tek Event Status Register Check

Post by Dave W » June 15th, 2016, 3:20 pm

This example is meant to just be a useful VI for use in your own LabVIEW applications. It is good practice between sending commands to the instrument to check the event status register as this can tell you if there was a problem with one of your commands, or if some other problem occurred and can greatly assist with debugging instrument control code.

What this VI does is it checks the instrument's event status register using *ESR? to see if any unexpected events have occurred. If *ESR? returns anything other than 0, then an event has occurred. If an event has occurred, then the VI performs an ALLEV? query to query the events that occurred and places them in the error out terminal.

This example is for LabVIEW 2011 or later.
Tek Event Status Register (ESR) Check.vi
(27.72 KiB) Downloaded 1317 times
Front Panel
Tek Event Status Register (ESR) Check (Block Diagram).vi.png
Tek Event Status Register (ESR) Check (Block Diagram).vi.png (22.76 KiB) Viewed 7317 times
Block Diagram
Tek Event Status Register (ESR) Check (Front Panel).vi.png
Tek Event Status Register (ESR) Check (Front Panel).vi.png (17.4 KiB) Viewed 7317 times

Post Reply

Return to “Remote Instrument Communication (Programming) Examples”

Who is online

Users browsing this forum: No registered users and 0 guests