LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

History Data into Graph

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.

0 Kudos
Message 1 of 6
(4,671 Views)

 Use "Convert from Dynamic Data" to convert your dynamic data to doubles.

 

P.S. You cannot erase posts once placed on the forum.

Message Edited by Thoric on 04-16-2009 03:43 PM
Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 2 of 6
(4,666 Views)

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.

0 Kudos
Message 3 of 6
(4,658 Views)

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... Smiley Sad

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 4 of 6
(4,644 Views)

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.

0 Kudos
Message 5 of 6
(4,641 Views)

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).

 

 

Message Edited by Thoric on 04-17-2009 08:53 AM
Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 6 of 6
(4,619 Views)