Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to clear oscilliscope screen with iviscope driver

I would like to have the scope clear its screen prior to starting a new aquasistion.  I have not been able to find a function to cause the screen to clear.

 

My reason is because my program make repeated runs to capture the same/similar data.  So if it fails to trigger it is not very clear because the previous trace is still showing.  The program works fine though and doesn't pull in the old data.

0 Kudos
Message 1 of 2
(4,077 Views)

The IviScope class driver will not have that function. You should check the instrument's programming manual to find the right command to send to instrument to clear the screen.

 

However, if you are using the class driver in your application, there is no function within a class driver to make direct I/O calls. Using direct I/O functions from the specific driver (such as the Read/Write Instrument Data functions under Instrument I/O) will serve this purpose. That however adversely impacts interchangeability. In LabWindows/CVI, a user will need to call the "[IviClass]_GetSpecificDriverCHandle" function which "...returns the C session instrument handle you use to call the specific driver's functions."  This is explained in the following IVI Foundation educational video: http://www.youtube.com/watch?v=hQ7dRhjhYKI

0 Kudos
Message 2 of 2
(4,055 Views)