02-21-2016 01:29 AM
Hi everyone,
Please your help and thoughts on this.
I have a VI where I want to change the value of my initial control depending on the values obtained within. I know local variables might be a bad idea, which it actually is based on my run. Can someone please inspect my code and offer me suggestions/help on how to make this run perfectly.
I also know that when I run this program, most of my final values come out as 0 in the saved part and #NV for the integration part. What do I need to do right??
Code is attached.
Here's a summary: First run goes with my defined Vmax, then subsequently changes based on the relationship between the last two power values (which I try to index from the array)
Thanks for your help!!
02-21-2016 03:03 AM - last edited on 12-12-2024 04:31 PM by Content Cleaner
Sorry, but this one is bleeding everywhere... The problem this is not only a spaghetti code, but there are many design mistakes too! I just cannot make a full list right now, I try to mention a few:
Good luck with the learning!
02-21-2016 10:23 PM
I agree with you, the code is bleeding everywhere but I did make it right.
Thanks for your taking out time to look over the code. I was able to fix all my errors with your comments and the volume of the spaghetti is mostly reduced.
I believe we all get better with time.
Cheers.
02-21-2016 11:06 PM
I am happy you managed to fix your code. If my post helped you to fix it, you can mark it as solution.