| 
	 UNIBRAIN drivers are stable and good drivers, but lack the ability to 
	provide persistent camera settings 
	when they are specified in the camera dialog.  We expect this issue to be 
	resolved in the near future, but in the meantime we will have to
	resort to a hack, or workaround, in order to set the shutter with the value we 
	want - and ensuring that the value will not be lost between Scorpion 
	sessions. 
	The workaround is to load the shutter value straight into the camera 
	flash memory using camera register access over the 1394 bus. 
	The driver never knows what is going on when we apply this hack, so 
	camera dialog settings will not reflect the actual shutter value 
	as found in the camera after the operation has completed. 
	In the previous chapter we learned how to add a 
	command sequence for the 
	BeforeStart Event. 
	We will now expand the command sequence with: 
	
		
			| Command | 
			Parameters | 
			Explanation | 
		 
		
			| SetImageProp   | 
			imageno=1;0xF0F0081C=-2113928959 | 
			Prepare the camera for an update of the shutter 
			value | 
		 
		
			| SetImageProp   | 
			imageno=1;shutter=63 | 
			Set the shutter value using a register parameter | 
		 
	 
	A lookup table is presented below with relevant register values and 
	corresponding shutter values. 
	The table is generated using a python 
	module, sonyutils.py, found on the CD.  You can generate your 
	own table.  The example below gives you a hint. 
	
		
			| Use PythonWin and write the following statements: import sonyutils 
	su=sonyutils.xcd710910() 
	su.MakeHtmlTable("shutter table","ms","register",0,0.5,0.001,su.ShutterRegisterValue2RealValue) 
			 | 
		 
	 
	As can be seen from highlighted row in the table below, a shutter register value of 63 
	equals a shutter value of 4ms. 
| register | ms |  | 0.000000 | 0.000000 |  | 1.000000 | 0.000000 |  | 2.000000 | 0.000000 |  | 3.000000 | 0.000009 |  | 4.000000 | 0.000016 |  | 5.000000 | 0.000025 |  | 6.000000 | 0.000036 |  | 7.000000 | 0.000049 |  | 8.000000 | 0.000064 |  | 9.000000 | 0.000081 |  | 10.000000 | 0.000100 |  | 11.000000 | 0.000121 |  | 12.000000 | 0.000144 |  | 13.000000 | 0.000169 |  | 14.000000 | 0.000196 |  | 15.000000 | 0.000225 |  | 16.000000 | 0.000256 |  | 17.000000 | 0.000289 |  | 18.000000 | 0.000324 |  | 19.000000 | 0.000361 |  | 20.000000 | 0.000400 |  | 21.000000 | 0.000441 |  | 22.000000 | 0.000484 |  | 23.000000 | 0.000529 |  | 24.000000 | 0.000576 |  | 25.000000 | 0.000625 |  | 26.000000 | 0.000676 |  | 27.000000 | 0.000729 |  | 28.000000 | 0.000784 |  | 29.000000 | 0.000841 |  | 30.000000 | 0.000900 |  | 31.000000 | 0.000961 |  | 32.000000 | 0.001024 |  | 33.000000 | 0.001089 |  | 34.000000 | 0.001156 |  | 35.000000 | 0.001225 |  | 36.000000 | 0.001296 |  | 37.000000 | 0.001369 |  | 38.000000 | 0.001444 |  | 39.000000 | 0.001521 |  | 40.000000 | 0.001600 |  | 41.000000 | 0.001681 |  | 42.000000 | 0.001764 |  | 43.000000 | 0.001849 |  | 44.000000 | 0.001936 |  | 45.000000 | 0.002025 |  | 46.000000 | 0.002116 |  | 47.000000 | 0.002209 |  | 48.000000 | 0.002304 |  | 49.000000 | 0.002401 |  | 50.000000 | 0.002500 |  | 51.000000 | 0.002601 |  | 52.000000 | 0.002704 |  | 53.000000 | 0.002809 |  | 54.000000 | 0.002916 |  | 55.000000 | 0.003025 |  | 56.000000 | 0.003136 |  | 57.000000 | 0.003249 |  | 58.000000 | 0.003364 |  | 59.000000 | 0.003481 |  | 60.000000 | 0.003600 |  | 61.000000 | 0.003721 |  | 62.000000 | 0.003844 |  
	| 63.000000 | 0.003969 |  | 64.000000 | 0.004096 |  | 65.000000 | 0.004225 |  | 66.000000 | 0.004356 |  | 67.000000 | 0.004489 |  | 68.000000 | 0.004624 |  | 69.000000 | 0.004761 |  | 70.000000 | 0.004900 |  | 71.000000 | 0.005041 |  | 72.000000 | 0.005184 |  | 73.000000 | 0.005329 |  | 74.000000 | 0.005476 |  | 75.000000 | 0.005625 |  | 76.000000 | 0.005776 |  | 77.000000 | 0.005929 |  | 78.000000 | 0.006084 |  | 79.000000 | 0.006241 |  | 80.000000 | 0.006400 |  | 81.000000 | 0.006561 |  | 82.000000 | 0.006724 |  | 83.000000 | 0.006889 |  | 84.000000 | 0.007056 |  | 85.000000 | 0.007225 |  | 86.000000 | 0.007396 |  | 87.000000 | 0.007569 |  | 88.000000 | 0.007744 |  | 89.000000 | 0.007921 |  | 90.000000 | 0.008100 |  | 91.000000 | 0.008281 |  | 92.000000 | 0.008464 |  | 93.000000 | 0.008649 |  | 94.000000 | 0.008836 |  | 95.000000 | 0.009025 |  | 96.000000 | 0.009216 |  | 97.000000 | 0.009409 |  | 98.000000 | 0.009604 |  | 99.000000 | 0.009801 |  | 100.000000 | 0.010000 |  | 101.000000 | 0.010201 |  | 102.000000 | 0.010404 |  | 103.000000 | 0.010609 |  | 104.000000 | 0.010816 |  | 105.000000 | 0.011025 |  | 106.000000 | 0.011236 |  | 107.000000 | 0.011449 |  | 108.000000 | 0.011664 |  | 109.000000 | 0.011881 |  | 110.000000 | 0.012100 |  | 111.000000 | 0.012321 |  | 112.000000 | 0.012544 |  | 113.000000 | 0.012769 |  | 114.000000 | 0.012996 |  | 115.000000 | 0.013225 |  | 116.000000 | 0.013456 |  | 117.000000 | 0.013689 |  | 118.000000 | 0.013924 |  | 119.000000 | 0.014161 |  | 120.000000 | 0.014400 |  | 121.000000 | 0.014641 |  | 122.000000 | 0.014884 |  | 123.000000 | 0.015129 |  | 124.000000 | 0.015376 |  | 125.000000 | 0.015625 |  | 126.000000 | 0.015876 |  | 127.000000 | 0.016129 |  | 128.000000 | 0.016384 |  | 129.000000 | 0.016641 |  | 130.000000 | 0.016900 |  | 131.000000 | 0.017161 |  | 132.000000 | 0.017424 |  | 133.000000 | 0.017689 |  | 134.000000 | 0.017956 |  | 135.000000 | 0.018225 |  | 136.000000 | 0.018496 |  | 137.000000 | 0.018769 |  | 138.000000 | 0.019044 |  | 139.000000 | 0.019321 |  | 140.000000 | 0.019600 |  | 141.000000 | 0.019881 |  | 142.000000 | 0.020164 |  | 143.000000 | 0.020449 |  | 144.000000 | 0.020736 |  | 145.000000 | 0.021025 |  | 146.000000 | 0.021316 |  | 147.000000 | 0.021609 |  | 148.000000 | 0.021904 |  | 149.000000 | 0.022201 |  | 150.000000 | 0.022500 |  | 151.000000 | 0.022801 |  | 152.000000 | 0.023104 |  | 153.000000 | 0.023409 |  | 154.000000 | 0.023716 |  | 155.000000 | 0.024025 |  | 156.000000 | 0.024336 |  | 157.000000 | 0.024649 |  | 158.000000 | 0.024964 |  | 159.000000 | 0.025281 |  | 160.000000 | 0.025600 |  | 161.000000 | 0.025921 |  | 162.000000 | 0.026244 |  | 163.000000 | 0.026569 |  | 164.000000 | 0.026896 |  | 165.000000 | 0.027225 |  | 166.000000 | 0.027556 |  | 167.000000 | 0.027889 |  | 168.000000 | 0.028224 |  | 169.000000 | 0.028561 |  | 170.000000 | 0.028900 |  | 171.000000 | 0.029241 |  | 172.000000 | 0.029584 |  | 173.000000 | 0.029929 |  | 174.000000 | 0.030276 |  | 175.000000 | 0.030625 |  | 176.000000 | 0.030976 |  | 177.000000 | 0.031329 |  | 178.000000 | 0.031684 |  | 179.000000 | 0.032041 |  | 180.000000 | 0.032400 |  | 181.000000 | 0.032761 |  | 182.000000 | 0.033124 |  | 183.000000 | 0.033489 |  | 184.000000 | 0.033856 |  | 185.000000 | 0.034225 |  | 186.000000 | 0.034596 |  | 187.000000 | 0.034969 |  | 188.000000 | 0.035344 |  | 189.000000 | 0.035721 |  | 190.000000 | 0.036100 |  | 191.000000 | 0.036481 |  | 192.000000 | 0.036864 |  | 193.000000 | 0.037249 |  | 194.000000 | 0.037636 |  | 195.000000 | 0.038025 |  | 196.000000 | 0.038416 |  | 197.000000 | 0.038809 |  | 198.000000 | 0.039204 |  | 199.000000 | 0.039601 |   
	
	  
     |