The average acquisition can be done in the NI-SCOPE driver which is used by all of the National Instruments Scopes.  You will need to call NISCOPE_VAL_MULTI_ACQ_AVERAGE, which will keep a running average until the averages are reset from when it was first called.  There are also many other functions that are included in the NI-SCOPE driver.  You can download the driver and take a look at the help file.  I would suggest getting the latest version if you have NI-SCOPE on your computer.
The envelope mode would be a little more complicated.  You could overlay multiple records on the same graph to see the change from each acquistion.  
With a little programming you should be able to reproduce most functions available from the standard scopes.
Good Luck.
Mike Ta
ylor