Skip to content

Commit

Permalink
Provide control over the source of the timestamp
Browse files Browse the repository at this point in the history
This allows selecting between getting the timestamp from the camera or
from the system running the IOC.

The system timestamp is obtained from the aravis buffer which was saved on
the reception of the first packet of the image, this is more precise than
timestamping after receiving the full frame.
  • Loading branch information
EmilioPeJu committed Nov 15, 2023
1 parent a2e1441 commit 6a5a251
Show file tree
Hide file tree
Showing 3 changed files with 472 additions and 369 deletions.
21 changes: 21 additions & 0 deletions aravisApp/Db/aravisCamera.template
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,24 @@ record(mbbo, "$(P)$(R)ARShiftBits") {
field(PINI, "1")
info(autosaveFields, "DESC ZRSV ONSV VAL")
}

record(mbbo, "$(P)$(R)TimeStampMode") {
field(DTYP, "asynInt32")
field(OUT, "@asyn($(PORT),$(ADDR=0),$(TIMEOUT=1))ARAVIS_TIME_STAMP_MODE")
field(ZRST, "Camera")
field(ZRVL, "0")
field(ONST, "System")
field(ONVL, "1")
field(PINI, "1")
info(autosaveFields, "VAL")
}

record(mbbi, "$(P)$(R)TimeStampMode_RBV") {
field(DTYP, "asynInt32")
field(INP, "@asyn($(PORT),$(ADDR=0),$(TIMEOUT=1))ARAVIS_TIME_STAMP_MODE")
field(ZRST, "Camera")
field(ZRVL, "0")
field(ONST, "System")
field(ONVL, "1")
field(SCAN, "I/O Intr")
}
Loading

0 comments on commit 6a5a251

Please sign in to comment.