Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of waveformgraph

I have tree question 

Q1: I have seen a familiar disscusion on this topic earlier but this is not working the way I want.

I have a waveform graphic with pilar view. Where each pilar is one step on the xaxis. What i want is to use mousedown event to dynamicaly  mark one or more pillars.

and in this event collect wich xaxis that has been marked. 

I have tried this one inside a plotareaMouseDown event without success:

 

NationalInstruments.UI.XAxis x = new NationalInstruments.UI.XAxis();

x = waveformGraphSpectrum.GetXAxisAt(e.X, e.Y);

What to do??

 

Q2: Is it possible to make maximum lines on each pillar inside the waveformGrap?

Q3: How do I avoiding the xaxis to be displayd as decimal digits with the same width on the graph view

With regards

Leif Gunnar    

0 Kudos
Message 1 of 2
(3,400 Views)

Hi Leif Gunnar

 

If you want to retrieve the X and Y values that generated the event you should look at the following post:

http://forums.ni.com/ni/board/message?board.id=232&message.id=5899&requireLogin=False

 

To get the exact X values of the pillars you would probably have to round the X value to the closest pillar.

 

Best regards Øyvind Ø

0 Kudos
Message 2 of 2
(3,294 Views)