05-11-2017 05:21 PM
I'm trying to plot an intensity graph in real time and seem to be coming up short. I tried to use this however here the user pre-allocates the array, then updates it. I'm fine with doing that, I just don't see how I could work in this structure to my VI (attached). My main goal here is to real time plot the intensity graph as I iterate through the voltage values. At the moment, this will first iterate through all the values, and plot the graph all at once, at the end.
Solved! Go to Solution.
05-11-2017 08:34 PM - edited 05-11-2017 08:36 PM
I think what you want to do is this:
Here, my bad Paint skills are suggesting that you use a shift register and a Build Array node within the For loop, then you move the intensity graph inside the loop. I just wired an empty constant to the Shift Register input.
If this is what you want, you can also remove your auto-indexing tunnel and just wire the output of the shift register into your File I/O. As a further point, I'm not sure why you branch the wire inside the loops - probably you can just copy it after to take the Array Size and output to Array 3, Array 4.
05-12-2017 09:02 AM
But won't this lead me to drop values for the outer for loop? I tried this, but kept getting type mismatch errors when I tried to pass the value coming out of the outer for loop's shift register into the build array sub-VI.
05-12-2017 09:40 AM
Please disregard my last comment, your solution worked. Thank you.