APS-USAXS / usaxs-bluesky-ended-2023

Bluesky instrument for USAXS
0 stars 0 forks source link

test undulator device #65

Closed prjemian closed 6 years ago

prjemian commented 6 years ago

related to #57

prjemian commented 6 years ago

no device to test today

prjemian commented 6 years ago

the test:

In [29]: und_us = ApsUndulator("ID09us:", name="und_us")
    ...: und_ds = ApsUndulator("ID09ds:", name="und_ds")
    ...: 
    ...: 

In [30]: und_ds.read()
Out[30]: 
OrderedDict([('und_ds_energy',
              {'value': 21.169339179992676, 'timestamp': 1533710378.455969}),
             ('und_ds_energy_taper',
              {'value': 0.0065746307373046875,
               'timestamp': 1533766657.947848}),
             ('und_ds_gap',
              {'value': 17.064125000000004, 'timestamp': 1533766657.947848}),
             ('und_ds_gap_taper',
              {'value': 0.0031333445886581046,
               'timestamp': 1533766657.947848}),
             ('und_ds_start_button',
              {'value': 1, 'timestamp': 1533643975.729227}),
             ('und_ds_stop_button',
              {'value': 1, 'timestamp': 1533562341.404272}),
             ('und_ds_harmonic_value',
              {'value': 3.0, 'timestamp': 1532437523.855283}),
             ('und_ds_gap_deadband',
              {'value': 0.0, 'timestamp': 1526480797.094669}),
             ('und_ds_device_limit',
              {'value': 13.0, 'timestamp': 1533767927.652178}),
             ('und_ds_access_mode',
              {'value': 0, 'timestamp': 1533643949.879105}),
             ('und_ds_device_status',
              {'value': 0, 'timestamp': 1533644145.579782}),
             ('und_ds_total_power',
              {'value': 1587.9429706449007, 'timestamp': 1533768047.552606}),
             ('und_ds_message1',
              {'value': 'Device At Destination',
               'timestamp': 1533644145.579782}),
             ('und_ds_message2',
              {'value': '', 'timestamp': 1533643975.729227}),
             ('und_ds_message3', {'value': '', 'timestamp': 631152000.0}),
             ('und_ds_time_left', {'value': 0.0, 'timestamp': 631152000.0}),
             ('und_ds_device',
              {'value': 'Undulator_#32_3.3cm',
               'timestamp': 1526557562.035586}),
             ('und_ds_location',
              {'value': 'Sector #09 Downstream ID',
               'timestamp': 1526480797.161336}),
             ('und_ds_version',
              {'value': '4.21', 'timestamp': 1526480797.094669})])