Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to initiallize DSO6054A scope with no autoscale

I am trying to read waveforms from the  Agilent DSO6054A oscilloscope.  To initialize the reading, however, I have to run an auto setup VI from the drivers.  Otherwise it doesn't work. 
 
My problem is that I want to capture exactly what is on the screen and allow it to be set up by the user. 
 
The only thing this auto setup VI does is send a GPIB command of :AUT to the scope.  I, unfortunately, have misplaced my resource CD with the listing of GPIB commands.  Is there somewhere online I can get these, or does anyone know offhand how to set up the scope without telling it to autoscale?
 
Thank you.
0 Kudos
Message 1 of 5
(3,886 Views)

You should be able to download a programming manual from Agilent's web site.

I don't have the driver but surely there are functions in there to set vertical, horizontal, coupling, trigger, etc. When you do an autosetup, take note of the scope settings and then use the individual functions in the driver to reproduce the setup.

0 Kudos
Message 2 of 5
(3,876 Views)
If you are wanting to manually setup the scope settings to your likings and then transfer the data, try the following:
 
Initialize (with Reset = False)
Fetch
Close
 
We are in the process of adding a similar example to our instrument driver templates and will begin incorporating into new scope drivers soon.
 
Hobbs
Message 3 of 5
(3,869 Views)

Awesome.  That works very well.  I didn't realize you didn't have to initialize the channels to be read from.

 

One quick question.  If I was wanting to read multiple waveforms, is there an elegant way to have the scope automatically detect which channels are on and read those?  Or is just asking the user for the channels that he / she wants the easiest way to construct the array of channels?

 

Thanks,

 

Z

0 Kudos
Message 4 of 5
(3,861 Views)
The drivers are set up to have the user supply the channels for single or multi-channel acquisition.  I haven't tried it, but there is probably a query command that corresponds to the command that enables the channel.  You could call this command with a VISA Write and query each channel to build your list of which ones are currently enabled.
0 Kudos
Message 5 of 5
(3,850 Views)