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.
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.
07-20-2020 04:42 AM
Hi, I'm a student that is begginer in LabView and I have to solve a set of problems. I have a problem on which I can find the solution.
I have to represent graphically the function u = Umax * sin * (a * x + b) on two periods if Umax, a and b are given. I tried to represent the function, but I don't know how to represent it on two periods.
07-20-2020 06:04 AM
Ah, a simple Math problem. Let me rewrite it for you, and see if that gives you some clues.
y = gain * sin (twopi * f * t + phase)
Surely you recognize this as the equation for a sine wave of frequency "f". Suppose we start with t = 0 -- what value of t gives you two periods of this sine wave (whose frequency is f)?
Figure this out, figure out how to get back to your original equation's formulation, and you will have the answer to "how to represent it on two periods".
Bob Schor
07-20-2020 10:37 AM
Thank you! But my math is beating me. I couldn't figure out how to do it. I trie for another function, and i've been able to do it. I don't know how to do it for this equation.
07-20-2020 01:39 PM
Hi Adeline,
simple math:
Now all you need is a ramp from t=0 … 2/f, with as many samples you like to use in between…
07-21-2020 02:10 AM
Ok, I managed to do it if a=1 and b=0. But if the value of a ans b changes, it changes my sine signal. Can you please show me in labview, how can I do it for my equation. Thank you so much for your help.
07-21-2020 06:05 AM
@Adelinne wrote:
Ok, I managed to do it if a=1 and b=0. But if the value of a ans b changes, it changes my sine signal.
Have you had any lectures on Signals? You just said "If I change the Frequency or the Phase of my Sine Signal, it changes my Sine Signal". Of course it does! But you can still determine how much time it takes to create two periods ...
If you (for some reason) have never dealt with sinusoids, find a second-year Engineering Student and ask them to teach you about sine waves. Or ask a helpful Professor. Or read a textbook.
Bob Schor