Perform FP and Camera Coordinated Task

Perform FP and Camera Coordinated Task

TITLE		Perform a FP/Camera Coordinated Task

PURPOSE		To perform either an FP central aperature scan, an FP finesse 
		measurement, or an FP finesse optimization. 

DESCRIPTION	This observation program is used to kick off the scheduled 
		function on the FP. Since these functions need data from the 
		camera, it too will be set up. This function then reads the 
		camera, sums all of the intensities into a single number and
		sends the data to the FP. Every so often the status of the 
		algorithm running on the FP is checked for completion and
		any errors.

LP Number 	15

INPUT PARAMETERS
		   Parameter	Description
			#
			1	Parameter Table
					1 = primary
					2 = alternate
					3 = calibration
			2    	Algorithm Type
					1 = Long Finesse Optimization
					2 = Medium Finesse Optimization
					3 = Short Finesse Optimization
					4 = Measure Finesse
					5 = Central Aperature Scan
			3	Filter Wheel Position
			4	Polarizer Wheel Position
			5	Scale factor (1-32000)

				Central Aperture Scan:

			6	Starting DAC value (0-4095)
			7	Scan Interval (1-4095)
			8	Number of Steps (1-549)

				Short Finesse Optimization:

			6	DAC value

				Long or Medium Finesse Optimization:

			6	Check & Correct type
					0 = short
					1 = long
			7	Finesse Op Version
					0 = medium
					1 = long
			8	Recalc dx/dz
					0 = no
					1 = yes
			9	Max # side steps, tweak1 (1-200)
			10	Max # side steps, tweak2 (1-200)
			11	Finesse Op maxt times thru tweak loops (1-20)
			12	Tweak-up noise threshold, tweak1 (0-1000)
					(1000 means skip tweaks)
			13	Tweak-up noise threshold, tweak2 (0-1000)
					(1000 means skip tweaks)
			14	OCC C&C calibration wavelength ("Laser"), integer
					portion, (2000-8000)
			15	OCC C&C calibration wavelength ("Laser"), fractional
					portion, (0-9999)
			Note:  if 0 is entered in fields 14 and 15, the 
				currently defined wavelength will be used	

MODULE NAME	OP_PERFORM_FP_CAMERA_COORD_TASK.C