12-08-2022 05:19 AM
12-08-2022 05:28 AM
Yes sure please try this file im attaching
Also these were the formulas i had to work with
12-08-2022 06:12 AM - edited 12-08-2022 06:13 AM
Hi JT,
are you sure your formulas are correctly translated to LabVIEW?
Did you try to debug your VI using probes/highlighting?
Cleaning up the block diagram also helps to understand the code:
Why did you use the log2(x) function when your formula says to use the exp(x) function?
12-08-2022 06:19 AM
Im very new at this stuff but thank you so much for your help. When it comes to damping is my method correct ?
12-08-2022 06:30 AM
Hi JT,
@JT1122 wrote:
When it comes to damping is my method correct ?
when translating formulas into LabVIEW code it always help for clarity/documentation to use indicators with labels the same as your formula variables.
There is no "x" indicator in your VI, and there is no "t" indicator. (Instead there was an unlabeled control, which is a No-Go!)
And as already mentioned there was no exp(x) function in your VI: does that answer your question?
12-08-2022 06:33 AM
Kind of yes i have to label the equations, I just seem to be getting the pendulum to not swing how it normally does, as well as when it comes to applying damping, it doesnt seem to work, If possible could you look at the simulation on the VI and give me some sort of idea on how to fix it ?
12-08-2022 06:51 AM
Hi JT,
@JT1122 wrote:
give me some sort of idea on how to fix it ?
I already told you to debug your VI using probes and highlighting?
Did you?
Then you can easily spot the problematic parts in your code…
12-08-2022 08:48 AM
I wrote the code out that you cleaned up, and the pendulum isnt oscillating
12-08-2022 08:49 AM
Im very new to this so i dont know how to do the debug thing
12-08-2022 11:47 AM
I am attaching what I think is correct please do let me know what mistakes i have made if you are able to view it