LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot graph after exiting while loop?

Hi all,

 

I have a problem in plotting a graph to display the real time value that i have acquire in the while loop after I have existed it.

I've follow the steps in the video "Using Charts and Graph in NI LabVIEW" provided by National Instruments to do it but I still cannot get the graph. It keep showing me an error "The type of the source is 1D array of Dynamic Data. The type of the sink is Dynamic Data." Please help me.

 

 

Data.jpg

 

0 Kudos
Message 1 of 7
(3,821 Views)
Since you have not provided the link to the video, we have no idea what you were supposed to do. Are you hoping to see aseparate plot for each iteration? The problem is with the evil dynamic data. Convert to a waveform data type and pass that out of the loop.

Depending on how long the loop runs, you could also see memory problems.
0 Kudos
Message 2 of 7
(3,808 Views)

Hi Dennis,

 

the link to the video is http://www.youtube.com/watch?v=HtjgeoJc4zA.

 

Actually what I want is exactly the same in the video. After I press the stop button, it will stop the real time operation, then plot out the graph.

 

I don't know why after I enable index in the loop tunnel, I will get the error message "These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required. The type of the source is 1D array of Dynamic Data. The type of the sink is Dynamic Data." after i press run button.

 

Thank you.

0 Kudos
Message 3 of 7
(3,785 Views)
As I said, it's the dynamic data type. You can't simply create an array of them and pass them to a graph. You need to understand what is happening in that basic tutorial with a scalar and it being built into a 1D array. All of your code is hidden in the DAQ Assistant and the evil dynamic data. No one has any idea how many points you are acquiring. When acquiring multiple points, for a display of all data, you need to append one waveform to the previous and use a shift register. Please provide details on your acquisition.

There are numerous free tutorials. Have you taken any of them besides the video?
Message 4 of 7
(3,776 Views)

Hi Dennis,

 

Can you provide me with some links or examples as i cannot find on the web.

 

Thank you very much.

0 Kudos
Message 5 of 7
(3,746 Views)

http://bit.ly/1w76DBe

 

Take your pick

0 Kudos
Message 6 of 7
(3,712 Views)

3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Learning NI
Getting Started with NI Products


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 7
(3,677 Views)