Return to Function List

pi620_SetSignal


      ViStatus pi620_SetSignal (ViSession instrumentHandle,

                                ViUInt32 signalType,

                                ViReal64 normalized_amplitude_,

                                ViReal64 startPhase, ViReal64 symmetry_);


  Purpose


      Fill instrument memory with standard signal. The number of effective

      memory samples are influency by the counter step value: 256k/counterstep.


  Parameter List


      instrumentHandle


          Variable Type       ViSession


          The ViSession handle that you obtain from the pi620_init function.

          The handle identifies a particular instrument session.

         

          Default Value:  None

         


      signalType


          Variable Type       ViUInt32


          Select type of signal:

         

          0 = Sine

          1 = Triangle

          2 = Square


      normalized_amplitude_


          Variable Type       ViReal64


          The normalized amplitude influences the number of used main dac

          codes. 100% uses all dac codes. The amplitude can also be changed by

          adjusting Attenuator during signal generation (pi620_SetAttenuation).


      startPhase


          Variable Type       ViReal64


          Start phase of the signal in  memory.


      symmetry_


          Variable Type       ViReal64


          symmetry of the signal if type is Triangle or Square. A symmetry of

          50 percent will result in a square with an duty cycle of 50% or a

          triangle equal up-going and down-going ramps.



  Return Value


      Refer to Function Return Value page.