From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

displaying a vibratory signal in a waveform on LabVIEW

Solved!
Go to solution

Hi everybody,

I have cDAQ9171, NI 9230 and an accelerometer. I use element of NI-DAQmx pallete to acquire data and it's work good. But, I have a problem to display the vibratory signal on a waveform graph because it isn't working like a want. I would like to collect data while 1 second with a number of sample (2560k per example for sample rate = 2560Ks/s). Then, display it on my waveform every second.

 

Please somebody can help me ?

POST.PNG

0 Kudos
Message 1 of 4
(2,503 Views)
Solution
Accepted by topic author Fred19ni

Hi Fred,

 

But, I have a problem to display the vibratory signal on a waveform graph because it isn't working like a want.

Then most often the problem is with the way the VI is created… 😄

 

I would like to collect data while 1 second with a number of sample (2560k per example for sample rate = 2560Ks/s). Then, display it on my waveform every second.

Ok, that's a nice description.

But why do you read just one sample each 100ms, when you want to read 2.56MS/s?

Why do you set a sample rate of 1kS/s, when you want to read samples faster?

Why do you read just one sample per DAQmxRead?

Why do you set a "sample per channel" of 100k? Did you read the help for the DAQmxTrigger function?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,496 Views)

Thanks GerdW for your reply,

But why do you read just one sample each 100ms, when you want to read 2.56MS/s? it was only an example.

Why do you set a sample rate of 1kS/s, when you want to read samples faster? about sample rate is it rate in LabVIEW ? and what is the description of sample per channel.

Why do you read just one sample per DAQmxRead? wrong configuration

Why do you set a "sample per channel" of 100k? Did you read the help for the DAQmxTrigger function? no, I read it right away.

 

thanks for yours questions.

0 Kudos
Message 3 of 4
(2,484 Views)

Your sampling rate seems exceedingly high.  When I think of "vibration", I think of sound, so I expect signals in the range 1Hz-50KHz, maybe even narrower, but certainly not 2MHz!

 

Have you tried using MAX to look at your device and run some Test Panels to get MAX to acquire (and show you) some data?  Were you able to acquire data at 2MHz?  Does it look "reasonable" to you?

 

Once you have a reasonable Task that works in MAX, it is fairly simple to "translate" that into equivalent LabVIEW DAQmx code.  I recommend you do a Web search for a paper whose title is something like "Learn 10 Functions in NI-DAQmx and Solve 80% of your Data Acquisition Tasks".

 

Bob Schor

Message 4 of 4
(2,460 Views)