LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Collecting digital channel inputs

Can I collect digital pulses on a digital input like l could on an analog input?  I need to collect 4 inputs, each with 32  5 volts pulses, within about 110 ms.  I am using a PCI-6220 card and have filled all of my analog inputs.  I have a second PCI-6220 so I could go with two devices.  I need to collect 4 channels of pulses from a motor and the engineer wants to see the pulses and save the date to file, no counting or timing needed.  The data can be zeros and fives or zeros and ones, just need to see the pattern.
I will be collecting analog data at the same time within this time frame (finite sampling).

0 Kudos
Message 1 of 3
(2,139 Views)

Hi M,

 

If your pulses conform to the specifications outlined in the user manual (low < .8V, high 2.2-5.25 volts), you should be able to do what you have described as long as your pulse duration is long enough - the digital sample rate on the 6220 maxes out at 1 MHz, so keep that in mind. Each channel should return a 1D Boolean array, which you would be able to manipulate and write to any file format you would normally be able to.

 

There are a number of digital I/O examples and tutorials available in the "Getting Started with NI-DAQmx" portion of the NI Developer Zone- the main page can be accessed here:

 

http://zone.ni.com/devzone/cda/tut/p/id/5434

 

Does that help?

Tom L.
0 Kudos
Message 2 of 3
(2,126 Views)

Hi Tom, I found this vi while searching and it does what I'm looking for.  Key word - correlated.  Thanks for your reply.

 

http://zone.ni.com/devzone/cda/epd/p/id/1566

 

Mark

 

0 Kudos
Message 3 of 3
(2,113 Views)