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.
10-24-2017 04:35 AM
Hello everyone,
I'm doing a internship which using the labview to make a graph with the tolerance windows which draw the rectangular for in the xy graph, I succeed in making one window, but for the second window added, I found the last point of the first window interfere the first point of the second window, so I go there for help, These are the photos and vi I created.
Thank you for helping me.
Solved! Go to Solution.
10-24-2017 04:40 AM - edited 10-24-2017 04:40 AM
Hi Liidle,
put a point between your two rectangles using NaN for its x and y value.
(Background: you can always "hide" plots by using NaN values…)
On your VI: why do you use InsertIntoArray when you want to build an array? Use BuildArray instead…
10-24-2017 04:46 AM
Hello GredW,
I use the insert array because I've already create the array in the sub VI.
Your solution is the best!!!!
Thank you so much!!!!!!
10-24-2017 04:49 AM
Hi Liidle,
I use the insert array because I've already create the array in the sub VI.
???
You still can use BuildArray to concatenate those two arrays coming from your subVIs. And you can easily create a 3rd input at the very same BuildArray function to put this [NaN, NaN] point in between…
10-24-2017 04:54 AM
example for using picture-background https://forums.ni.com/t5/LabVIEW/Draw-a-rectangle-in-a-graph/td-p/1815331
(but it only shows how to create one rectangle)
there may be a way of creating a complete picture first and then setting this as background,
but i don't know how at the moment.
example using multiple graphs https://forums.ni.com/t5/LabVIEW/How-to-display-simple-shapes-on-graph/m-p/1852041/highlight/true
it looks to me that you are using only one plot for both,
therefore you would have a connecting line between figures.
having multiple graphs as in the example above should solve that.
10-24-2017 04:59 AM
Hi GredW
I Tried what you said, I have to say, your advice is so useful!!!
Thank you so much.
Sincerely
10-24-2017 07:02 AM
Hello,
I know using the multiple plots are simple, but the purpose is to realize multiple windows in the same plot.
Thank you anyway
Best Wishes