10-20-2023 06:22 AM
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.
10-20-2023 07:01 AM
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
10-25-2023 02:25 AM
we use USB6008/USB6009 for this example
10-25-2023 02:40 AM - edited 10-25-2023 02:42 AM
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!
10-26-2023 01:46 AM
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?
10-26-2023 03:08 AM
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!
10-26-2023 12:00 PM
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