1 Sample versus N Samples Modes (myRIO Toolkit)
- Updated2023-02-21
- 3 minute(s) read
The LabVIEW myRIO Toolkit provides VIs for you to perform two I/O modes of signal acquisition and generation: 1 sample and n samples. Use the following table to learn about these modes.
![]() |
Note You can perform n samples operations only after you install the NI High Throughput Add-On for myRIO. Visit ni.com/info and enter the Info Code ex6g5a to learn about the High Throughput Add-On for myRIO. |
| Operation | I/O Mode | Description | Use Case |
|---|---|---|---|
| Signal Acquisition | 1 Sample | The myRIO acquires one sample each time for a single channel or multiple channels. This mode uses software-timed acquisition. The sample rate of acquisition depends on the software loop rate on the real-time processor. Various factors can affect this loop rate, such as simultaneous running of multiple programs on the myRIO target. | Acquiring the most recent value or periodically monitoring low frequency signals, such as the temperature. |
| N Samples | The myRIO acquires multiple samples at the same time for a single channel or multiple channels. This mode has the following characteristics:
|
Acquiring finite high frequency signals, such as an audio signal. | |
| Signal Generation | 1 Sample | The myRIO generates one sample each time for a single channel or multiple channels. This mode uses software-timed generation. The sample rate of generation depends on the software loop rate on RT side. Various factors can affect this loop rate, such as the simultaneous running of multiple programs on the myRIO target. | Generating the most recent value or generating low frequency signals. For example, generating a known voltage to stimulate a device. |
| N Samples | The myRIO generates multiple samples at the same time for a single channel or multiple channels. This mode has the following characteristics:
|
Generating finite time-varying signals, such as an AC sine wave. |
After you install the High Throughput Add-On for myRIO, you can refer to High Frequency Sampling.lvproj in the labview\examples\myRIO\High Frequency Sampling directory for an example of comparing the 1 sample mode with the n samples mode using the myRIO Express VIs.
