From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-21-2019 01:15 AM
How do I plot data that is larger than 1 among the data I collect with DAQ separately?
So I try to insert the '>' function into the 'case' function when the data value is greater than 1, but it is impossible.
Can you fix this? Help.
Solved! Go to Solution.
06-21-2019 01:25 AM
Hi Yoon-soo,
unfortunately you are using the most current LabVIEW2019 version, which is not yet installed everywhere. Attaching a down-converted version of your VI would allow more people to debug it…
How do I plot data that is larger than 1 among the data I collect with DAQ separately?
Suggestions:
- change the Y axis of your graph to start at min=1…
- replace all values below 1 with NaN
06-21-2019 01:55 AM
Thank you for your advice.
I'm looking for a way to save the previous version, but I can't find it.(pic.1)
Since I can't modify my posting, I uploaded a picture of my example to pic2.
06-21-2019 02:03 AM
06-21-2019 02:12 AM - edited 06-21-2019 02:17 AM
Thank you very much. If it doesn't work out after I try, I'll post it again.
06-22-2019 09:07 PM
How do I plot data that is larger than 1 among the data I collect with DAQ separately?
So I try to insert the '>' function into the 'case' function when the data value is greater than 1, but it is impossible.
A friendly friend who has just seen my writing a few days ago tried to help me, but there is a limit to my ability to solve.
Can you correct my code?? Help....
(Problem areas are indicated on pic2.)
06-22-2019 09:38 PM
You can't connect an array to a case structure.
So do you want to execute if it at least one value in that array is greater than 1? Or all values?
Insert an OR array elements, or an AND array elements into the wire going to the case selector.
06-23-2019 05:38 AM
Thank you for your interest.
I want to plot and store only values larger than 1 among the data received in real time.
06-23-2019 10:45 AM
Then wrap your case structure in a For Loop so it auto-indexes over each element in your array.
06-23-2019 12:13 PM
With each iteration, you are getting an array of N values, some might be larger and some might be smaller than 1 (and some might be exactly one!). So first you need to define the problem you are trying to solve with each iteration of the loop.
It also seems like you are using a graph. Could it be that a chart would be more appropriate? (Do you know the difference?)
So please sit down and define the exact problem first. Does the program work correctly and the only remaining problem is that it currently graphs all data?
(We really don't need to know who else could not help you. Focus on the important things!).