LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Live Plotting Intensity Graph

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(3,261 Views)
Solution
Accepted by topic author QDSpec

I think what you want to do is this:

upd.png

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.


GCentral
0 Kudos
Message 2 of 4
(3,220 Views)

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.

0 Kudos
Message 3 of 4
(3,180 Views)

Please disregard my last comment, your solution worked.  Thank you.

0 Kudos
Message 4 of 4
(3,176 Views)