LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate 2 sine wave signals using NI-DAQmx

I need to generate 2 sine signals with amplitude - 5V , frequency - 1kHz with phase shift of 180 degrees.

Also need to check whether both the signals are synchronized.

0 Kudos
Message 1 of 7
(776 Views)

Are you actually generating electrical signals?  Do you know how to work with (NI) hardware?  Do you have experience with NI DAQmx?  [If not, there are good tutorials on NI DAQmx available on the Web].

 

I assume you are familiar with the Palettes shown with the Block Diagram.  The Waveform palette might be especially relevant.

 

To learn any programming language, you need to write programs.  So write a program, try it out, see how it runs, and if you "get stuck", do a "Save for Previous" (I'm assuming you are using LabVIEW 2023, as you sound like a new student with a homework problem) and save for LabVIEW 2019 or 2021 (to catch most of the "old-timers", such as I), and attach your VI or VIs for us to critique.  I strongly recommend you learn enough to avoid the Dreaded DAQ Assistant and work directly with DAQmx functions (you should only need 4 or 5 of them).

 

Bob Schor

0 Kudos
Message 2 of 7
(769 Views)

we use USB6008/USB6009 for this example

 

0 Kudos
Message 3 of 7
(660 Views)

Hi Hermanth,

 


@stark8 wrote:

we use USB6008/USB6009 for this example


Wow, cheap DAQ hardware…

 


@stark8 wrote:

I need to generate 2 sine signals with amplitude - 5V , frequency - 1kHz with phase shift of 180 degrees.


Did you read the specs of your DAQ device(s)?

Did you compare those specs with your requirements?

There is a wide gap between spec and requirement…

 

Conclusion: you use the wrong DAQ hardware. Use better devices, suitable for your requirements!

Best regards,
GerdW


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

How can i use a simulated DAQmx device to generate 2 sine wave signals with phase shift of 180 and also need to be checked whether they are synchronous or not?

0 Kudos
Message 5 of 7
(627 Views)

Hi Herman,

 


@stark8 wrote:

How can i use a simulated DAQmx device to generate 2 sine wave signals with phase shift of 180 and also need to be checked whether they are synchronous or not?


You cannot use a simulated DAQ device to check arbitrary signals...

 

Btw. please define "synchronous" for two signals with a (known) phase shift!

Best regards,
GerdW


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

You can certainly use LabVIEW to generate two sinusoids with a phase shift of 180° -- try looking in the Waveform palette under Analog Waveforms.  It is an easy exercise to send them to a Chart.  It is not clear what you mean by "synchronous", but they'll certainly maintain their "180° out of phase with each other" characteristic for as long as you care to look at them.  Use LabVIEW as your "simulated DAQmx device" ...

 

Bob Schor

0 Kudos
Message 7 of 7
(585 Views)