LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Range Maximum on Graph Scale - With Multiple Axes

Solved!
Go to solution

Using a graph with two X-scales (time and depth scales along X-axis).

 

Anyone have any thoughts on how to set the maximum for the time scale on the graph for attached VI?  One can adjust the maximum of the depth scale (try manually changing maximum on each scale and you will see the effect on the plot).  ps. trying vi snippets for first time (however, for me it does not want to work when dragged from Firefox, and was not able to drag it from Explorer), so I have attached as VI also.

 

dual scales graph.png

 

 

 

 

Thanks,

 

Don

Message Edited by DonRoth on 06-16-2010 02:48 PM
0 Kudos
Message 1 of 4
(3,228 Views)
I believe you may need a 3 dimensional graph if you want the output to have two dependencies.
0 Kudos
Message 2 of 4
(3,216 Views)
Solution
Accepted by topic author DonRoth

Don-

 

You can just use a property node and wire a reference on the waveform graph into the property node.  I have included a snippet for you to try.

maximum.png

National Instruments
Applications Engineer
Message 3 of 4
(3,191 Views)

I went back over some older code I had - and what you have done is exactly what I did.  So your solution is exactly correct.  This must be done thru a property node and cannot really be addressed manually because one scale at a time has to be defined as active.

 

I am having problems with code snippets.  When I drag your code over to a block diagram, I get the notation:

 

http://forums.ni.com/t5/image/serverpage/image-id/2551i8ACAE1F7B5BA7C19/image-size/original?v=mpbl-1...

 

instead of the code.  I am using Firefox.  Explorer doesn't even allow me to even do the drag.   I guess that is for another thread.

 

Thanks,

 

Don

0 Kudos
Message 4 of 4
(3,171 Views)