04-28-2007 02:17 AM
04-30-2007 10:08 PM
Hi P.Jack,
I would like to ask for a bit more information about your project and DUT. Creating a pulse as input for the DUT is not a problem. Examples can be found in the LabVIEW example finder ((Help >> Find Examples… >> Hardware Input and Output >> DAQmx >> Generating Digital Pulses). Please keep in mind that the finite pulse train uses both counters (one to generate the train, and one to count the number of pulses that have been generated). Continuous generation only uses one counter, leaving you with a free one. On that note, I would like add that the 6259 only has two counters.
Is the DUT output a TTL signal ? Also, is this a stimulus response system, where t can vary in the time it takes? (that is the impression I gathered from the picture). The overall task you are looking to accomplish cannot be completely done in hardware with the PXI-6259 because there are only two counters on the board, and this entire program would require four counters.. If hardware timing is essential, I would suggest a PXI-6602 counter/timer card. This will allow you to use two counters to create the pulse train, and another two to do a buffered counter acquisition.
If partial software timing is OK for this project, than the
6259 can accomplish the task. I would do a pulse generation, and then once this
is complete (time T starts), you can clear the task and create a buffered
counter task. Instead of creating another task, you may also think about doing
a digital read on the input line. You would put the read in a loop, and
constantly monitor the line until it goes low. You would put tick counts before
and after the loop, then compare them and see how long it took for the digital
line to go low. Either route is software timed because it requires configuring
and starting a new task at a minimum.
05-01-2007 08:20 AM
05-01-2007 12:36 PM
Drop the sequence for a state machine architecture. The reason for this is flexability. You can handle out of order steps, more robust error handling and easily reuse and add steps to this architecture.
Paul
05-01-2007 10:14 PM
05-02-2007 12:44 PM - edited 05-02-2007 12:44 PM
Message Edited by TheWoost on 05-02-2007 12:45 PM
05-02-2007 06:49 PM
05-04-2007 12:41 AM
05-07-2007 09:49 AM