hp_get_waveform (ul_scopes)

	status.i4.v = hp_get_waveform(data.r4p.r, channel.i4.v,
				      dev_address.i4.v, num_points.i4.r)

	Get trace data for a channel of an HP 54504 two or four channel
	scope.  The returned data is an (x,y) scaled pair.  The number of
	points in the trace is also returned but there will be 2*points 
	for the number of values returned in data.

	data		returned trace data (data is returned as x,y 
			coordinates and there will be 2 * "num_points"
			values returned)
			(This memory is allocated by this routine and
			 should be freed by the caller.)
	channel		channel to request data for: 
			(HP_CHAN1 -> Channel 1
			 HP_CHAN2 -> Channel 2
			 HP_CHAN3 -> Channel 3
			 HP_CHAN4 -> Channel 4)
	dev_address	address of scope; A previos call to gpib_select()
			will have to be made to establish communication 
			to correct VME.
	num_points	returns the number of points the scope is using

	This function returns ACNET status values as follows:

	OK			success
	CBS_INVARG		invalid device address
	otherwise		other ACNET error

	This function requires the following include files:


	Related functions:

	hp_get_plot_limits, hp_set_channel, 
	hp_set_display, hp_set_root, hp_set_timebase,
	hp_set_trigger, hp_set_utilities, hp_set_waveform

	C/C++ usage:

	int	status;
	int	channel = HP_CHAN1;
	int	dev_address = DEV_ADDRESS;
	int	num_points;
	float	*data;

	status = hp_get_waveform(&data,channel,dev_address,&num_points);