Hanswurst,
have a look at /Help/examples or /Help/FindExamples.
Depending on the kind of driver that you have installed, you may take a look at something like this one: HP34401A App. Example.vi
Basically it configures the measurement, configures the trigger and performs the actual measurement. All you have to add is the filewrite (function File-I/O > Write to spreadsheet file) and a graph (element Graph > waveform graph).
If you are interested in a more online-display, put the actual measurement and the storage&display into a loop.
HTH and
Greetings from Germany!
--
Uwe Frenz