This is an example of how to acquire data for a fixed period of time using DAQmx.
This example is based on the Voltage - Continuous Input.vi with the difference that instead of choosing the number of samples, the user selects for how long the VI will run.
Front Panel View
Any DAQ device that uses analog inputs.
LabVIEW Full Development System 2018
1. Select Physical Channel.2. Select Sample Rate and Acquisition Time.3. Run the VI.