From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-16-2021 06:14 AM
I'd like to make a chart using units on the vertical axis. I'd like to plot temperature on the left axis, and something else, like pressure, on the right axis. I would like to incorporate units, so I can easily switch between metric and Imperial units.
I can build a single plot with units and assign it to the value of the chart easily enough. Changing the units on that y axis changes the display appropriately, as in the enabled case of the enclosed VI. However, if I build a second plot with different units in the second parameter and try to build an array with the two of them, I get broken wires because the units aren't compatible. Is there a way to assign my second plot to the second axis and avoid the broken wires? I attempted using two methods for creating a multiplot chart, and neither seemed to work. They are in the disable cases.
I am using 32 bit LV2019 on a Windows 7 machine.
Solved! Go to Solution.
02-16-2021 06:43 AM
Hi PghFool,
you cannot mix different incompatible units in an array: all elements share the same properties!
So my suggestion is to handle the unit conversion on your own and indicate the currently used unit in the plot/axis label…
02-16-2021 08:01 AM
So there's no way to assign the values of one plot to one Y axis, and the values of a second plot to a second axis? I didn't see a way, but I was hoping, because there are a lot of properties to a chart and its various components.
02-16-2021 08:11 AM
02-16-2021 08:39 AM
I understand I can't build an array from different dataypes. I was hoping to build two different arrays, and assign them the the "Value" of different active Y axes, but there's no such property. I will accept your solution of using Convert Unit before building the array to get rid of the units. I can display with different units by switching which Convert Unit I use, thus avoiding any of my own math.