Skip to content
Snippets Groups Projects
Commit 81067d19 authored by Juliano Murari's avatar Juliano Murari
Browse files

Change ACCT trigger width PV to be in ms

parent 775453cf
No related branches found
No related tags found
No related merge requests found
...@@ -1197,7 +1197,7 @@ record(ai, "$(P)$(R)TriggerWidthR") ...@@ -1197,7 +1197,7 @@ record(ai, "$(P)$(R)TriggerWidthR")
{ {
field(DTYP, "asynFloat64") field(DTYP, "asynFloat64")
field(INP, "@asyn($(PORT),$(ADDR=0),$(TIMEOUT=1))BCM.ACCT.TRIGGER_WIDTH") field(INP, "@asyn($(PORT),$(ADDR=0),$(TIMEOUT=1))BCM.ACCT.TRIGGER_WIDTH")
field(EGU, "s") field(EGU, "ms")
field(SCAN, "I/O Intr") field(SCAN, "I/O Intr")
} }
......
...@@ -2804,8 +2804,8 @@ int sis8300drvbcm_get_channel_trigger_width(sis8300drv_usr *sisuser, unsigned in ...@@ -2804,8 +2804,8 @@ int sis8300drvbcm_get_channel_trigger_width(sis8300drv_usr *sisuser, unsigned in
return ret; return ret;
} }
// register holds 32-bit unsigned value in 'sampling periods', // register holds 32-bit unsigned value in 'sampling periods',
// function returns double value in seconds // function returns double value in miliseconds
*width = 1.0 / s_sampling_frequency * (double)value; *width = 1.0 / s_sampling_frequency * (double)value * 1000.0;
return ret; return ret;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment