02-26-2013 09:15 PM
See the attached .. I am tryijng to do multiple plots on a waveform graph using a 1D array of waveform. When I plot inside the loop, this displays fine. However when I move the plot outside the loop, the plot really screws up. Anyone know what gives?
02-27-2013 04:08 PM
Could you be a bit more specific about the behavior you are seeing in both cases (inside and outside the loop)? If you write to the graph outside the loop, it may only display the last data point that the loop generated rather than all of them.
02-27-2013 04:21 PM
Actually I think figured it out ...if you notice in my attachment the waveform graph 'Value' property is orange, whereas I am passing it a brown wire (which is a 1D array of waveform). It was expecting the data to be an array of doubles. It must have been trying some weird conversion. Waveform graphs can accept many different types fo input (Waveforms, 1D array of waveforms, 1D array of clusters, etc.) But it seems once it accepts one type, it cannot accept another type. It actually made more sense for me to use the 1D array of clusters, so what I had to do was create another waveform graph, then pass it a cluster of three elements (x0, delta x and he y values) then use this as a create property node so that the 'value' property appeared as it should. I also had to modify the original waveform graph as well, as this waveform graph was a control refnum passed from another VI.