LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I add unit labels to the x and y axis of an intensity graph?

I would like to add unit labels to the x and y axis of an intensity graph. In an XY graph it is possible to specify units by wiring numbers with units to the graph, but in an intensity graph you only wire a single 2D array. If this 2D array has units you can get units for the colour scale, but I don't know how to specify the x and y axis units. I know I can specify offset and multiplier, but that doesn't mean I get proper units on the scales. I tried wiring numbers with units to the offset and multiplier property nodes, but it didn't work.

My LabVIEW version is 6.1.

0 Kudos
Message 1 of 6
(6,456 Views)

Hello

Thanks a lot for posting on our discussion forum.But I am afraid to say that I dont understand your problem well.Please let me know what you mean by unit label.It will be more easier for me to understand you if you attach your vi that describes what you can do with the XY-graph and you cant do with the intensity graph.

I think you already know that in case of intensity graph the X and Y axes are the index (row and column number) of the 2D Array and the color is determined by the value of the specific data.

Waiting for your kind reply.

Thanks in advance

kamal saha | Application Engineer | National Instruments, Japan

0 Kudos
Message 2 of 6
(6,443 Views)
Hello,

Thank you for answering. When you have floating point numeric controls, indicators and constants you can attach physical units to the values by Popup menu -> Visible items -> Unit label. This means that you can't add meters to seconds for example. When you wire a cluster of two arrays with units to an XY graph, you can also show the units on the graph (using the popup menu). Then you can easily change the scale between e.g. kHz and MHz without messing with the formatting dialogue or multiplying the numbers with a scaling factor in the diagram. Whey you use an Intensity graph you can also attach units to the 2D array and get a unit label on the colour scale. The question is if the Intensity graph supports unit labels for the X and Y axes as well, and how to go about it? I can scale both axes by writing to the multiplier and offset in a property node, but these properties don't support physical units.

It seems to me that not many people use the physical units feature of LabVIEW, but I find it quite convenient. The attached vi illustrates (I hope) the issue.

Tobias
0 Kudos
Message 3 of 6
(6,429 Views)
Hello Mr. Tobias
Thanks a lot for your detailed information and I have understood your problem.But I am afraid to say that the X and Y axis does not support the unit label at this moment.Actually in the intensity graph the X and Y axis only represent the position of the intensity(Z scale) value.So you can only change the X and Y scale using the offset and multiplier of the property node as you have already done in your VI.At best, you can display the unit for X and Y scale by inputting on the front panel manually if you would like.
 
I have informed this behaviour of the intensity graph to our Research and Development department in America and hope this problem will be solved in the next version of LabVIEW.We are extremely sorry for the inconvenience.
 
Thanks.
 

kamal saha | Application Engineer | National Instruments, Japan

 
 
0 Kudos
Message 4 of 6
(6,418 Views)

Hello,

 

I have Labview 2009 and I also would like to add unit labels on graph. The "unit label visible" in the popup menu of the graph is blank and inactive.

When I write a string in the Property node XScale.UnitLabel.Text and XScale.UnitLabel.Visible, nothing is done.

 

Does anybody know a solution to write automatically the unit on the graph ??

 

Thanks, 

 

Mathieu

0 Kudos
Message 5 of 6
(6,009 Views)

Hi Mathieu,

 

you could use the scale label to include the unit, in a scheme like "physical property [unit]". Additionally you could set the scale formatting to use SI prefixes...

Message Edited by GerdW on 01-22-2010 06:39 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(6,007 Views)