02-20-2009 03:29 AM
02-23-2009 05:38 AM
Hi Furmar,
To do this you will need to use the propery node for the XY graph. For example to change the maximum value for the Y axis right click the graph on the block diagram and select Create >> Property Node >> Y Scale >> Range >> Maximum. You can then place this property node down on the block diagram. The property node will either be set to read or write. You can tell this by the direction of the arrow next to the name of the property you are changing. If it is facing out on the right hand side this means that the node is set to read, you need it to be set to write. To change this right click on the node and select "Change to Write". You should now see the arrow is facing in at the left. You can now wire in the value of the maximum point on that scale.
Regards,
Thomas Clark
02-23-2009 05:43 AM
02-23-2009 05:48 AM
Hi Furmar,
Sorry about that! I realised just after posting that I was in the Measurement Studio Forum! I have been having a look around and there are a few forum threads that might help you.
http://forums.ni.com/ni/board/message?board.id=232&message.id=7870&requireLogin=False
http://forums.ni.com/ni/board/message?board.id=232&message.id=726&requireLogin=False
I hope I have understood your question correctly and that changing the axis ranges will give the desired result for your application.
Regards,
Thomas Clark
02-23-2009 12:43 PM
Hellow Furmar,
Just to add to what ThomasC posted -
To zoom on one axis programmatically, it is typically sufficient to set the Range property of that axis to the minimum and maximum value that you want. This is demonstrated in the BasicModes example (under the examples directory, go to UI\WindowsForms\Graph\Axes\BasicModes. Code to do it would look like the following:
myGraph.XAxes[0].Range = new Range(10, 20);
Please let me know if this does not meet your needs, or if there is anything else we can clarify.
NickB
National Instruments