Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i move the scatter graph cursor freely along with the mouse cursor in the measurement studio 7.0 Scatter Graph?

I am not able to move the graph cursor freely along with the mouse cursor.Even i tried by setting the snap mode as floating.Another thing is that i tried to use the function MoveCursor in the PlotAreaMouseMove Event by setting the X,Y values given by the event.But the thing that the X,Y valus are returned in terms of screen cordinates,not interms of X & Y axes cordinates.Could anyone help me in this?
0 Kudos
Message 1 of 5
(4,923 Views)
Hello,
could you solve this problem?

Thanks.

Best regards,
0 Kudos
Message 2 of 5
(4,561 Views)
Hi Amaya,

Try opening the XYGraph example project located in  <Measurement Studio 70 install directory>\DonNET\Examples\UI\Graph\XYGraph\CS\. The default Measurement Studio 7 install directory is C:\Program Files\National Instruments\MeasurementStudio70\.

Once the project is open, open the MainForm.cs and select properties from the right-click menu of the XY Plot graph. In the properties window on the right scroll down to the Cursors Collection, select this entry and click the ellipses (...) button next to it. Click add on the XYCursor Editor Collection Editor dialog box to add a cursor. In the properties pane on the right, change SnapMode to floating and change both the the XPosition and YPosition to "0" (these settings are all in the Behavior section). Click OK and then build and run your project.

If you click the Plot Circle button of your running executable, a circle should appear in the XY Plot graph with a cursor centered at 0,0. If you hover over the cross-hairs of this cursor your mouse cursor should change to a four-arrowed "move" selector. Now you should be able to click and move your cursor freely in the graph.

Hope this helps, please let me know if this is not the behavior of which you speak!

-Evan P



Evan Prothro
RF Systems Engineer | NI

0 Kudos
Message 3 of 5
(4,544 Views)
Hi Evan
thanks a lot for your response, but i need do it on web, and i've read it's not possible.
Am I right?
Thanks again!!!
0 Kudos
Message 4 of 5
(4,533 Views)
Correct. Support for web controls did not exist in Measurement Studio 7. This was not added until the 2.0 version of the .NET framework. in later versions of Measurement Studio. Sorry, I did not know you were trying to do this using asp .NET on the web.



Evan Prothro
RF Systems Engineer | NI

0 Kudos
Message 5 of 5
(4,515 Views)