LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A Question for the XY graph

Solved!
Go to solution

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.

 

InsideToleranceWindow.PNGtolerance window.PNG

 

 

Download All
0 Kudos
Message 1 of 7
(3,161 Views)
Solution
Accepted by topic author Liidle

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,158 Views)

 

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!!!!!!

 

0 Kudos
Message 3 of 7
(3,147 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(3,142 Views)

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.


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 5 of 7
(3,135 Views)

 

 

 

 

 

 

0 Kudos
Message 6 of 7
(3,132 Views)

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

0 Kudos
Message 7 of 7
(3,094 Views)