Main Content

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 cDAQ1Mod3.

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 amperes.

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.

plot(time,data)

Plot of acquired IEPE data

Related Topics