Skip to content
Snippets Groups Projects
Commit 481c3c03 authored by Alexandre MALFREYT's avatar Alexandre MALFREYT
Browse files

fix: update format for channel attributes to use three decimal digits (%5.3f)

parent 95ee1b8b
No related branches found
No related tags found
1 merge request!4develop -> main
...@@ -451,7 +451,7 @@ void SingleShotAO::init_device() ...@@ -451,7 +451,7 @@ void SingleShotAO::init_device()
dai_channel.tai.max_value = "10.0"; dai_channel.tai.max_value = "10.0";
dai_channel.tai.min_value = "-10.0"; dai_channel.tai.min_value = "-10.0";
dai_channel.tai.description = "Output value for channel " + oss.str() + " (in measurementUnit)."; dai_channel.tai.description = "Output value for channel " + oss.str() + " (in measurementUnit).";
dai_channel.tai.format = "%2.1f"; dai_channel.tai.format = "%5.3f";
dai_channel.cdb = false; dai_channel.cdb = false;
//- read callback //- read callback
...@@ -488,7 +488,7 @@ void SingleShotAO::init_device() ...@@ -488,7 +488,7 @@ void SingleShotAO::init_device()
dai_speed.tai.standard_unit = "V/s"; dai_speed.tai.standard_unit = "V/s";
dai_speed.tai.display_unit = "V/s"; dai_speed.tai.display_unit = "V/s";
dai_speed.tai.description = "Speed for ramp generation, in V/s. If speed is NULL, no ramp generated but direct write on channel output " + oss.str() + " (in measurementUnit)."; dai_speed.tai.description = "Speed for ramp generation, in V/s. If speed is NULL, no ramp generated but direct write on channel output " + oss.str() + " (in measurementUnit).";
dai_speed.tai.format = "%2.1f"; dai_speed.tai.format = "%5.3f";
//- cleanup tango db option: cleanup tango db when removing this dyn. attr. (i.e. erase its properties from db) //- cleanup tango db option: cleanup tango db when removing this dyn. attr. (i.e. erase its properties from db)
dai_speed.cdb = false; dai_speed.cdb = false;
...@@ -521,7 +521,7 @@ void SingleShotAO::init_device() ...@@ -521,7 +521,7 @@ void SingleShotAO::init_device()
dai_initial.tai.standard_unit = "V"; dai_initial.tai.standard_unit = "V";
dai_initial.tai.display_unit = "V"; dai_initial.tai.display_unit = "V";
dai_initial.tai.description = "Initial value for ramp function, in V. Defaults to last written value in channel attribute " + oss.str() + "."; dai_initial.tai.description = "Initial value for ramp function, in V. Defaults to last written value in channel attribute " + oss.str() + ".";
dai_initial.tai.format = "%2.1f"; dai_initial.tai.format = "%5.3f";
//- cleanup tango db option: cleanup tango db when removing this dyn. attr. (i.e. erase its properties from db) //- cleanup tango db option: cleanup tango db when removing this dyn. attr. (i.e. erase its properties from db)
dai_initial.cdb = false; dai_initial.cdb = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment