05-24-2011 09:32 AM
Hi I have completed the majority of this program to test three different voltages and to run a power supply that ramps up and down. There are three close to identical code blocks that are the individual multimeters which gather the voltages. The block I am havin trouble with is in the uooer right hand portion of the main loop. What happens is the data is sent to the linear regression block and the outputted data is only plotting the most recent point and not all of the points as they are processed.
Now I am new to labview but i have copied the blocks straight from examples and am not sure what is wrong if it is the auto indexing at points that is messing this up? It is being built in labview 8.6. Thanks for any Help!
05-24-2011 10:00 AM
You need to add a shift register to your code. I added it in the place that I thought you were talking about. You should look at trying to make your code fit on one window and clean it up a bit. It would make it much easier to troubleshoot.
05-24-2011 10:57 AM
Thank you much for your help but i am unable to open the file because of my version is there anyway you can provide a screenshot of your solution? Thanks
05-24-2011 11:43 AM
What version are you on?
05-24-2011 11:53 AM
I also noticed that you have a fore loop that exicutes one time twice in your code this is really not necessary. I removed the fore loops and have cleaned up your code a little. When you tell me what version that you need I will repost what I have.
05-24-2011 12:04 PM
8.6 we had trouble trying to upgrade to 10.0
05-24-2011 12:33 PM
This is so much worst than I first thought. I am trying to clean your code and understand what you are trying to do. Give me a little while and I will see if I can eventually help. I believe that you are going to have to get a better understanding of what is going on in LabVIEW. I will try and guide you as much as I can.
05-24-2011 02:15 PM
Why are you using a timed loop with a 20000 timeout? Do you want to have a iteration time of 20 seconds between readings?
The linear graph is not working because you are only giving the graph one point an X and Y value.
You can clean up your code a lot buy putting the keathly stuff into a loop and iterating three times to ge the data that you want.
Here isw what I have so far.
05-24-2011 02:30 PM
yes we are taking readings every twenty seconds. I was trying to send the graph the x and y values and have them added each time to the graph. The one plot should be the x and y values wired to it and the second should be the same x values but used through the linear fitting block. Therefore showing the actual data and the best fitted line. Thank you so much for the help
05-24-2011 02:33 PM
Also i am using 8.6... is there a way for you to save the file so it is compatible with 8.6?