From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

DAQexpress - get delta phase

Hi,

 

I'm using the USB-6216 device, I connected the AI0 and AI1 to a signal generator and I want to measure the phase shift between these two signals.

 

eitanthti57_0-1595764626268.png

 

Thanks 🙂

0 Kudos
Message 1 of 10
(1,848 Views)

What do you know about Signal Analysis?  What do you know about the properties of the signals you are trying to compare?  Are there multiple frequencies in each signal?  If you plotted each signal separately on a graph, do you expect to be able to determine a unique phase lag by visually sliding the two plots past each other?

 

Bob Schor

0 Kudos
Message 2 of 10
(1,827 Views)

These signals are produced by a signal generator. 

I'm aware of the fact that I can either see the phase shift on graphs(pic 1) or calculate it from the exported CVS file. However, I would like to achieve the same goal in a more automated way - the same as can be done using an oscilloscope. 

eitanthti57_0-1595771927222.png

 

Thank you.

 

0 Kudos
Message 3 of 10
(1,823 Views)

@eitanthti57 wrote:

These signals are produced by a signal generator. 

I'm aware of the fact that I can either see the phase shift on graphs(pic 1) or calculate it from the exported CVS file. However, I would like to achieve the same goal in a more automated way - the same as can be done using an oscilloscope. 


Ah, you must mean the new "digital" oscilloscopes that do all of the "thinking" for you, can "tell" you the "phase" of a nice, pretty sinusoid, and might even be able to subtract two phase numbers from Channels 1 and 2 and give you a phase difference.

 

When you study Electrical Engineering, you learn about Signals (the course is often called Signal Theory).  If you then learn how to acquire Signals digitally, you will be able to understand the underlying mathematics that enable your fancy oscilloscope to estimate the Phase of your signal (assuming a low-noise sinusoid), and you'll be able to use whatever Programming Language (e.g. LabVIEW) to make the same measurements and get "phase".

 

Go talk to a sophomore (I'm guessing here) EE undergraduate student, explain your problem, and ask for help.  Then, knowing what you need to do, use the appropriate LabVIEW tools to do it.  Knowing "the answer" without understanding "the question" would be a disservice to your education.

 

Bob Schor

0 Kudos
Message 4 of 10
(1,814 Views)

You're talking to an Engineer, and I'm quite aware of how scopes work and how to calculate the things I need. 

The aim of my question was to inquire about the features of the software(DAQExpress/VI).

Do you know how can I apply these measurements (the same as I can get PK-PK values from this tool)?

Let's be efficient:)

 

Thank you.

 

0 Kudos
Message 5 of 10
(1,811 Views)

Did you dig through the signal processing palettes?

 

Signal Processing >> Waveform Measure >>  Extract Single Tone  will give you the phase of the signal.

 

0 Kudos
Message 6 of 10
(1,784 Views)

Hi,

 

Its looks different at my tool, There isn't a "Waveform Measure" with a phase detection:

 

eitanthti57_1-1595859943577.png

 

Thanks.

 

0 Kudos
Message 7 of 10
(1,726 Views)

I am using DAQExpress

0 Kudos
Message 8 of 10
(1,724 Views)

I'm not familiar with DAQExpress.

 

I'm sorry, but the time I had gotten to your last message, I had lost track that you were using NXG which is something I haven't touched yet.

 

I would expect there is a function in there to calculate phase and you might have to dig deeper to find it.  It's also possible that NI hasn't incorporated that yet.

0 Kudos
Message 9 of 10
(1,712 Views)

Thanks

0 Kudos
Message 10 of 10
(1,704 Views)