LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to show an waveform point one by one?

hellow,can i show the waveform point one by one by order,just like using a pen to draw a curve? Thanks a lot!
0 Kudos
Message 1 of 7
(3,182 Views)

Hi HappyBird,

Right-click on your Waveform graph/chart, select Properties. Go to Plots tab. Here you can select different plot-styles, including points.

Hope this is what you wanted.

Khalid


0 Kudos
Message 2 of 7
(3,182 Views)
Thanks for your reply,i am sorry that i did not state the question clearly,what i want is to show the waveform just like drawing a curve using a pen,i want to see the PROCEDURE to draw the curve from beginning to end.
0 Kudos
Message 3 of 7
(3,182 Views)
> Thanks for your reply,i am sorry that i did not state the question
> clearly,what i want is to show the waveform just like drawing a curve
> using a pen,i want to see the PROCEDURE to draw the curve from
> beginning to end.

There used to be an example that shipped with LV that did this using a
graph, a cursor, some buttons, and property nodes. I'm pretty sure that
it was in examples/general/graphs/gengraph.llb and was called Graph
Control.vi. It wasn't there in LV7, so I'm not sure when it was
removed. You might look around on the NI site or google.

Basically, the idea is to read the cursor position and add points to the
graph. The example used buttons for pen up and pen down. You then
would click and drag the cursor to trac
e out a curve.

Greg McKaskle
0 Kudos
Message 4 of 7
(3,182 Views)
Hi happybird -

I have attached the Graph Control VI that Greg discussed in his response. It allows a user to draw on the graph as if they had a pen. I have also attached a VI that plots randomly generated numbers, one every second. Hopefully one of these VIs properly addresses your question. Good luck with all of your projects!

Becky B.
Applications Engineer
National Instruments
Becky Linton
National Instruments
Field Engineer
Office: 734-464-2463
Cell: 248-709-2822
Email: becky.linton@ni.com
Download All
Message 5 of 7
(3,182 Views)
Thanks a lot for your help,i really appreciated it,when run the plot one point.Vi,how can i change the x scale,because this waveform chart only allow the input of Y(not like waveform graph),can i make it like the waveform graph?
0 Kudos
Message 6 of 7
(3,182 Views)
> Thanks a lot for your help,i really appreciated it,when run the plot
> one point.Vi,how can i change the x scale,because this waveform chart
> only allow the input of Y(not like waveform graph),can i make it like
> the waveform graph?

If you have a waveform datatype, you can wire that into a chart as well.
As long as the timestamped data doesn't go backwards in time, it will
probably do what you are expecting.

Greg McKaskle
0 Kudos
Message 7 of 7
(3,182 Views)