06-28-2006 08:57 AM
06-29-2006 09:41 AM
Would it be better for me to build my own external triggering device? I could make a black box to hook up to the DAQ that will give a pulse at any edge change for my six inputs that I want to measure. With that pulse, I can initiate a recording of the digital inputs and the counter. Would this be the better approach?
Thanks!
06-30-2006 11:41 AM
Hello Garrett,
I believe the easiest way to do this is to create a buffered counter input task
and a buffered digital input task. You then would then specify the clock
source for these tasks to be your trigger from your DUT. Since you
are only recording a single value each trigger I assume the triggers are
happening relatively frequently. Having the trigger as your clock allows
you to buffer the current state of your digital lines and counter.
You can see how to perform a continuous position counter measurement with an
external clock in LabVIEW's Example finder under Hardware Input and Output
>> NI-DAQmx >> Counter Measurements >> Position >> Meas
Angular Position-Buffered-Cont-Ext Clk.vi.
You can see how to perform a continuous digital measurement with an external
clock in LabVIEW's Example Finder under Hardware Input and Output >>
NI-DAQmx >> Digital Measurements >> Meas Angular
Position-Buffered-Cont-Ext Clk.vi
You can specify the same external clock for both tasks. Since the samples
are buffered automatically with the trigger you just have to perform DAQmx
reads on your tasks. You can display/graph and save this data to disk
anyway you like.
I hope this helps.
Jesse O.
Applications Engineering
National Instruments