05-30-2009 03:04 PM
I have a kinematic equations and I am simulating them on labview. My problem now is that I have a while loop, and I make a shift register, so the result of iteration is returning again to be executed in the my mathematical formula. But that is not exactly what I want, what I need is to take the result of the iteration which is the distance that must be moved by the vehicle in the required direction and then added to the previous value so it is the addition of the current value plus the distance the vehicle has to move and so the new location of the vehicle is known and appeared on the chart that will show the simulation of the movement of the vehcile. So what I need now is to know how to bring the accumelated value and substitute it agin in the mathematical operation which means by mathematics:
Xi (which is entered to the shift register)+ X1+X2 until i reaches the last position. I hope u aunderstand my question, I have already read the help of labview but ir didn't aid me. If you have a recomendation for another way to execute my kinematic equations and simulate it on a graph it will be good. For your information my equations of motion are three differential equations one is the velocity in the x-direc., the other in the y-direc. and the last is the rotational speed around z.
what I did is that I take these differential equation and convert them to non differential equation and multiply the right hand side by time step that I decide, and through that i can know the distance that the vehicle has to move in the period of the time step by multiplying this time step by the velocity in the x-direc. for example to obtain the distance to be moved and then add these value to the current location so the new location can be known and these my problem because I must add each distance by the last value so I have an accumelative value and by that the motion of the vehicle can be simulated.
05-30-2009 04:51 PM
This does not really sound like a LabVIEW problem, you simply need to decide what needs to go into the shift register and what you later do with it. You can even use a second shift register where you accumulate certain values for example.
Your description is not clear enough to give more detailed advice. Can you attach a small VI example with some diagram comments?
05-30-2009 05:34 PM
05-30-2009 06:52 PM
Sorry, but I am from CAlifornia 😄
Please don't attach a 1MB+ bmp file renamed to jpg to fool the forum filter. A png file of your image would be less than 10k.
I still don't understand the problem from your description. If you can write it in a sentence, it should be possible to easily wire it up that way. What is Xd?
05-31-2009 12:14 PM
06-01-2009 05:50 AM