Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
python-handel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bliss
python-handel
Commits
a47641b5
Commit
a47641b5
authored
Oct 27, 2017
by
Vincent Michel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add FalconX compatibility to get_raw_buffer
parent
1cae1261
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
handel/interface.py
handel/interface.py
+10
-1
No files found.
handel/interface.py
View file @
a47641b5
...
...
@@ -229,7 +229,16 @@ def get_raw_buffer(master, buffer_id):
data
=
ffi
.
cast
(
'uint32_t *'
,
array
.
ctypes
.
data
)
code
=
handel
.
xiaGetRunData
(
master
,
command
,
data
)
check_error
(
code
)
return
array
[::
2
]
# Check magic number
if
array
[
0
]
==
0
:
raise
RuntimeError
(
"The buffer {} associated with channel {} is empty"
.
format
(
str
(
buffer_id
),
master
))
# XMAP/Mercury
if
array
[
1
]
==
0
:
return
array
[::
2
]
# FalconX
return
array
def
get_buffer_data
(
master
,
buffer_id
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment