LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph in Web VI

Hello NXG Users

I want to know if I can do the following in XY Graph that is used in a NXG 2 Web VI :

 

1. How to Invert Y-Axis (the same as choosing inverted in the properties of a graph in LabVIEW )

2. How to Programatically change Minimum and Maximum of Y-Scale.

 

Thanks in Advance.

0 Kudos
Message 1 of 14
(5,488 Views)

Hi shadymi,

 

I tried playing around with some property nodes for a XY graph in just a regular NXG 2 VI first and didn't see axis inverting as an available property at this point, so I don't think that is available yet over a Web VI either.
There were minimum and maximum range properties that could be set though, so I'll look a little more into if or how that would translate to a web VI.

 

Kind Regards,

 

David Randolph

Applications Engineer

National Instruments

 

0 Kudos
Message 2 of 14
(5,420 Views)

Hi DangerDave

 

In WebVI ,I don't think it even has property nodes from the first place, and the min and max for the scale you have to set it manually before execution or let to be auto scale.

I also tried to set the maximum as the smaller value and the minimum as the large value but it won't let me.

I can't figure out how they did not provide such facility in the Graph ,its available in all commercial Java charting libraries even the open source ones.

0 Kudos
Message 3 of 14
(5,402 Views)

shadymi,

 

I did a little more digging and did confirm that property nodes are just not a feature yet for web VIs. However, they are in the works for future releases!

 

Kind Regards,

 

David Randolph

Applications Engineer

National Instruments

0 Kudos
Message 4 of 14
(5,387 Views)

Hello ,Still they didn't implement the property in newer version ?

0 Kudos
Message 5 of 14
(4,769 Views)

Hi shadymi,

 

LabVIEW NXG Web Module 3.0 adds support for property nodes in WebVIs. I am able to programmatically set the X and Y axis scale on WebVI graph:

 

Property Nodes on WebVI.png

 

LabVIEW NXG Download

https://www.ni.com/en-us/support/downloads/software-products/download.labview-nxg.html#305527

 

Thanks,
Frank

Message 6 of 14
(4,739 Views)

Hello Frank

 

I am aware that you can control scales, but can you invert Y axis?

 

Regards

Shady

0 Kudos
Message 7 of 14
(4,712 Views)

Hi Shady,

 

If you mean inverting as setting the Y max to the Y min, and the Y min to the negative of Y max, you could do something like this. The Range cluster is two numbers, Minimum and Max:

 

Invert.png

 

Thanks,

Frank

Message 8 of 14
(4,705 Views)

Hello Frank

 

Thanks a lot for your reply, I'm actually doing visualization for some time-based data ,the y-axis holds time and date vs. x-axis holding the values . the main goal is to plot the older values (with the minimum absolute time values) on the maximum of the y-scale ,and the most recent values (with the maximum absolute time values) on the minimum of the y-scale. the only you could do this in normal labview was by setting the setting the flipped property to true (as in the images attached) or manually interchanging the maximum and minimum values of the graph as with your idea. I had the chance to test one of the earliest versions of the web-module of Labview NXG and tried to do the same (setting range minimum with the higher value and setting range maximum with the lower value) but unfortunately it didn't work. so my question is that can I reach the same result as the with the graph snapshot attached in the newer version of the web module ? (you can notice the older values at the top (12:10 PM) and the newer ones at the bottom (1:10 PM)

 

Regards

Shady 

Download All
0 Kudos
Message 9 of 14
(4,692 Views)

Hi Shady,

 

Great, thanks for the example. That is a very interesting plot. I now see what you mean by inverting the axis.

 

The YScale.Flipped property doesn't exist in LabVIEW NXG yet; let me see what I can do to generate something similar. 

 

Thanks,

Frank

0 Kudos
Message 10 of 14
(4,671 Views)