Main Content


Waveform phase


In a function generation channel, the Phase property specifies the period of waveform cycle from its point of origin. Specify the values for Phase in time units.


Set the phase of a waveform function generation channel to 33.

s = daq.createSession('digilent')
fgenCh = addFunctionGeneratorChannel(s, 'AD1', 1,'Sine')
fgenCh.Phase = 33
fgenCh = 

Data acquisition sine waveform generator '1' on device 'AD1':

              Phase: 33
              Range: -5.0 to +5.0 Volts
     TerminalConfig: SingleEnded
               Gain: 1
             Offset: 0
          Frequency: 4096
       WaveformType: Sine
     FrequencyLimit: [0.0 25000000.0]
               Name: ''
                 ID: '1'
             Device: [1x1 daq.di.DeviceInfo]
    MeasurementType: 'Voltage'