05-09-2008 04:00 PM
05-10-2008 01:31 PM - edited 05-10-2008 01:31 PM
Star Man,
First, in your example you are using an X-Y graph, but you are only graphing one point. You are using build array to make your data compatible with the graph, but you are only putting one point into that array. Each iteration overwrites the point in the array so the array never grows. Here is a very simple way (not the most effecient) but simple, and if you are only doing 10 points, it will work fine. I added a shift register and then each iteration of the loop you add the latest measurement to the array (using the same build array function expanded one element). One of the caveats with this method, is if you let the code run for a long time, you would run out of memory because the build array function is not bounded. LabVIEW would keep making that array as large as it could. This doesn't address your data saving or curve fitting, but it's the first step in making that stuff work.
05-12-2008 08:56 AM
Steve,
Thanks for the reply. How will this work with real time readout and then saving individual points at different times? I would like the students to see the voltage and current as they are making changes to the circuit and then be able to capture the one data point after each of the changes that they make. They will be making about 10 changes for this part of the lab. I can see having each of the data points added to an array which is what your changes do but how do I make it so the students can add the data points to the array when they have completed the changes?
Thanks for your help.
Kent
05-12-2008 11:02 AM - edited 05-12-2008 11:03 AM
Star Man,
Just put a case structure around the build array functions and control that case structure with a user "OK" button. The students can make the changes, then when they see the value they want to record, they just hit the button.