02-11-2018 05:02 PM
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.
02-12-2018 06:54 PM
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
02-13-2018 12:18 PM
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.
02-14-2018 07:36 AM - edited 02-14-2018 07:37 AM
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
09-19-2019 06:18 AM
Hello ,Still they didn't implement the property in newer version ?
09-19-2019 09:15 PM
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:
LabVIEW NXG Download
https://www.ni.com/en-us/support/downloads/software-products/download.labview-nxg.html#305527
Thanks,
Frank
09-24-2019 03:21 AM
Hello Frank
I am aware that you can control scales, but can you invert Y axis?
Regards
Shady
09-24-2019 08:15 AM
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:
Thanks,
Frank
09-25-2019 05:47 AM
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
09-26-2019 10:06 AM
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