取消
显示结果 
搜索替代 
您的意思是: 

Problem E7.3 (LabVIEW)

I've been trying to plot the ellipse with equation on Page 232 of Dr. Robert H. Bishop book but was unsuccessful. Anyone got a suggestion on this? Thanks in advance.
0 项奖励
1 条消息(共 12 条)
11,208 次查看
Hi,

You can use the attached vi to plot an ellipse given its equation.

Regards,
Ankita A.
Applications Engineer
National Instruments
2 条消息(共 12 条)
11,210 次查看
Hi,

Thank you for responding to my problem. Actually the problem involve sin and cos function. I attached the problem here. Hope you could help. Thanks in advance.
0 项奖励
3 条消息(共 12 条)
11,212 次查看

I have the same problem.

Briefly, the E7.3 problem is about plotting an ellipse using the equation:

 

 

r^2= A^2*B^2/(A^2*sin^2(ф)+B^2cos^2(ф))

 

 

where r, A and B are inputs.

 

Anyone who can help, please?

 

thank you in advance 

0 项奖励
4 条消息(共 12 条)
10,629 次查看
5 条消息(共 12 条)
10,591 次查看

Daigon,

 

I don't speak Itialian, so I'm posting my answer here instead of in the other thread.

 

Here's how I would approach the problem:

 

  1. Create an array of values for 'phi' ranging from 0 to 2*pi.  You can use a For loop to do this, and the number of points in the array should depend on how smooth you want your graph to be.
  2. With 'A' and 'B' as inputs, and the created 'phi' array as another input, calculate the value of 'R' from the equation provided.  I don't understand how 'R' is supposed to be an input.  Also, remember that you can use the math functions in LabVIEW in either scalars or arrays.  For example, you can multiply an array by a scalar with the 'Multiply' primitive.
  3. Create 'X' and 'Y' arrays from the values of 'R' and 'phi', then bundle the 'X' and 'Y' arrays together to plot with and XY Graph.
You should be able to do all of this with loops and simple math in LabVIEW.  You shouldn't need to use a formula node to do this.  Let me know if this helps.
 
Chris M 

 

6 条消息(共 12 条)
10,569 次查看

Hi CMal

 

From your explanation, I am still unable to solve the problem.

Would you be kind enough to help me solve the problem as I am really stuck.

 

Thank you very much. 

0 项奖励
7 条消息(共 12 条)
10,225 次查看
started a new thread here
0 项奖励
8 条消息(共 12 条)
10,188 次查看

The cat,

 

Can you be more specific on which parts of my explanation you do not understand?  Are you having trouble creating a 1D array of 'phi' values, or is the problem with converting the 'R' values into 'x' and 'y' coordinates?  The more information you can give about what you have tried, the better.

 

Chris M

0 项奖励
9 条消息(共 12 条)
10,169 次查看

Hi CMal

 

Yes I have trouble creating the 1D array of 'phi' values.

For the equation I have already done it with the fomula node

and plot it on a XY graph using the input A & B but the graph

is not an ellipse, instead it gives me a funny plot.

0 项奖励
10 条消息(共 12 条)
10,148 次查看