Discussion:
how to add cursors on waveform chart
(too old to reply)
mom
2007-01-19 05:10:07 UTC
Permalink
i am using wavwform chart to display more than one values in that.I am getting these values from array. Now i want to plot these values on waveform chart. I want to display the data after every five seconds on waveform chart with my system (pc) time and date.But my problem is that my Xscale updation is faster than my incoming data because of that i am getting data on waveform chart at the time which is on x csale is greater than my system (pc) time.
 
so please help me to solve this problem.
 
 
falgandha mohire
NIJanell
2007-01-22 18:40:12 UTC
Permalink
Hello Falgandha,
 
Can you upload an image of what is going on?  Maybe an example?  Is your chart duplicating data?  The more information you can provide, the better.
 
Have a great week!
 
Janell R | Applications Engineer
Riconquistiamola
2007-01-23 05:10:07 UTC
Permalink
Hi falgandha, altenbach is right to say charts cannot have cursors. This has been discussed in other discussion forum posts. Included are several workarounds.<a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=102968&amp;jump=true" target="_blank"> Adding labels to a chart</a> <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=133855&amp;requireLogin=False" target="_blank">
Adding som kind of cursor in waveform chart</a> <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=147612&amp;requireLogin=False" target="_blank"> cursors on charts?</a> <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=162986&amp;requireLogin=False" target="_blank"> Trying to obtain cursors in a Waveform Chart</a> <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=8628&amp;requireLogin=False" target="_blank"> question---where to find the cursor palette?</a> etc.Michael K. | Applications Engineering | National Instruments
Cory K
2008-08-08 16:40:05 UTC
Permalink
I'm trying to think of the easiest way around this.
Do you think this would be relatively simple?
- Initialize an array.
- Add each line of data to that array.
- Graph that array on a waveform graph.
&nbsp;
... then I could have cursors :smileyhappy:
altenbach
2008-08-08 16:40:06 UTC
Permalink
Cory K wrote:
I'm trying to think of the easiest way around this.


Just built your history data in a shift register (or even the "collector" express VI), or do your own fixed size FIFO initilized with NaN, and then kep track of x0 accordingly.
&nbsp;
Of course there is a reason that charts don't have cursors. one reason is the fact that you need to decide what should happen if the chart scrolls. Should the cursor remain with a given data point or be fixed at a certain axis offset? What should happen inf the cursor scrolls outside the history data?
Loading...