08-25-2005 02:12 PM
08-26-2005
01:22 PM
- last edited on
05-16-2025
01:17 PM
by
Content Cleaner
Hello CIETodd,
First of all, I highly reccomend that you use LabVIEW 7.1 so that you can use the DAQmx driver.
I suggest the following solution...
Use both counters to do buffered edge counting tasks, one for Signal1, the other for Signal2. These tasks will return the value of the count register (which will simply be counting the edges of the onboard clock) everytime an active edge appears on Signal1 or Signal2. In software, you can calculate the period of the signal. For example, if you read a count value of 10 and the onboard clock is running at 10 MHz, then the period of the signal is 10/(10*10^6). You will also be able to calculate the time between a falling edge on Signal1 and a falling edge on Signal2. For example, if you read a count value of 10 when there is an active edge on Signal1 and you read a count value of 25 when there is an active edge on Signal2, this means that there where 15 clock ticks between the two edges. You can find examples of buffered edge counting after you install LabVIEW 7.1 and the DAQmx driver. They should be installed in this directory:
C:\Program Files\National Instruments\LabVIEW 7.1\examples\DAQmx\Counter\Count Digital Events.llb
I hope this helps!
08-26-2005 02:12 PM
Actually the pc crashed right after I started playing around with this. As a result it's getting Windows XP and LabView 7.1 installed right now.
I'm glad to hear you say it can be done. I have no idea how right now but will read up on 'buffered edge counting'
This seems very dependent on the onboard clock. Is that something I can set at 10MHz or is it a constant depending on my A/D board?
Thank you for the help, it is very much appreciated!
Todd
08-29-2005 06:14 PM
08-30-2005 02:23 PM
Ok, I've got 7.1 installed, the board seems to be working in MAX. Now I'm looking at 7.1 and it's very unfamiliar.
Can you tell me how to proceed?
Thanks, Todd
08-31-2005 07:55 AM - edited 08-31-2005 07:55 AM
It looks like my board (pci 6024E) doesn't support this. Turns out I can't use more than one counter at a time.
What might work is to connect the two signals to analog-in's 14 and 15, which are open. Then scan the waveforms from them using the multiple analog-in waveform scan at a fixed rate, hopefully 10,000 S/s or more. Then by using the trigger function which will search for the position in the waveform where 0.5v is crossed with a negative slope (falling edge). The difference in position between one and the next should be the delay*scan rate.
What do you think?
The board specs say it can do 200,000 S/s. Does this mean that I could actually scan the 2 channels at 100,000 S/s? Or do other pc processes slow this scan rate down?
Message Edited by CIETodd@UB on 08-31-2005 07:56 AM
08-31-2005 03:48 PM
It worked!
08-31-2005 06:10 PM