LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Acquisition using Raspberry pi and processing the signal to measure the frequency, amplitude and phase.

Hi Ram,

 

I am able to generate the same wavefrom in the array form,

I don't think so.

You are creating a waveform in the consumer loop, but with some arbitrary dt and t0 values. (Surely not the "same" as in the producer loop.)

 

but the frequency is varying. Even when I measure frequency from 1D array it is showing 67Hz, but when I measure frequency after converting the array to dynamic data I am getting 0.067HZ.

Because all your conversions from array to waveform (or DDT) are missing the correct dt/t0 values!

 

I am not able to figure whats the issue.

Do you see all those coercion dots? They are part of that conversion problem!

 

A quick&dirty way to use the same dt in the producer and consumer loop:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 11
(406 Views)