LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sine wave with phase shift

Hi.

 

I'm trying to make a sine graph with adjustable phase shifts. The idea is that whenever I change the phase shift during runs, the graph will reset and make a new graph with the new phase shift. I am currently able to construct the sine graph, but I need to stop the run, change the shift, and run again to see the change in shift. How can I fix this? 

0 Kudos
Message 1 of 4
(2,549 Views)

Can you post what you have so far?

Is hardware involved?

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(2,542 Views)

This is my default program since I don't know what to do next. 

0 Kudos
Message 3 of 4
(2,533 Views)

You should learn about some basic stuff in LV. Please add a wait time in the loop, your VI hogs the CPU (100% load of at least one core).

The next step in your program is to extend it to a state machine. Put some buttons on the UI to set the phase or to "replay an automated phase shift".

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(2,527 Views)