Acquire IEPE Data
This example shows how to acquire IEPE data using an NI 9234. The
device is in an NI cDAQ-9178 chassis in slot 3 with ID
DataAcquisition object, and add an analog input channel
with IEPE measurement type.
d = daq("ni"); ch = addinput(d,"cDAQ1Mod3",0,"IEPE");
Change the channel
ExcitationCurrent property value to 0.004
ch.ExcitationCurrent = .004;
Acquire the data and the corresponding sample times, storing them in two vectors.
[data,time] = read(d,seconds(1.35),"OutputFormat","Matrix");
Plot the data.