12-22-2008 03:17 PM
Solved! Go to Solution.
12-22-2008 04:11 PM - edited 12-22-2008 04:11 PM
You would need to have a boolean that checks if the (amplified) voltage is greater than N.
If so, it would send that value to a graph, if not, the voltage would not get graphed.
Here is an example: (do not try to copy this code exactly, because it is not using a signal, but rather some integer number that is being created)
12-22-2008 04:14 PM
12-22-2008 06:11 PM - edited 12-22-2008 06:11 PM
vwsj wrote:
So to incorporate the signal, I would just replace the integer (in your case voltage) with the DAQ assistant icon correct?
Correct
vwsj wrote:
And this would graph the voltage vs time?
Yes, by default it graphs the given value vs time.
12-23-2008 08:21 AM
12-23-2008 08:41 AM
12-23-2008 08:59 AM
That makes no sense. You want to graph something and then you mention using a build table function. Do you really mean that you want to do both or do you want to display the data in a table and not a graph?
Your oriiginal post has another confusing statement where you say you want to start graphing when a threshold is reached and then stop graphing when the same threshold is reached. In other words, you don't ever want to graph?
12-23-2008 09:09 AM
I meant to say if I wanted my data to be graphed and also to be displayed in a table. It was a typo in my question. So yes I want to do both.
i want to graph. im going to be doing an experiment in which the pressure will start at 0 and increase and reach a pressure i input where it will start recording that data and it's going to keep increasing until it reaches the maximum pressure in which it will start to decline again and reach that number i input and stop recording
12-23-2008 01:57 PM
Hi vwsj,
I added some steps to Cory K's code that allow you display the history of values written to a chart. The way it is currently written will clear the string indicator each time the VI is run. If you want it to continue logging for every run, without automatically clearing the values, simply delete the empty string constant that is wired to the initialize of the Feedback Node.
Since you mentioned you are new to LabVIEW and programming: As a side note to your original question, I want to point out Cory K's use of the Wait (ms) VI. Some sort of timing VI is a very good idea in all while loops in your code because it prevents your code from hogging all of your computer's processor time. You may be interested in Differences Between Wait (ms) and Wait Until Next ms Multiple.
12-23-2008 02:21 PM