Page 1 of 1

LabVIEW Tek Event Status Register Check

Posted: June 15th, 2016, 3:20 pm
by Dave W
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 1728 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 8837 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 8837 times