Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
81b2cde5
Commit
81b2cde5
authored
Jan 18, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes
parent
aa3192c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
raw.py
src/python_tests/raw.py
+8
-2
No files found.
src/python_tests/raw.py
View file @
81b2cde5
...
...
@@ -141,16 +141,18 @@ print("TRIG PERIOD = "+str(trig_period)+" us")
#subprocess.call(cmd,shell=True)
#
# First set the buffer size and mmap
# First set the buffer size and mmap
once
#
for
i
in
sensors
:
size
=
BUF_SIZE
set_sbuf_size
(
i
,
size
)
if
MMAP_DATA
:
print
(
"mmap buffer "
+
str
(
i
))
mmap_data
.
append
(
mmap_pixel_array
(
i
,
BUF_SIZE
*
PAGE_SIZE
))
#
# Get pixel data to from fpga(=video) memory to system memory
# repeat if needed
#
for
i
in
sensors
:
...
...
@@ -170,6 +172,11 @@ for i in sensors:
#ts = get_timestamp_from_meta(i,0)
#print(" timestamp: "+ts)
#
# Save/print after all needed ports are done
#
for
i
in
sensors
:
if
MMAP_DATA
:
# print the first 16 bytes for test purposes
print
(
"test output: "
+
" "
.
join
(
"{:02x}"
.
format
(
get_byte
(
mmap_data
[
i
],
c
))
for
c
in
range
(
16
)))
...
...
@@ -177,7 +184,6 @@ for i in sensors:
else
:
save_pixel_array
(
i
,
"/tmp/port"
+
str
(
i
)
+
".raw"
)
# Restore trigger
#print("Restore trigger")
#cmd = "wget -qO- 'http://127.0.0.1/parsedit.php?sensor_port="+str(trig_master)+"&immediate&TRIG_PERIOD="+str(trig_period)+"*1' &> /dev/null"
...
...
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