04-06-2015 12:02 PM
I have to represent 3 functions in one graphic in labview.
The functions are:
x1(t)=a*cos(b*t+c);
x2(t)=-a*sin(b*t+c);
x3(t)=-a*(b^2)*cos(b*t+c);
I can choose the values for a,b and c.
04-06-2015 12:10 PM
Are you able to represent 1 or 2 functions in one graphic? You don't need more skills for 3 functions than 2.
04-06-2015 12:12 PM - edited 04-06-2015 12:13 PM
What have you tried? Where did you get stuck?
Seems trivial:
Front panel: 3 controls (A, B, C), 1 graph indicator.
Block diagram: create a ramp for t over the desired range and apply the formulas. Wire to the graph terminal. Format x-scale according to the t0 and dt of the ramp.
04-06-2015 12:16 PM
I really suck at labview so i have no idea what should I do.
I tried to use the formula node structure and used a,b,c as input and x1,x2 and x3 as output.
That's where I'm stuck.
04-06-2015 12:21 PM
Then start with some tutorials until you suck less at LabVIEW. It does not make sense to jump into the deep end like that. You won't learn anything.
04-06-2015 12:28 PM
I have to do this problem by tomorow
I got it as homework.
04-06-2015 12:33 PM
Did you miss the lecture?
04-06-2015 12:49 PM
You can quickly code this up with just native LabVIEW pimitives. There is a nice function called Sine & Cosine. There is also a lot of duplicated calculations. Use that to your advantage.
I put this VI together with 4 multiply functions, an Add, a Square, the Sine & Cosine, all inside of a FOR loop and then a Build Array to put the three arrays into a 2D Array for the graph. If you actually think about it for more than 10 minutes, it comes together quite easily.
04-06-2015 01:10 PM
Could you please send me a screenshot?
I would really apreciate this!
04-06-2015 01:21 PM - edited 04-06-2015 01:21 PM
Actually, using the Ramp function made it even cleaner. No loop needed at all.