annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

[Help] add Phase shift to a sine wave from logged data

Dear all,
I wanna add a phase shift to a sine signal from my logged data. I follow some threads in this forums to do it. With the logged data sine wave, at the starting point and ending point, the signal is not shifted as expected. However, if I replace the logged sine wave by a simulated sine wave, it works well. 
I attached my VI here and please help me to fix it.
Thank you so much guys
error.PNG

Scarica tutti
0 Kudos
Messaggio 1 di 3
3.346Visualizzazioni

The "mistake" is in the previous step.  I'm guessing you never looked at your Test.csv file to discover it was mis-formatted (there are no unique Separator characters, not the "comma" implied by it being a "Comma Separated Values" file, nor a <Tab> that LabVIEW uses as the default).

 

I also looked at the rest of your code.  Do you know what a "phase shift" means?  Do you know how to relate "phase shift" and "time shift"?  Offsetting your plot (possibly by adding nulls at the beginning, or deleting some entries) is much simpler than trying to do spectral analysis ...

 

Bob Schor

0 Kudos
Messaggio 2 di 3
3.281Visualizzazioni

Thank you for you response.
I know that my data is mis-formatted but I get data from it and plot it on the graph.
About the phase shift and time shift, I may understand not clearly but when I check with the simulated sine wave it can shift as I expected. and with my data, it failed. could you explain more clearly for me?

0 Kudos
Messaggio 3 di 3
3.278Visualizzazioni