06-01-2006 12:47 PM
06-02-2006 04:38 PM
06-05-2006 12:04 PM
Thanks for the offer of assistance. My vi will be applied to a machine monitoring application. I am testing engine components on a test rig driven by an electric motor. The motor control incorporates a 1024 pulse per rev quadrature encoder, giving me the option of either 1024 ppr or 1 ppr signals. The unit under test will have four single axis accelerometers mounted, one in each of four stations. I hope to quickly detect component failure in the UUT by monitoring these accelerometers. One complication of this setup is a gear set between the electric motor and the components to be monitored, with the UUT driven at 2.4 times the encoder speed.
My bench test setup used a function generator to simulate the encoder pulses ( I tried both 1-ppr and 1024-ppr and made no attept to correct for the gear ratio) and I left the USB-9233 connections open.
As far as I can see, the output of the Build Digital Tacho Info function is correct. The analog signal duration is calculated as it is in the examples.
I'm out of time and will provide more information soon. Let me know any specific data you require. Again, thanks.
06-06-2006 06:25 AM
Hi Brian,
In your code, you did not specify the counter timebase. As I know, DAQpad 6015 provides two on board counter timebase frequency 20M or 100kHz. It seems to me that you are using 100kHz as the counter timebase but specify 20M in the OAT Build Digital Tacho Info.vi.
In OAT example, it uses the oversampling clock from DSA board as a counter timebase. However, in your application, you can not get this clock, thus you have to specify a counter timebase manually.
You may try to input 100k in counter timebase [Hz] input in the OAT Build Digital Tacho Info.vi.
Let me know if it works.
Chen
06-06-2006 12:28 PM
Thanks for the suggestion, Chen. Unfortunately, the vi operates the same way regardless of the counter timebase input. Setting the pulse per rev of the tach input to 1024, I get the following results:
17kHz input signal results in approx 5.2rpm indicated (should be 1000rpm)
102.4kHz input signal results in approx 0.86rpm indicated (should be 6000rpm)
290kHz input signal results in approx 0.3rpm indicated (should be near 17000rpm)
Brian
06-06-2006 12:59 PM
I forgot to add a few more items:
The signal duration is calculated as approximately 0.035 seconds. I have left the four USB-9233 channels open for this test.
Changing the ppr from 1024 to 1 will correctly modify the engine speed... i.e. an indicated speed of 0.3rpm at 1024ppr changes to approx 310rpm at 1ppr.
Brian
06-07-2006 03:24 AM
06-07-2006 12:01 PM
Chen,
Changing to the reference clock doubles the engine speed output, but it is still incorrect and inversely proportional to the tach signal frequency.
Since I am new to DAQmx, I went back to basics and began examining the various DAQmx counter functions. I found an interesting result when running the "Meas Dig Frequency - Low Freq 1 Ctr" example. If you change the DAQmx Read function to Counter U32 1Samp from Counter DBL 1Samp, you get an incorrect frequency. I've attached a modified example showing the the two results.
When I connect a 500Hz squarewave signal to the counter, I get the following output:
DBL output from the Counter DBL 1Samp = 500
U32 output from the Counter U32 1Samp = 40000
Shouldn't these two values essentially match?
Brian
06-15-2006 02:32 PM