LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph and samples

Hi,

Im working on a bigger program, were Im using a DAQ assistant, graphs and other things. Now the problem is that I dont know how to get the graph showing more than the 100samples at time. I have tried to use a collector VI, but it makes some conflicts with my program. I also try to avoid too many shift registres. Any suggestions?

I attach a simple VI to show what I mean 🙂 I hope that any have an idea.

0 Kudos
Message 1 of 17
(2,989 Views)

Using a Chart should solve your issue.

 

 

Andy Chang
National Instruments
0 Kudos
Message 2 of 17
(2,975 Views)

Change the graph to a chart.

 

EDIT - I need to learn to type faster.  And Andy even included a VI.

Message Edited by jcarmody on 05-04-2010 02:36 PM
Message Edited by jcarmody on 05-04-2010 02:37 PM
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 3 of 17
(2,975 Views)
Thanks, I tried that one to, but I have another problem. If i use a chart, how do I then convert the samples till time? F.ex. a chart showing 0 to 5sec (thats why I thought that a graph would be better:-)).
0 Kudos
Message 4 of 17
(2,964 Views)
Use Append Signals?

Graph[1].png
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 17
(2,940 Views)

Technically, you can't.  A chart simply takes in a datapoint (Y value) and plots it.  There is no inherent timing information stored.  If you are sure that every point in the chart history was collected at the same time interval you can create a waveform with timing data using the "Build Waveform.vi".  Wire the output of a History Data property node to the Build Waveform Y input, the timing interval you collected at to the Delta T (dt), and zero to the start time (t0). 

 

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 17
(2,934 Views)
Im a bit confused 🙂 which one is best appended or build waveform?
0 Kudos
Message 7 of 17
(2,923 Views)

BjarneDK wrote:
Im a bit confused 🙂 which one is best appended or build waveform?

It depends on your application and your programming skills/preferences.  I was just providing general info about the differences between charts and graphs and how you could use a chart to get graph-like data.  Conversely, you could make a graph act like a chart by storing your data in an arrray and then using the array to "update" the graph after each data collection. 

 

Now you're a "bit MORE confused" I bet.    I'd need to see your code to be more specific and I can't open above LV 8.5.1.  If you want to post a JPG maybe I could see what you're doing and give some more specific advice.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 8 of 17
(2,915 Views)
can you open 9.01 thats were I made the other one 🙂
0 Kudos
Message 9 of 17
(2,910 Views)

No sorry (9.0.1 > 8.5.1 Smiley Wink).

 

I looked at the code in the second post (from Andy C.) though and I assume that you've just provided very simple, stripped down code to explain your issue.  I suspect your "collector VI" is the faking a chart with a graph trick I mentioned previously.  That is the way many people do what you seem to be wanting even though it involves building an array in a loop which can be memory intensive.  Why didn't it work for you?

 

This is what I meant by using the chart history data to generate a timed waveform.  See if it helps. 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 10 of 17
(2,895 Views)