LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to arbitrate a "delta t" for chart.

Solved!
Go to solution

HI,

sorry but my English is not good.

 

I'm acquiring data from serial port, but my available data have just the amplitude (Y-axis).

 

I know the delta t is 2 miliseconds.

 

How to arbitrate de delta t to a Chart?

 

Can anyone help me?

0 Kudos
Message 1 of 11
(3,745 Views)
Set it via the properties dialog for the chart. (Another option is a property node, but make sure to only write it only if needed and not with every iteration)
0 Kudos
Message 2 of 11
(3,738 Views)

Which property should I set?

0 Kudos
Message 3 of 11
(3,735 Views)
Try "x-scale..offset and incrment..increment" or similar. (Sorry, posting via phone)
0 Kudos
Message 4 of 11
(3,728 Views)

Can I do something similar to calculate the power spectrum?

0 Kudos
Message 5 of 11
(3,726 Views)

Because my input signal is 500 Hz and the power spectrum is not showing the right value!

0 Kudos
Message 6 of 11
(3,723 Views)
Solution
Accepted by topic author geovane
You don't need it to calculate the power spectrum, just to dispay it and assign frequencies to the array elements. You can calculate df from dt and N.
0 Kudos
Message 7 of 11
(3,717 Views)

why not use "build waveform"?

since you'd have the array of data, and knowing the dt, one could just re-build the signal?

and for the FFT i usually use the express FFT...

 

 

0 Kudos
Message 8 of 11
(3,705 Views)

If you:

  1. Build a waveform ("Build Waveform" function) from your time-series data, and
  2. Assign 2-seconds to the "dt" waveform component, then
  3. Use the "FFT Power Spectrum" VI from the "Waveform Measurements" pallette to calculate your specturm,

Then you can wire the output directly to a Waveform Graph and the delta frequency and frequency range will be automatically correct!!

0 Kudos
Message 9 of 11
(3,701 Views)

I don't use "build waveform" because I acquire the data one point at a time.

 

0 Kudos
Message 10 of 11
(3,699 Views)