Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

same plot with multiple axis

What I want to do is plot time vs temperature with two y-axis. The first axis (on the left) is deg-C and the second axis (on the right) is deg-F. If I rescale one axis, I want the other to rescale accordingly. I tried plotting time vs deg-C, then computing time vs deg-F and plotting that too (see attached sub-VI). But then it looks like I have two plots! Is there some way to connect the two axis together so that, if one changes, then so does the other?
0 Kudos
Message 1 of 2
(6,129 Views)

You could use a property node for the XY Graph to set the maximum and minimum values of one of the Y scales based on another. You would read the maximum and minimum values of one Y scale, calculate the required max and min Y scale values for the other Y scale and then write these values using the property node. The property nodes you would need to look at are 'Active Y scale', 'Y Scale Maximum' and 'Y Scale Minimum'. Use the 'Active Y scale' to choose the Y scale to modify, and then use the 'Y Scale Maximum' and 'Y Scale Minimum' properties to set the required values. The image below describes how this looks like on the block diagram.

 

properties.PNG

 

I hope this helps!

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 2 of 2
(6,113 Views)