Opened 9 years ago
Closed 9 years ago
#20 closed task (fixed)
Add a new function for calculating chopper parameters from wavelength
Reported by: | zhangjr | Owned by: | zhangjr |
---|---|---|---|
Priority: | major | Milestone: | pre-alpha |
Component: | model | Version: | 0.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Parent ID: | Parent Tickets: | #19 | |
Estimated Number of Hours: | 0.0 | Add Hours to Ticket: | 0 |
Billable?: | yes | Total Hours: | 0 |
Description
According to the wavelength bandwidth (min, max), calculate the frequency and phase delay of DC1, DC2 and DC3.
Child Tickets
Change History (4)
comment:1 Changed 9 years ago by zhangjr
comment:2 Changed 9 years ago by zhangjr
The call method:
self.tfvalue = TimeFrameModel?()
frequency, lambdaMin, lambdaMax=self.tfvalue.fromWavelength(25.0, 1.0)
pulseList, chopperList, timeList, xList, yList = self.tfvalue.TimeFrameCalculation?(frequency, lambdaMin, lambdaMax)
DC1frequency, DC2frequency, DC3frequency, DC1phase, DC2phase, DC3phase = self.tfvalue.ChopperCalculation?(frequency, lambdaMin, lambdaMax)
comment:3 Changed 9 years ago by yanll
Add a subticket #24.
comment:4 Changed 9 years ago by zhangjr
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
1) change name from "class TimeFrameCalculation?" to "class TimeFrameModel?"
2) add function "TimeFrameCalculation?(self, frequency, lambdaMin, lambdaMax):" calculate Time Frame from lambda.
3) add function "ChopperCalculation?(self, frequency, lambdaMin, lambdaMax):" calculate chopper setting from lambda.
4) add function "fromWavelength(self, frequency=25.0, lambdaMin=1.0, lambdaMax=5.0):" and "fromChopper(self, DC1freqency=25, DC1phase=0.0, DC2freqency=25, DC2phase=0.0, DC3freqency=25, DC3phase=0.0):" calculate lambdaMin and lambdaMax.