Is there is any way, one can know the type of record, if I know the PV name.
e.g. I have a analog input record Py:ai1
>>> pv=epics.PV('Py:ai1')
>>> pv.type
'double'
>>> pv.count
1
>>> pv.get_ctrlvars()
{'status': 17, 'lower_disp_limit': 0.0, 'upper_disp_limit': 0.0, 'severity': 3, 'upper_ctrl_limit': 0.0, 'lower_alarm_limit': nan, 'precision': 0, 'upper_alarm_limit': nan, 'lower_warning_limit': nan, 'upper_warning_limit': nan, 'units': '', 'lower_ctrl_limit': 0.0}
How does I get it is of record type analog input e.g. (ai). One way is to get it from output string . Is there is a simple way ?