LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to display "moving crosshairs" instead of curves on a xy-graph?

Hello,
I want to plot a Graph in LabVIEW showing not a curve but crosshairs or another type of cursor, moving according to positioning data out of a txt-file.
the txt-file contains x and y coordinates in this form:
 
10.0    23.4
10.5    24.5
11.0    25.6 ...
 
I want to read one pair of coordinates and move the cursor to that point, then the next pair, move the cursor to the point etc. It schould look like the cursor was moving in realtime on the graph. Now to my main problem: It seems that a xy graph collects all of the points in the file and then displays them. This looks entirely different than the described scenario. I guess it's because LabVIEW has this data-oriented concept, where a node "fires" only when it's got all input parameter needed. And since a xy graph expects a cluster as  input parameter I've got this problem.
Attached is  the vi I made and the txt-file...
Thank you for your help!
Gouvi
Download All
0 Kudos
Message 1 of 4
(2,681 Views)
Hi Gouvi,

make up an empty graph. Now set the scales to the needed range 8using property nodes) and move a cursor by using property nodes!
Or make the plot with transparent color (also settable by property node).

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,673 Views)
Thanks for your answer, but I fixed it on my own now. Phew. But some problems still remain: Is it possible to make a graph full screen? And is it possible to insert background pictures into graphs?
Thanks, Gouvi
0 Kudos
Message 3 of 4
(2,650 Views)
Hi Gouvi,

for size: just make the graph indicator as big as you need it...
For background pictures: several possibilities:
1) make the graph transparent and put some graphics behind the graph
2) make the graph transparent and put a picture indicator behind the graph
3) In LV8+ you can put graphics in graphs using property nodes (PlotImages)

Best regards,
GerdW


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