Class FlinkDAC

  • All Implemented Interfaces:
    FlinkDefinitions

    public class FlinkDAC
    extends Object
    implements FlinkDefinitions
    The flink DAC subdevice realizes analog outputs in a flink device. Its number of channels depends on the actual dac chip used.
    Author:
    Urs Graf
    • Field Detail

      • dev

        public FlinkSubDevice dev
        Handle to the subdevice within our flink device
    • Constructor Detail

      • FlinkDAC

        public FlinkDAC​(FlinkSubDevice dev)
        Creates a DAC subdevice.
        Parameters:
        dev - handle to the subdevice
    • Method Detail

      • getResolution

        public int getResolution()
        Reads the resolution field of the subdevice. The field denotes the number of resolvable steps, e.g. a 12 bit converter delivers 4096 steps.
        Returns:
        number of resolvable steps
      • getValue

        public int getValue​(int channel)
        Reads the digital value of a channel. Channel number must be smaller than the total number of channels.
        Parameters:
        channel - channel number
        Returns:
        digital value
      • setValue

        public void setValue​(int channel,
                             int value)
        Sets the digital value for a channel. Channel number must be smaller than the total number of channels.
        Parameters:
        channel - channel number
        value - digital output value