| For spectroscopic flats in the zJ grism you can use the Wolfram lamp that is integrated in the A&G box. Spectroscopic flats in the HK grism are better done as dome flats due to an otherwise present broad absorption feature. The following is for the zJ grism. In order to bring the light from the lamp to the detector, we need to move a mirror in the light path, include a neutral density filter, and switch the Wolfram lamp on. This is done in this order by the three commands
 SYS> agcompSYS> compfilta i (with i=4 or 6 for ND=0.8 or ND=3.0)
 SYS> complamps w
 In the schematic display of the A&G box the changes you have done are drawn. In this representation the light from the sky enters from above, and LIRIS sits below the lower exit (not shown). Now bring LIRIS into spectroscopic mode and do not forget to insert the slit mask you want as well (these slit masks and grisms are currently available). Take N spectroscopic flats. SYS> lspec <grism name> <slit mask name>SYS> multflat liris <N> <int time> "Specflat"
 Once you are done, switch off the lamp, remove the neutral filter and move the mirror out of the beam so that LIRIS can see the sky again: SYS> complamps offSYS> compfilta clear
 SYS> agmirror out
 Hint: The A&G Box can also be configured by means of the Instrument Control Box, instead of from the command line. To this end, in the A&G menu, select the Main ND Filter you desire. In the A&G Observer window, (un-)select the "W" for the Wolfram lamp, then click the gears symbol next to it to switch the lamp on (off). In the Mirror Control section, select Acq/Comp to move the mirror in, or Out to remove it again. Do not forget to remove the ND filter once you are done with the flats.The following is for the HK and K grisms. Telescope pointing to zenith. Open the mirror petals and take the pick-off mirror out of the way 
 SYS> petals openTo switch on the dome flat lampsSYS> agmirror out
 
 SYS> fflamp all onor 
 SYS> fflamp <N> onwhere N is the dome flat lamp number: 1 = 9W, 2 = 25W, 3 = 150W, 4 = 500W and 5 = 500W. 
To switch off the dome flat lamps one can use 
 SYS> fflamp all offor 
 SYS> fflamp <N> offTo close the mirror petals 
 SYS> petals closeGuidelines for specflat exposure times: 
	      
		| Grism | Slit | Light source | Neutral density filter | Exposure time |  
		| lr_zj | l0p65 | W | ND=0.9 (compfiltb 4) | 0.9 s |  
		| lr_hk | l0p65 | Dome flat lamps 1-5 | - | 1.5 s |  
		| mr_k | l0p65 | Dome flat lamps 1-5 | - | 10 s |  
		| hr_j | l0p65 | W | ND=0.6 (compfilta 3) | 1 s |  
		| hr_h | l0p65 | W | ND=0.9 (compfilta 3) | 1 s |  
		| hr_k | l0p65 | Dome flat lamps 1-5 | - | 7 s |  
		| lr_zj | l0p75 | W | ND=1.2 (compfiltb 5) | 1 s |  
		| lr_hk | l0p75 | Dome flat lamps 1-5 | - | 1.3 s |  
		| mr_k | l0p75 | Dome flat lamps 1-5 | - | 7.5 s |  
		| hr_j | l0p75 | W | ND=0.7 (compnd 0.7) | 1 s |  
		| hr_h | l0p75 | W | ND=0.6 (compfilta 3) | 1 s |  
		| hr_k | l0p75 | Dome flat lamps 1-5 | - | 5.5 s |  
		| lr_zj | l1 | W | ND=1.8 (compfilta 5) | 1.5 s |  
		| lr_hk | l1 | Dome flat lamps 1-5 | - | 1 s |  
		| mr_k | l1 | Dome flat lamps 1-5 | - | 5 s |  
		| hr_j | l1 | W | ND=0.8 (compfilta 4) | 1 s |  
		| hr_h | l1 | W | ND=0.9 (compfiltb 4) | 1.5 s |  
		| hr_k | l1 | Dome flat lamps 1-5 | - | 4 s |  
		| lr_zj | l2p5 | W | ND=2.3 (compnd 2.3) | 1 s |  
		| lr_hk | l2p5 | Dome flat lamps 1-3 | - | 1.5 s |  
		| mr_k | l2p5 | Dome flat lamps 1-5 | - | 1.5 s |  
		| hr_j | l2p5 | W | ND=1.8 (compfilta 5) | 0.9 s |  
		| hr_h | l2p5 | W | ND=2.0 (compfiltb 6) | 1 s |  
		| hr_k | l2p5 | Dome flat lamps 1-5 | - | 1 s |  
		| lr_zj | l5 | W | ND=2.6 (compnd 2.6) | 0.9 s |  
		| lr_hk | l5 | Dome flat lamps 3 | - | 1 s |  
		| mr_k | l5 | Dome flat lamps 4-5 | - | 1 s |  
		| hr_j | l5 | W | ND=2.2 (compnd 2.2) | 0.9 s |  
		| hr_h | l5 | W | ND=2.3 (compnd 2.3) | 1.3 s |  
		| hr_k | l5 | Dome flat lamps 1-4 | - | 1 s |  
		| lr_zj | l10 | W | ND=3.0 (compfilta 6) | 1 s |  
		| lr_hk | l10 | Dome flat lamps 1-2 | - | 2.2 s |  
		| mr_k | l10 | Dome flat lamps 4 | - | 1.1 s |  
		| hr_j | l10 | W | ND=2.6 (compnd 2.6) | 1 s |  
		| hr_h | l10 | W | ND=3.0 (compfilta 6) | 1.5 s |  
		| hr_k | l10 | Dome flat lamps 1-3 | - | 1.5 s |  This gives you a level of about 20 000 counts.  |