First, follow the steps in
this article to recognize the connected hardware and create a virtual channel in NI MAX. Also, in the DIAdem DAC, set the "DAQmx driver" function and connect it to the "Show curve" function.
Use the "System Clock" and "Save Data" functions to measure at the specified sampling rate and save the data. Wire as shown in the figure below.

The sampling rate is specified by the "system clock" function. Double-click the "System Clock" function, select Hardware clock in Clock, and enter the Sampling rate. The sampling rate specified here must be a value that can be used by the hardware. If this setting is not available in hardware, an error will occur during program execution. Here, the measurement is performed at 100 Hz (0.01 second interval).

Next, specify the size and file path of the data to be saved with the "Save data" function. The size of the data to be saved can be set in Cycle Save. Here, for example, data for 1024 points is saved. Since the sampling rate is 100 Hz, if the setting is to save 1000 points of data, the measurement will be performed for 10 seconds and the data will be saved. Then open Data Storage and specify where you want to save the data.

Here, the TDM file is saved in the path specified by Filename.

After completing the above settings, the measurement will be performed for 10 seconds by starting the measurement, and the measurement result will be saved as a TDM file in the specified path.