LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert a signal into a time signal of labview

hello,

Working on some signal available as a text file, I was succeeded in plotting it on waveform chart.

While having its frequency response, I have to convert it into time signal to apply FFT Spectrum.

Kindly tell me how could I go through this step.

Regards

0 Kudos
Message 1 of 9
(5,477 Views)

Hi Abuzar,

 

do you talk about "waveforms"? There's a full palette of functions dedicated to waveforms, just look at it!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 9
(5,469 Views)

Hello GerdW, thanks for replying

Actually the issue is of difference of data type, the output of my data file is floating point while the input of FFT Spectrum is Time Signal

So how can i make my signal compatible of it.

Thanks

0 Kudos
Message 3 of 9
(5,439 Views)

Hi Abuzar,

 

yes, I understand your question. Did you follow my advice of message #2?

 

There's no "time signal" in LabVIEW (atleast I didn't come across such labels). Open the context help and use the wording used in the help...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 9
(5,434 Views)

Hi Abuzar,

 

As GerdW said, the datatype you need to connect to 'Time signal' connector of the FFT function is 'WaveForm'.

 

You can easily convert an array of floating point to waveform, using the 'Build Waveform' function on the Waveform pallette.

 

Like this for example:

 

 

Message 5 of 9
(5,427 Views)

Thanks v.much to Gred W and Pianne, i solved my problem,

One thing to ask more that we have to supply the sampling frequency to get the waveform, what about if we dont have any information of the sampling frequency than what would be the technique of converting such signals into waveforms.

Thanks alot

0 Kudos
Message 6 of 9
(5,381 Views)

Abuzar,

 

Glad we could help.

 

If you don't know the sampling frequency, I would just enter '1' as dt, emulating a sampling frequency of 1 Hz.

0 Kudos
Message 7 of 9
(5,376 Views)

Hi, do you have any idea how should I analyse the data, if the time steps of data collecting are not the same? I tried to use average time step but it changed the data a lot 😕

0 Kudos
Message 8 of 9
(5,104 Views)

If the time steps differ, you need to be very careful with any analyses. Most of the analysis VIs (filters, FFT, and so on) assume uniformly sampled data (meaning that every dt is the same). There are VIs which can "resample" non-uniformly sampled data and I think there may be a few VIs which can handle non-uniformly sampled data.  The resample VIs essentially interpolate between the actual data points and estimate the values at the fixed dt sample points.

 

Lynn

0 Kudos
Message 9 of 9
(5,094 Views)