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.

registerms
0.0000000.000000
1.0000000.000000
2.0000000.000000
3.0000000.000009
4.0000000.000016
5.0000000.000025
6.0000000.000036
7.0000000.000049
8.0000000.000064
9.0000000.000081
10.0000000.000100
11.0000000.000121
12.0000000.000144
13.0000000.000169
14.0000000.000196
15.0000000.000225
16.0000000.000256
17.0000000.000289
18.0000000.000324
19.0000000.000361
20.0000000.000400
21.0000000.000441
22.0000000.000484
23.0000000.000529
24.0000000.000576
25.0000000.000625
26.0000000.000676
27.0000000.000729
28.0000000.000784
29.0000000.000841
30.0000000.000900
31.0000000.000961
32.0000000.001024
33.0000000.001089
34.0000000.001156
35.0000000.001225
36.0000000.001296
37.0000000.001369
38.0000000.001444
39.0000000.001521
40.0000000.001600
41.0000000.001681
42.0000000.001764
43.0000000.001849
44.0000000.001936
45.0000000.002025
46.0000000.002116
47.0000000.002209
48.0000000.002304
49.0000000.002401
50.0000000.002500
51.0000000.002601
52.0000000.002704
53.0000000.002809
54.0000000.002916
55.0000000.003025
56.0000000.003136
57.0000000.003249
58.0000000.003364
59.0000000.003481
60.0000000.003600
61.0000000.003721
62.0000000.003844
63.0000000.003969
64.0000000.004096
65.0000000.004225
66.0000000.004356
67.0000000.004489
68.0000000.004624
69.0000000.004761
70.0000000.004900
71.0000000.005041
72.0000000.005184
73.0000000.005329
74.0000000.005476
75.0000000.005625
76.0000000.005776
77.0000000.005929
78.0000000.006084
79.0000000.006241
80.0000000.006400
81.0000000.006561
82.0000000.006724
83.0000000.006889
84.0000000.007056
85.0000000.007225
86.0000000.007396
87.0000000.007569
88.0000000.007744
89.0000000.007921
90.0000000.008100
91.0000000.008281
92.0000000.008464
93.0000000.008649
94.0000000.008836
95.0000000.009025
96.0000000.009216
97.0000000.009409
98.0000000.009604
99.0000000.009801
100.0000000.010000
101.0000000.010201
102.0000000.010404
103.0000000.010609
104.0000000.010816
105.0000000.011025
106.0000000.011236
107.0000000.011449
108.0000000.011664
109.0000000.011881
110.0000000.012100
111.0000000.012321
112.0000000.012544
113.0000000.012769
114.0000000.012996
115.0000000.013225
116.0000000.013456
117.0000000.013689
118.0000000.013924
119.0000000.014161
120.0000000.014400
121.0000000.014641
122.0000000.014884
123.0000000.015129
124.0000000.015376
125.0000000.015625
126.0000000.015876
127.0000000.016129
128.0000000.016384
129.0000000.016641
130.0000000.016900
131.0000000.017161
132.0000000.017424
133.0000000.017689
134.0000000.017956
135.0000000.018225
136.0000000.018496
137.0000000.018769
138.0000000.019044
139.0000000.019321
140.0000000.019600
141.0000000.019881
142.0000000.020164
143.0000000.020449
144.0000000.020736
145.0000000.021025
146.0000000.021316
147.0000000.021609
148.0000000.021904
149.0000000.022201
150.0000000.022500
151.0000000.022801
152.0000000.023104
153.0000000.023409
154.0000000.023716
155.0000000.024025
156.0000000.024336
157.0000000.024649
158.0000000.024964
159.0000000.025281
160.0000000.025600
161.0000000.025921
162.0000000.026244
163.0000000.026569
164.0000000.026896
165.0000000.027225
166.0000000.027556
167.0000000.027889
168.0000000.028224
169.0000000.028561
170.0000000.028900
171.0000000.029241
172.0000000.029584
173.0000000.029929
174.0000000.030276
175.0000000.030625
176.0000000.030976
177.0000000.031329
178.0000000.031684
179.0000000.032041
180.0000000.032400
181.0000000.032761
182.0000000.033124
183.0000000.033489
184.0000000.033856
185.0000000.034225
186.0000000.034596
187.0000000.034969
188.0000000.035344
189.0000000.035721
190.0000000.036100
191.0000000.036481
192.0000000.036864
193.0000000.037249
194.0000000.037636
195.0000000.038025
196.0000000.038416
197.0000000.038809
198.0000000.039204
199.0000000.039601

 

 

Scorpion Vision Version XII : Build 646 - Date: 20170225
Scorpion Vision Software® is a registered trademark of Tordivel AS.
Copyright © 2000 - 2017 Tordivel AS.