LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use PXI6624 to measure speed and draw a waterfall diagram?

Solved!
Go to solution

Now there is a project that uses PXI6624 to measure the rotational speed and pxie-4331 to test the stress.The measured data is then used to map the waterfall.

There are several ways to measure speed with PXI6624.One is to calculate the speed by measuring the frequency (the speed sensor output frequency signal).For this measurement, the PXI6624 timing option can only select the implicit (counter) mode.In this measurement method, the sampling frequency of PXI6624 is not fixed, but is related to the frequency of the measured speed signal.This will cause the measured strain data block length and rotational speed data block length are not consistent within the same time interval (such as 512ms).So, in this case, how to process the data and draw a waterfall diagram?

Another way, using the sound and vibration toolkit, is to measure periods or event counts.The waterfall was then plotted using Build Digital Tacho Info VI and Digital Tacho Process VI.However, these two VI(Build Digital Tacho Info VI and Digital Tacho Process VI) only support DSA devices (such as 447x, 446x, 9229 and 9239、、).So if  use this approach, how do  measure and process the data to create a waterfall diagram?

Besides the above two methods, is there any other way to use PXI6624 and PXI4331 to measure the data and draw a waterfall diagram?

Another problem is that when the speed signal is an analog signal, the speed signal needs to be correlated with the stress signal.The speed signal measurement channel and the stress measurement channel use the same board card.Can the speed signal and the stress signal be measured separately (using the same sampling frequency and the same trigger signal) without the speed correlation?

Thanks very much!

 

0 Kudos
Message 1 of 7
(2,605 Views)

I don't have the S&V toolkit so I can't comment on those 2 vi's.

 

"Waterfall diagram" can mean different things.  In LabVIEW, it's a 3D plot that shows how a frequency domain response varies over time.  In Excel, it's something very different.

 

What relationship(s) are you looking to display?  Can you post a picture of the kind of thing you're looking for?  What range of encoder frequencies can be expected in your system?

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 7
(2,520 Views)
Solution
Accepted by topic author 九月飞鹰

     

        Hello, I am sorry that I have to go on a business trip, so I have to return to you so late.I referred to the NI example: Even Angle Reference Signal Processing (Digital Tach, DAQmx).vi.The VI adopts the measurement method of edge detection to measure the speed. There are two other VI in the sound and vibration kit, namely Build Digital Tacho Info VI and Digital Tacho Process VI, which are used to Process the data of edge detection to obtain the speed information.Among them, Build Digital Tacho Info VI and counter task type only support event counting and period measurement.In the actual use, I used PXI6624 to get the speed by measuring the frequency (0-200khz).The corresponding relationship between frequency and speed is about 0-200khz corresponding to 0-12000rad(the gear has 1024 teeth, and each tooth sends out a pulse when the equipment rotates, which can be obtained through the frequency value *60/1024).In this way, the two VI's, Build Digital Tacho Info VI and Digital Tacho Process VI, are not used.However, when measuring the frequency, the channel configuration can only select the measurement method of the counter (implicit) when setting the timing.In this case, the data used for each unit of time interval (such as 0.5s) is different (depending on the frequency of the signal used).I would like to ask, in the case of this frequency measurement, how to deal with the data to draw a waterfall diagram?Vibration is measured using the PXI4492 board card.

       There is another problem. In the example Even Angle Reference Signal Processing (Digital Tach, DAQmx). Vi, the edge detection method is selected when configuring the virtual channel in the measurement task.Then, when configuring DAQmx timing, the sampling clock (analog/counter/digital) is selected, and the sampling rate can be set (such as 1000). When setting the sampling clock source, PFI(Gate) is selected.The measured signal terminal is connected to 20MHzTimebase.Normally, shouldn't the clock source be connected to 20MHzTimebase and the measured signal to PFI(Gate)?In this case, shouldn't PFI(Gate) be the signal being measured? How can it be used as the clock source?And the PFI(Gate) will change with the speed, so how to ensure that the sampling rate is 1000(if the sampling rate is set to 1000)?So, when DAQmx Read reads data later, what is the amount of data Read per unit of time interval (say 0.5s) (500 or something else)?

  • Attached is a snippet from the example。

Download All
0 Kudos
Message 3 of 7
(2,492 Views)
  • I forgot to mention that my project is for rotary machines.Monitor the vibration of the equipment with a waterfall diagram.The order analysis and resonance frequency analysis of the equipment were done with waterfall diagram.

0 Kudos
Message 4 of 7
(2,491 Views)

Unfortunately, most of the "interesting" stuff will be down inside those various special-purpose toolkit vi's.  You mentioned Sound & Vibration, but I see a bunch of "O.A.T." icons that I suspect relate to the Order Analysis toolkit.

 

I don't have either one, nor do I have any familiarity with those functions.  I'm also not at all experienced in the seemingly specialized field of monitoring vibrations on rotating machinery and performing order analysis.  I just have excellent knowledge of counters under DAQmx, rudimentary knowledge of frequency domain analysis, and beginner-level knowledge of producing a 3D waterfall graph (to map out a 2D spectral response through slices of time).

 

Maybe someone else that knows the field and the DAQ hardware will join in and give more detailed help?

 

Meanwhile, here are a few thoughts based on fundamentals.

- Is the rotational speed nearly constant?  Then the vibration data alone would probably allow you to generate a useful waterfall graph.   Not *perfect*, but at least useful.

- If the speed is nearly constant, it seems like you could do a very simple speed measurement with the counter task, and use that nominal speed to scale your frequency domain data from Hz to unitless "order numbers".

- Several challenges arise if the counter measurements are meant to compensate for significant changes in rotational speed during your measurements.  I expect those toolkit vi's do a nice job of handling all this stuff for you.

   If I had to deal with this, I would resample the vibration data to make it equally spaced in *rotation angle* rather than in time.  I would use a quadrature encoder and configure an angle measurement task.  I would export the DSA device's sample clock and use it as the sample clock for my encoder task.  I would then be able to capture vibration vs. time and angular position vs. time.  In post-processing, I could resample to figure out vibration vs. angular position.  (It would probably be necessary to compensate for the signal path delay of the DSA device during this post-processing.)

  So now I could have a pseudo-waveform where the "dt" value is really a "delta position".  For order analysis, I imagine I'd use "# rotations" as the position unit to feed into the "dt" field of the waveform.  From there, I would split up all this measurement data into slices that each contain some integer # of rotations worth of data.  I'd do freq domain spectral analysis on each slice, accumulate all the results, and display them in a 3D Waterfall Graph.

 

It seems to me that this kind of approach ought to be a decent starting point at least.

 

Now after all that, let me try to answer a couple specific questions.

 

Counters are very flexible.  One can often exchange which counter input receives which signal in order to approach a measurement differently.  In your example, the encoder signal is being treated like a sample clock.  You'll take one sample at each tooth.  So the question is, *what* are you sampling?  Well, you're sampling a count value.  The count value is being incremented at 20 MHz.  The effect you get is to capture a *timestamp* of the instant when each tooth first registered its presence.  This is just another way to get a relationship between time and position.  This one captures counts at equal angles while measuring the variable time between them.   Other methods capture counts at equal time spacing while measuring the variable distance between them.

 

The sample rate input value to DAQmx Timing should be set to the max expected encoder frequency.  The main (maybe only?) reason is that DAQmx uses the sample rate value to auto-size its task buffer.  (And please consider my Idea Exchange post here if you agree that it would be helpful if the DAQmx API made some of this stuff more clear).

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 5 of 7
(2,470 Views)

Hello:

Kevin_Price,

After reading your reply, I have some ideas.I now take the development scheme is as follows: create CI frequency measurement task with PXI6624, and convert to obtain speed information.Use PXI4492 to measure vibration information.The speed measurement and vibration measurement are collected simultaneously in the same parallel cycle (no Shared clock synchronization is used) and the data is read simultaneously (data is read every 0.5s interval).The rotational speed data are then resampled to keep the same length as the vibration data.Then, by means of speed segmentation or time segmentation, the waterfall diagram is drawn to extract the order information.Is it feasible?If so, what is the error?

There is also a question about the timing of the counter.In the sampling clock, I set the sampling rate to 1000, and the clock source is connected to PFI(gate), which is the speed signal .Read the data at intervals of 0.5s during the subsequent reading cycle.According to common sense, when the rotation speed is 0 (the frequency is 0 at this time), PFI(gate) has no rising edge signal, and there should be no data in the board card FIFO.But why is it possible to read 500 pieces of data in a loop when DAQmx is used to read them (even though they are all zeros)?Shouldn't the PFI(gate) have a rising edge before sending the data to the board card FIFO?

0 Kudos
Message 6 of 7
(2,444 Views)

Sorry, but I'm really not sure how to give a general answer.

 

1. The general field of machine monitoring is outside my experience.  I have no particular domain expertise to offer.

 

2. The toolkits you have are designed to enable work in this domain.  I don't have them to be able to inspect or comment.

 

3. An approach from fundamentals might get you *something*, but it's liable to be pretty complicated to get it right (or at least "right enough"), and even then it'll probably fall far short of what the toolkits would do.

 

Can you give me more of a "big picture" description?  What are you monitoring?  Is the rotational speed nearly constant or does it vary quite a bit?  For how long do you need to capture data during a test run?  What range of vibration frequencies are you interested in?  What's your range of encoder (digital tach) frequencies?  And the big one, how will this waterfall diagram help you confirm or decide something?  What will it be used for?

 

As to your counter timing question, I'd really need you to post the code, preferably saved back to LV 2016 if you're developing in a newer version.  The original screenshots you posted should not produce new samples for the counter task when the PFI(gate) frequency goes to 0.  Offhand, I don't know why you'd get 500 readings of 0 if you're still using the 20 MHz timebase as your edge count terminal.

   But then again, I don't know if the posted screenshots represent the code you're running nor do I know anything about how you're reading from the task buffer or managing the data after that.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 7 of 7
(2,431 Views)