03-07-2007 08:12 PM
03-09-2007 08:07 AM
Hi Matttastica,  
What DAQ card are you using? The reason I ask is that the PFI lines on some cards can be used as PFI lines and digital I/O lines, while on others they can only be used as PFI lines. The pinouts and diagrams for our cards can be found at www.ni.com/manuals. You can accomplish what you are looking to do if your PFI line is a DIO lines as well.
I would
suggest doing two tasks, one for counter output and one for counter input.
(Note that both these are not going to be the same line). The counter output
will be used to do a single pulse generation, while the counter input will be
used to read back the period.  
This will work because, at first, we are going to route the line from the counter output to the counter input line by using a ‘DAQmx connect terminals’ (basically making the input line an output line for a moment). First, setup the tasks and the DAQmx connect, start the tasks and have the counter output do a ‘wait until done’ to ensure the pulse is sent. After this is done, do a DAQmx disconnect terminals (turning the input back from an output to an input), and then do a DAQmx read for your counter input (period measurement). You may look at the shipping examples for pulse generation and period measurement in LabVIEW (Help » Find Examples... » Search tab … search for examples)
One note is that since this is software timed, it may not be fast enough to meet your 200us timing. If this ends up being the case, please look at the 6552, as it can do per clock cycle direction change very fast.
03-09-2007 09:00 AM
03-12-2007 10:57 AM
Matttastica,
The connect and disconnect terminals are in the tools pallet of the block diagram under ‘Measurement I/O » NI-DAQmx » Advanced » Signal Routing’. If LabVIEW is aborting, can you please list the error code and description? You may try increasing the max time of your period measurement.