Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AWG control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
whuie2
AWG control
Commits
c7691b0d
Commit
c7691b0d
authored
3 years ago
by
whuie2
Browse files
Options
Downloads
Patches
Plain Diff
add some whitespace
parent
6c35dddb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
createTweezers.m
+7
-0
7 additions, 0 deletions
createTweezers.m
with
7 additions
and
0 deletions
createTweezers.m
+
7
−
0
View file @
c7691b0d
...
...
@@ -4,18 +4,23 @@ if ~exist('awg_trap', 'var') || ~isfield(awg_trap, 'running') || ~awg_trap.runni
awg_trap
.
active_channels
=
[
1
,
1
,
0
,
0
];
% Here you set which channels of the AWG you are using.
% Note that the only available options are 1, 1+2, 1+2+3+4
awg_trap
.
chAmp
=
[
2500
,
1320
,
2500
,
2500
];
% mVp. Max possible 2500mVp, min 80mVp.
awg_trap
.
samplerate
=
614.4e6
;
% Maximum of 625e6, must be multiple of 512
awg_trap
.
numMemBlocks
=
8192
;
% Must be power of 2. In general, for the maximum array size
% you want to rearrange with BubbleSort, N, this should be at least N*(N+2).
% If not using BubbleSort just set to maybe 32.
awg_trap
.
freq_resolution
=
100e3
;
% GCD of trap frequencies. If you make an array with a different
% frequency resolution, then it might fail because when the waveform
% tries to loop there will be a phase jump (which kills the atoms)
awg_trap
.
memSamples
=
512
*
240
;
% Define memory in number of samples.
% First factor must be 512. Other factor must be an even integer multiple of
...
...
@@ -23,6 +28,7 @@ if ~exist('awg_trap', 'var') || ~isfield(awg_trap, 'running') || ~awg_trap.runni
% the total memSamples < 2^31/numMemBlocks/numActiveChannels.
% 2^31 comes from the total AWG memory limit. Note that the
% requirements here are again to avoid phase jumps.
awg_trap
.
running
=
false
;
else
fprintf
(
'To change these parameters you must turn the AWG off first!\n'
);
...
...
@@ -99,3 +105,4 @@ fprintf('AWG is currently on step %d\n',currentStep);
% working with multiple AWGs
mRegs
=
spcMCreateRegMap
();
error
=
spcm_dwSetParam_i32
(
awg_trap
.
cardInfo
.
hDrv
,
mRegs
(
'SPC_CARDIDENTIFICATION'
),
0
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment