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
Create a 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 against time and save it in a variable.
[data,time] = read(d,seconds(1.35),"OutputFormat","Matrix");
Plot the data.