DAQ_Power Supply Library VIs initialize, configure, source, measure, and close user-configurable power supply pins. This library is applicable for the TestScale TS-15200 power supply module.

  1. Use the PS Initialize VI to initialize hardware and create a DAQmx Task for power supply measurement.
  2. Pass the power supply measurement DAQmx Task to the DAQ_PS Configure and Measure VI.
  3. Configure the DAQ_PS Configure and Measure VI.
    • Execution Settings—By default, the Configure and Measure VI also executes the measurement. If you are using a trigger for your measurement, choose the Configure Only or Measure Only execution option to avoid automatic execution.

      Use the Skip Analysis? setting to select whether to perform post analysis on the measured data. Use post analysis to derive maximum voltage, current, power, and average power.

    • Configuration Settings—Configure the required power channel settings. The channel settings include output voltage, output current, sensing methods, idle output behavior and output enabled state.
      Configure the timing related parameters for power supply generation and measurement. The Timing setting configures sample clock source input, sampling rate, number of samples, and the sample timing engine used for the power supply task.
      • Acquisition Time = Number of Samples/Sample Rate
      • Specify Auto to automatically select the timing engine.
      Note The maximum sampling rate for the TS-15200 is 10 kS/s. Values that exceed the maximum sampling rate generate errors.
      Note Refer to the relevant specifications document to identify the maximum sampling rate for your device. Values that exceed the maximum sampling rate generate errors.

      Configure triggers to start the source or measurement based on various trigger events. Trigger options include no trigger or digital start triggers.

    • Output Data—The VI outputs the following data.
    • Voltage and Current Waveforms—Displays the captured voltage and current waveform during sourcing power supply
    • Power Measurements—Provides the derived post-analyzed data from the captured waveforms.
    • Acquisition Time—Calculated acquisition time for the measurement.
  4. Wire the updated power supply task from DAQmx Task Out.
  5. Close the power supply measurement task using DAQ_PS Close VI.

Execution Option Settings

  • Configure and Measure—Configures the instrument and executes the measurement.
  • Configure Only—Sets the configuration of the instrument but does not fetch data and execute the measurement. Use this option when a channel is configured to wait for a trigger based on a software or hardware event. This operation should be followed by a Measure Only operation.
  • Measure Only—Skips configuration to fetch the data captured by the instrument, process the data, and return the measurements. A Configure Only operation is required to initiate each measurement task. Any DAQ Measure Only operation, including repeated operations, must be preceded by a DAQ Configure Only operation.
  • Best Practices

    • For faster measurements, set the maximum sampling rate possible for the given Sample Clock Source input and assign a smaller Number of Samples to capture.
    • To access this VI in a software-based timing setting, set the sampling rate for the sample clock source and set the number of samples to two (the minimum samples supported by DAQmx). Invoke this VI multiple times in a software loop to get the actual required number of samples.
    • For better resolution, increase the number of samples (for example, 1000 samples).
    Figure 15. Connection Block Diagram