LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need a xy graph to appear on the VI's caller panels.

The graph has many cursors and plotted data. If I just wire the xy graph from the vi where it is created to the vi's caller, the graph on the vi callers remains blank.
0 Kudos
Message 1 of 6
(2,963 Views)
First check taht the data is being passed by creating a simple indicator that let you check the data is coming through.

Could the scales be bad i.e. wrong range so data is ther but just cannot see?

Please post example if I missed in me guess.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(2,963 Views)
Hi liz,

if you just wire xy graph to callee vi ( as array for example) callee vi can't update it. You must use reference to this xy-graph.
1) Create reference of graph in caller vi,
2) Add new terminal (XY graph refnum) to callee vi
3) Wire refernce to callee vi
4) In callee vi use property node by refnum "Value" and write there your data.
0 Kudos
Message 3 of 6
(2,963 Views)
Yes the data is there but the cursors are in the wrong range. I sent the Xscale and Y scale range to the caller vi, so the scale on the callers graph looks identical to the subvi. The data is correct, but the cursors are way off the graph.
Cursors on the subvi appear in this range:
x: -9.0 - 2.0,
y: 9.0 - 20.0

on caller vi graph, the cursors appear in this range:
x: -14.0 - -5.0
y : 101.0 - 90.0

Why would the cursors be so offset?

Thanks.
Liz
0 Kudos
Message 4 of 6
(2,963 Views)
I sent the cursor list to the caller vi, and connected to cursor list of caller vi graph, and the cursors are now correct.

Thanks.
Liz
0 Kudos
Message 5 of 6
(2,963 Views)
The best answers come from the origianl posters.

Take care,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 6
(2,963 Views)