Acquire IEPE Data

This example shows how to acquire IEPE data using an NI 9234. The device is in an NI cDAQ-9178 chassis on slot 3 with ID cDAQ1Mod3.

Create a session, and add an analog input channel with IEPE measurement type.

s = daq.createSession('ni');

Change the channel property ExcitationCurrent to 0.004 volts.

s.Channels(1).ExcitationCurrent = .004;

Acquire the data against time and save it in a variable.

[data,time] = startForeground(s);

Plot the data.


Related Topics