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.
05-26-2016 12:36 PM
Hello!
I have Labview project for my courses and it should simulate Kepler's laws. I'm totally green with programming in Labview and our teacher is not willing to help. We did have some basics but it's not enough for me to handle this project. I'm doing my best but it still doesn't work and I'm getting really tired of it. Would someone might help me with drawing planet motion around the star? I don't know how to make a simulation of that planet going around ellipse. I would be really grateful for any advice, tip or anything that may help (even the simulation itself )!
05-26-2016 02:54 PM
We will not do your assignment for you. You would learn very little that way.
We will try to help you learn about LabVIEW. The best way for us to help you is for you to ask very specific questions or tell us in as much detail as possible what does not work correctly in your program.
Many of us do not read your language so some guidance as to what the various controls and indicators represent would also help.
General comments:
- Try to keep the block diagram to one screen.
- Please clean up the wiring. Wires should generally run from left to right (inputs or sources on left, outputs or indicators on right). Wires should not run under or behind other objects or other wires. This makes it very difficult to determine what the porgram does.
- When implementing a mathematical algorithm it can be very helpful to include the equation or formula as a free label or image on the block diagram. I am not going to go look up Kepler's laws to see if you switched a sign or made another simple error in programming the formula.
- What is the purpose of the 1-iteration for loop?
Except for the slide control nothing changes while the program runs. What is intended to represent time in the equations of motion?
Lynn
05-26-2016 04:11 PM
for piece of help I give to a vi for solar model system but you have to work hard in labview to understand it and also use it for your work otherwise it will be useless for you
I Hope it help you and also I hope you work hard on it to use it
best regard,
Hatef
05-27-2016 09:24 AM - edited 05-27-2016 09:25 AM
This is an intriguing assignment, whose meaning isn't exactly clear to me. Kepler's "Laws" should probably be called "Kepler's Observations", and describe (observed) planetary motion about our Sun as the following:
I'm not sure what it means to "simulate" these observations. I suppose you could build a model of orbital motion of a sun and a planet, but you'd need a "higher level of knowledge" (say, Newton's Law of Gravitation), and could then possibly demonstrate that your model obeyed Kepler's Laws. However, going from Kepler's Laws to Newton's Law is not trivial (I once heard Richard Feynman give a wonderful lecture where he did exactly that!) -- indeed, going from Newton's Law to making a model where planets move around a sun is an interesting challenge, as well.
So it seems to me that your best bet is to talk to your classmates, and to your Instructor, and make sure that you really understand the assignment. If you can reduce it to "model these equations" or "Plot the trajectory" or something concrete, you can start thinking about what you need to do and how you want to do it.
Bob Schor
05-27-2016 10:33 AM - edited 05-27-2016 10:34 AM
@Hatef.fouladi wrote:for piece of help I give to a vi for solar model system but you have to work hard
Please do not attach a VI that ships with LabVIEW.
(Especially if you don't disclose the source! You probably did not write this code. Only attach your original work.)
This particular VI can be found in the example finder, no need to ever attach it. Everybody with LabVIEW installed already has it!
05-27-2016 12:27 PM
05-27-2016 12:43 PM
@Hatef.fouladi wrote:
Dear altenbach
I did not claim I wrote this code
There is nothing wrong pointing to an example in the example finder, but attaching it without revealing the source can give the wrong impression. It is sufficient to give the name of the example. Nothing to attach, because everybody has it already. ;).
05-27-2016 01:31 PM
@altenbach wrote:
@Hatef.fouladi wrote:
Dear altenbach
I did not claim I wrote this codeThere is nothing wrong pointing to an example in the example finder, but attaching it without revealing the source can give the wrong impression. It is sufficient to give the name of the example. Nothing to attach, because everybody has it already. ;).
Not only that but your version throws an error since the required picture files can't be found. I was going to mention that example but it is a very simple model that is designed to teach about the 3D picture control and I felt it would just confuse the OP who needs to model true elliptical orbits.
05-30-2016 08:42 AM
@Lilly24 wrote:Hello!
Would someone might help me with drawing planet motion around the star? I don't know how to make a simulation of that planet going around ellipse. I would be really grateful for any advice, tip or anything that may help (even the simulation itself )!
This thread (https://lavag.org/topic/13427-drawing-a-circle/) shows how to draw a circle on a XY Graph using the complex data typ ( re = x ; im = y)
Try to modify the snippet above
05-30-2016 11:20 AM - edited 05-30-2016 11:21 AM
That must be an old thread. 😄
Here's a modification of some of my very old code to generate a generic ellipse in 2D. You can go to 3D by setting z=0 then applying Euler rotations, for example.