Return to Function List

pi620_GenerateSweep


      ViStatus pi620_GenerateSweep (ViSession instrumentHandle,

                                    ViUInt32 signalType, ViReal64 symmetry_,

                                    ViUInt32 mode,

                                    ViReal64 startFrequency_kHz,

                                    ViReal64 endFrequency_kHz,

                                    ViReal64 frequency_step_size_kHz,

                                    ViReal64 frequency_step_time_ms);


  Purpose


      Generate a signal with a sweep on the output of the active channel of the

      instrument. This function will automatically fill the memory and adjust the

      update clock and counter step to get the desired Frequencies.


  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


          Shape of the signal:

         

          0 = Sine

          1 = Triangle

          2 = Square


      symmetry_


          Variable Type       ViReal64


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

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

          triangle with equal up-going and down-going ramps.


      mode


          Variable Type       ViUInt32


          Sweep mode:

         

          0 = Signal starts at Start Frequency and sweeps to End Frequency with

          Frequency step size with Frequency step time duration at each step.

          When End Frequency is reached it will sweep back to Start Frequency.

          This will repeat till another mode is selected.

         

          1 = Signal sweeps Start Frequency to End Frequency with FSK pin high

          or from End Frequency to Start Frequency with FSK pin low.


      startFrequency_kHz


          Variable Type       ViReal64


          Lower frequency of the signal.


      endFrequency_kHz


          Variable Type       ViReal64


          Upper frequency of the signal.


      frequency_step_size_kHz


          Variable Type       ViReal64


          Increment/decrement value of signal frequency.


      frequency_step_time_ms


          Variable Type       ViReal64


          The time spent at each intermediate frequency.



  Return Value


      Refer to Function Return Value page.