08-11-2005 02:58 PM
08-12-2005 11:53 AM
08-12-2005 12:28 PM
Yes that does help a little. Somethings I can't seem to figure out are; I understand that software counters a unreliable ... but is there any way to make them more reliable/usable? In the documentation for my DAQ it states that you can wire any of the PFI lines to the counter but I can only seem to be able to use PFI 9 (source for counter 0) and PFI 4 (source for counter 1). How is this done?
You said:
*As far as measuring 4 signals, that will be a little difficult, but possible. You definitely want to use counters, but you could also use either analog or digital input. You can send your signal to an analog input, then do some post processing to determine the pulse width based on the number of samples and the sample rate. With digital, you would have to do correlated dio, and again do some post processing. Hope this helps.*
08-15-2005 11:53 AM
08-15-2005 02:37 PM
Thanks again Alan:
I've played with reading my digital signal on an analog line and I have had some success. Still have noise though. I have one other question . Just for exploration sake ... I generated a digital wave from my Daq and fed it back to my Daq on PFI9 and measured pulse width ... The pulse widths were ROCK STEADY (not even 1/100 of a microsecond variation). Then I generated a digital pulse with my function generater (oscilloscope) and measured the pulse width from that - again I got the variation of pulse width measurement. So finally here is my question. Would synchronizing the source clock (from daq) and the sensor clock (signal generation) (sending a clock signal from the Daq to my sensor so the output will be timed with the source signal goin into the counter of the Daq) rectify this problem? This is the only explaination I can come up with given the above results of my tests. I would have already done this but (sadly) the sensors we have are not capable of accepting a clock signal (so I will have to wait until the other ones come in). Thanks in advance.
Greycat
08-16-2005 02:16 PM
Graycat,
I not really sure if synchronizing your device with the DAQ board will help or not. That will depend on the characteristics of your device. I can tell you that it appears that the frequency measurement is precise and your device is producing a pulse train with a slightly varying frequency . If you want to try to synchronize, you can always export one of the timebases of the DAQ device to a PFI line. You can do this with the "DAQmx Export Signal.vi" or with "DAQmx Connect Terminals.vi".
-Alan A.
08-16-2005 02:43 PM
08-16-2005 03:21 PM
Greycat wrote...
"...Shouldn't the signal coming out of my function generator be rock steady?...""...Synchronization could be the only really difference in that the signal coming from the Daq board was generated using the same oscillator that generates the 'source' signal into my counter for the pulsewidth measurment..."
Greycat,
1. It's certainly conceivable that the function generator signal may not be "rock steady."
2. To check for the "synchronization" effect you mentioned: how many different discrete values do you seen in your pulse width measurement? If the only issue is synchronization, you should see just 2 distinct values.
For example, if your function generator's pulse width == 2000.41 cycles of your DAQ board's timebase (source) signal, then you'd only measure values of either 2000 (59 times out of 100) or 2001 (41 times out of 100).
If you see several distinct values over a small range, then the function generator's output must not have a rock steady pulse width.