malcolm.modules.ADPandABlocks.util¶
- class malcolm.modules.ADPandABlocks.util.Trigger[source]¶
Convenience Enum for setting sequencer tables, will be translated into integer values by the TablePart. The strings must match what comes from the PandA
- class malcolm.modules.ADPandABlocks.util.SequencerTable(repeats: Anno(name='ALineRepeatsArray', typ=<class 'numpy.uint16'>, description='Number of times the line will repeat'), trigger: Anno(name='ATriggerArray', typ=<class 'str'>, description='The trigger condition to start the phases'), position: Anno(name='APositionArray', typ=<class 'numpy.int32'>, description='The position that can be used in trigger condition'), time1: Anno(name='ATimeArray', typ=<class 'numpy.uint32'>, description='The time that the phase should take'), outa1: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), outb1: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), outc1: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), outd1: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), oute1: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), outf1: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), time2: Anno(name='ATimeArray', typ=<class 'numpy.uint32'>, description='The time that the phase should take'), outa2: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), outb2: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), outc2: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), outd2: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), oute2: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'), outf2: Anno(name='AOutArray', typ=<class 'bool'>, description='Output value during the phase'))[source]¶
Convenience Table object for building sequencer tables
- Parameters
repeats (uint16) – Number of times the line will repeat
trigger (str) – The trigger condition to start the phases
position (int32) – The position that can be used in trigger condition
time1 (uint32) – The time that the phase should take
outa1 (bool) – Output value during the phase
outb1 (bool) – Output value during the phase
outc1 (bool) – Output value during the phase
outd1 (bool) – Output value during the phase
oute1 (bool) – Output value during the phase
outf1 (bool) – Output value during the phase
time2 (uint32) – The time that the phase should take
outa2 (bool) – Output value during the phase
outb2 (bool) – Output value during the phase
outc2 (bool) – Output value during the phase
outd2 (bool) – Output value during the phase
oute2 (bool) – Output value during the phase
outf2 (bool) – Output value during the phase
- class malcolm.modules.ADPandABlocks.util.DatasetBitsTable(name: Union[Anno(name='ABitNames', typ=<class 'str'>, description='Block and Field name for the Bit'), Sequence[str]], value: Union[Anno(name='ABitValues', typ=<class 'bool'>, description='Current value for the Bit'), Sequence[bool]], capture: Union[Anno(name='ABitCaptures', typ=<class 'bool'>, description='Request this field is captured in PCAP'), Sequence[bool]], datasetName: Union[Anno(name='AAttributeNames', typ=<class 'str'>, description='NDAttribute name to be exported'), Sequence[str]], datasetType: Union[Anno(name='AAttributeTypes', typ=<enum 'AttributeDatasetType'>, description='Types of attribute dataset'), Sequence[malcolm.modules.ADCore.util.AttributeDatasetType]])[source]¶
- Parameters
name (str) – Block and Field name for the Bit
value (bool) – Current value for the Bit
capture (bool) – Request this field is captured in PCAP
datasetName (str) – NDAttribute name to be exported
datasetType (AttributeDatasetType) – Types of attribute dataset
- class malcolm.modules.ADPandABlocks.util.DatasetPositionsTable(name: Union[Anno(name='APositionNames', typ=<class 'str'>, description='Block and Field name for the Position'), Sequence[str]], value: Union[Anno(name='APositionValues', typ=<class 'float'>, description='Current scaled value for the Position'), Sequence[float]], units: Union[Anno(name='APositionUnits', typ=<class 'str'>, description='Units for the scaled value of the Position'), Sequence[str]], scale: Union[Anno(name='APositionScales', typ=<class 'float'>, description='Scale factor to calculate scaled value of the Position'), Sequence[float]], offset: Union[Anno(name='APositionOffsets', typ=<class 'float'>, description='Offset to calculate scaled value of the Position'), Sequence[float]], capture: Union[Anno(name='APositionCaptures', typ=<enum 'PositionCapture'>, description='Whether and what to capture with PCAP'), Sequence[malcolm.modules.pandablocks.util.PositionCapture]], datasetName: Union[Anno(name='AAttributeNames', typ=<class 'str'>, description='NDAttribute name to be exported'), Sequence[str]], datasetType: Union[Anno(name='AAttributeTypes', typ=<enum 'AttributeDatasetType'>, description='Types of attribute dataset'), Sequence[malcolm.modules.ADCore.util.AttributeDatasetType]])[source]¶
- Parameters
name (str) – Block and Field name for the Position
value (float) – Current scaled value for the Position
units (str) – Units for the scaled value of the Position
scale (float) – Scale factor to calculate scaled value of the Position
offset (float) – Offset to calculate scaled value of the Position
capture (PositionCapture) – Whether and what to capture with PCAP
datasetName (str) – NDAttribute name to be exported
datasetType (AttributeDatasetType) – Types of attribute dataset