The best place to start is with examples for Analog output and input. If you are using a standard DAQ board (603X, 604X or 607X for input, perhaps a 671X for output), look at the DAQ examples. However, it sounds like you are using an Arb (5411) and a high-speed digitizer (51XX or 5911) in which case you will want to examine the NI-Scope examples for input. There are many examples installed with NI-Scope that will help with triggering and such.
I recommend using a marker output on the Arb to trigger the Scope so you will get more deterministic results than if you triggered on the analog return signal.