07-14-2016 03:10 AM
Oh and unitialized shift registers keep values from previous calls.
07-14-2016 03:25 AM
Every itteration?! o.O If they sum up, and keep going like this maybe that's why the final value is wrong. How do I clean up the memory every itteration and record only one true value into the array? And when the array is built to send the values list to the integration VI...?
07-14-2016 04:28 AM
Shift registers keep values form the previous calls of the VI. You don't have to clean them in every loop iteration. By the way you'd better leave them initialized.
Just build your data into an array, and wire the array to the input terminal of the integral VI.
07-14-2016 08:33 AM
I think my problem is in the building of the array... because now I noticed that the array subset node returns a subset of array starting at element 0 and with length specified by the constant. I tried to make the length the length of points... for example if step is 10 nm, this makes 70 points from 200 to 900 nm range. However it doesn't work again. Is there any better way of measuring and placing values into array? Without using shift registers?
07-14-2016 08:44 AM
I do not know what kind of method you are using to sample the signal. If you are using a while/for loop just wire the samples out of the loop and set the tunnel mode to index elements.
When the loop stops you should get an array which you can integrate.
07-14-2016 08:57 AM
Could you make a simple VI with that method... mine is different.