10-20-2015 12:17 AM
Need help here. I am working on a project, I have collected data thru NI myDAQ,plotted a waveform chart, is it possible to add a upper and lower limit to the waveform chart? I have tried ways but cant seem to work. Any form of help is appreciated thank you.
Solved! Go to Solution.
10-20-2015 01:14 AM
Hi Han,
in your thread title you ask about graphs, in the message you talk about charts: an example VI would help to clarify your questions!
Anyway the solution is to put two additional plots in your chart/graph - the context help will show you how to do this…
10-20-2015 02:57 AM
Thanks for replying, may I know where do I find the context? and also sorry for the confusion, I am trying to make a upper and lower limit for a waveform chart inside a while loop. I have taken a screenshot of it, the top is my NI myDAQ device collecting data, and I am hoping to add in uppper and lower limit to that. The bottom is an example I got online where someone added upper and lower limits. Do you think you can help me with that?
10-20-2015 03:03 AM - edited 10-20-2015 03:04 AM
Hi Han,
may I know where do I find the context?
Ctrl-H.
When you don't know how to open the context help you REALLY should take the free online courses for LabVIEW beginners!
The bottom is an example I got online where someone added upper and lower limits. Do you think you can help me with that?
The bottom example is exactly what you need.
Just convert your DDT to scalar…
Hint: never use the label "graph" for a chart. It will help you (and others) to understand your code…
10-20-2015 07:36 AM
@HanKiat wrote:
Need help here. I am working on a project, I have collected data thru NI myDAQ,plotted a waveform chart, is it possible to add a upper and lower limit to the waveform chart? I have tried ways but cant seem to work. Any form of help is appreciated thank you.
What, exactly, do you mean by "an upper and lower limit"? Assume your chart consists of the numbers 0, 1, ... 10, 9, ... ,1, 0, i.e. a Triangle Wave. Suppose your Upper Limit is 9, your lower limit is 1. Do you want your chart to:
Needless to say, the first two have distinct (and different) solutions, and the third probably does, as well.
Bob Schor
10-20-2015 01:27 PM
10-20-2015 08:59 PM
Hey thanks for the advice, it kind of works. but when I change it to a while loop and run it, I cant seem to plot anything out at all. Here's a picture of it, can you explain to me why?
10-20-2015 11:24 PM
10-20-2015 11:41 PM
As you placed the waveform graph outside the loop, the results of the plot will only be displayed on the graph once the loop is stopped (e.g. the STOP button is pressed).
If you know how many samples you want to output to the graph, try using a For loop instead of a While loop.
10-21-2015 01:04 AM