Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
F
FMC TDC 1ns 5cha
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 9
    • Issues 9
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Wiki
    • Wiki
  • image/svg+xml
    Discourse
    • Discourse
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Commits
  • Issue Boards
  • Projects
  • FMC TDC 1ns 5cha
  • Issues
  • #1

Closed
Open
Opened Jan 13, 2022 by Adam Wujek@awujek💬
  • Report abuse
  • New issue
Report abuse New issue

fmc-fdelay-pulse by default does not set pulse width to 50%

According to the help, if parameter -w is not set, the width is set to 50% by default "like period; defaults to 50% period". Unfortunately, it is always set to 1us.

In the below example, the pulse width is set to 1us, not to 50ns

$ fmc-fdelay-pulse -d 0x12 -v -o 1 -T 100n
Parsed times:
  start time:        1941:000,000,000,000 ps
  pulse width:          0:000,001,000,000 ps
  period:               0:000,000,100,000 ps
Channel 1: pulse generator mode
  start at:               1941:000,000,000,000 ps
  pulse width:               0:000,001,000,000 ps
  repeat:                    infinite
  period:                    0:000,000,100,000 ps
$ fmc-fdelay-pulse -h
   -d <dev>        device ID (hexadecimal)
   -o <output>     ouput channel: 1..4 (default 1)
   -c <count>      default is 0 and means forever
   -m <mode>       "pulse" (default), "delay", "disable"
   -r <reltime>    relative time,  e.g. "10m+20u" -- use m,u,n,p and add/sub
   -D <date>       absolute time, <secs>:<nano>
   -T <period>     period, e.g. "50m-20n" -- use m,u,n,p and add/sub
   -w <width>      like period; defaults to 50% period
   -t              wait for trigger before exiting
   -p              pulse per seconds (sets -D -T -w)
   -1              10MHz (sets -D -T -w)
   -v              verbose (report action)

This bug does not fail python tests.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
No due date
0
Labels
None
Assign labels
  • View project labels
Reference: project/fmc-tdc#1