LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I represent 3 functions in one graphic?

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.

0 Kudos
Message 1 of 13
(4,263 Views)

Are you able to represent 1 or 2 functions in one graphic? You don't need more skills for 3 functions than 2.

0 Kudos
Message 2 of 13
(4,256 Views)

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.

0 Kudos
Message 3 of 13
(4,251 Views)

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.

0 Kudos
Message 4 of 13
(4,244 Views)

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.

0 Kudos
Message 5 of 13
(4,237 Views)

I have to do this problem by  tomorow

I got it as homework.

0 Kudos
Message 6 of 13
(4,229 Views)

Did you miss the lecture?

0 Kudos
Message 7 of 13
(4,213 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 13
(4,203 Views)

Could you please send me a screenshot?

I would really apreciate this!

0 Kudos
Message 9 of 13
(4,193 Views)

Actually, using the Ramp function made it even cleaner.  No loop needed at all.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 13
(4,181 Views)