04-16-2009 09:19 AM
Hi,
I am collecting data into chart and then outputting it in graph so I can use cursors. In the process I am having trouble outputting the chart's history data to waveform graph. I get an error saying type of the source is 1D array of dynamic data and the type of sink is 1D array of double.
I am acquiring two analog inputs and want to output both of them on the same graph.How do I solve this? I have attached my VI.
Also, initially I posted this in the wrong section, how do I delete the post from that section?
Thanks!
Priya.
Thanks.
04-16-2009 09:42 AM - edited 04-16-2009 09:43 AM
04-16-2009 09:51 AM
Hi Thoric,
I tried that and it still doesn't work. When I output the history data it gives me an array type output with t0, dt and Y. However I don't understant how this is stored. I am new to all this and so a little confused 🙂
Thanks.
04-16-2009 10:08 AM
I too am not particularly familiar with dynamic waveform types, but it seems you have an array of dynamic waveforms in your History. These might need to be converted individually to doubles, so put a For Loop around the Convert function with auto-indexing on the exit terminal. This will produce a 2D array of doubles, but maybe this isn't what you need?
We need some input from someone with more knowledge of handling the dynamic waveform datatypes...
04-16-2009 10:15 AM
Thanks!
My main issue is that I want to use cursors and i can use it only in graph type waveforms. So I am collecting real time data in chart (which is easier) and then outputting the histoy of the waveform chart into graph. If there is a easier method then I can use that too.
When I searched for cursors in chart I came up with a shift register solution and this one. The shift register one didn't work out well so I tried this one.
04-17-2009 02:52 AM - edited 04-17-2009 02:53 AM
Hello again,
Personally, I wouldn't use the native history capabilities of a chart to store data, but instead append the data to an existing array, using a shift register on your while loop.
It is the conversion part in the subsequent sequence frame that I'm not so sure about (as labelled in the attached image).