Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

move up/down y axis

Hi,
 
I am doing a DAQ application. I am using MS 8.0 and C# 2005. I would like to realize some functions like oscilloscopes, for example, in oscilloscopes, we can move up/down the waveform.  I use changing range to get this function, but it is not working properly. anybody knows how to do that?
 
thanks
 
 
0 Kudos
Message 1 of 4
(3,671 Views)
Hi,

If you hold down the <Ctrl> key, click and hold the left mouse button on the graph, and drag the mouse around you can Pan around the graph.  So, if you move the mouse up and down, it would move the waveform up and down similarly to an oscilloscope.  Also, if you hold down <shift> and click on the graph you can draw a box that it will zoom into.  Then, you can hold down <shift> and right click to get it to zoom back out.

Let me know if that doesn't accomplish what you are trying to do and we can think of something else.
Kristen
National Instruments
0 Kudos
Message 2 of 4
(3,663 Views)
Hi,
 
Thank you for your reply. I think this is what I need! but it is possible to realize those function in  programming because I would like to design a group of buttons to get those functions.
 
Thanks
 
 
0 Kudos
Message 3 of 4
(3,655 Views)
Hi,

I found this Developer Zone article that shows how to programmatically Pan and Zoom:
http://zone.ni.com/devzone/cda/epd/p/id/307

The example is written in Visual Basic.NET but the function they use are the same in C#.

Basically it looks like you'll need to use the functions WaveformGraph.ZoomAroundPoint for zooming and WaveformGraph.PanXY to pan.  You can find more information about what to pass into these functions in the Measurement Studio Help.
Kristen
National Instruments
0 Kudos
Message 4 of 4
(3,652 Views)