Return to Function List

pi620_SetClockMode


      ViStatus pi620_SetClockMode (ViSession instrumentHandle, ViUInt32 mode,

                                   ViReal64 start_frequency_kHz,

                                   ViReal64 end_frequency_kHz,

                                   ViReal64 frequencyStepSize_kHz,

                                   ViReal64 frequencyStepTime_ms);


  Purpose


      Configure the update rate clock. Be sure the clock source (and clock

      multiplier) is configured by pi620_SetClockSource first.


  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

         


      mode


          Variable Type       ViUInt32


          Select (update) clock mode:

         

          0 = Continuous: Update frequency has constant frequency of Start

          Frequency.

         

          1 = Triangle sweep: Update frequency sweeps from Start Frequency to

          End Frequency (highest frequency) and back.

         

          2 = Single sweep: Update frequency sweeps from Start Frequency to End

          Frequency (highest frequency) with FSK pin high and from End

          Frequency to Start Frequency with FSK pin low.

         

          3 = FSK: Update frequency is Start Frequency with FSK pin low and End

          Frequency with FSK pin high.


      start_frequency_kHz


          Variable Type       ViReal64


          Lower update frequency , see description of Mode.


      end_frequency_kHz


          Variable Type       ViReal64


          Upper update frequency, see description of Mode.


      frequencyStepSize_kHz


          Variable Type       ViReal64


          Increment/decrement value of update frequency in sweep mode.


      frequencyStepTime_ms


          Variable Type       ViReal64


          The time spent at each intermediate frequency.



  Return Value


      Refer to Function Return Value page.