DAQ_Power Supply Library
- Updated2025-04-25
- 3 minute(s) read
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.
- Use the PS Initialize VI to initialize hardware and create a DAQmx Task for power supply measurement.
- Pass the power supply measurement DAQmx Task to the DAQ_PS Configure and Measure VI.
- 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.
-
- Wire the updated power supply task from DAQmx Task Out.
- Close the power supply measurement task using DAQ_PS Close VI.
Execution Option Settings
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).
